A Rust library for handling syn objects with raw identifier prefixes and path normalization.
desynt provides utilities for working with syn objects, particularly focusing on:
- Stripping raw identifier prefixes (
r#) fromIdent,Path, andPathSegmentobjects - Path normalization and canonical type resolution
- Type mapping from various path representations to canonical forms
This library is especially useful when working with proc macros or code analysis tools where you need to normalize type references regardless of how they're written in the source code.
This project is licensed under either of
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.