Skip to content
/ myn Public

Minimalist Rust syntax parsing for procedural macros

License

Notifications You must be signed in to change notification settings

parasyte/myn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Crates.io Documentation unsafe forbidden GitHub actions GitHub activity GitHub Sponsors

Minimalist Rust syntax parsing for procedural macros.

You can think of myn as a minimalist crate with similarities to syn. It provides utilities to help write procedural macros, but does not attempt to replicate the syn types or API.

myn exists to support a very small subset of the entire Rust language syntax. Just enough to implement #[derive] macros on structs and enums, and that's about it. Everything else is currently out of scope.

Why

  • 100% safe Rust 🦀.
  • Write #[derive] macros with extremely fast compile times. See benchmarks.

MSRV Policy

The Minimum Supported Rust Version for myn will always be made available in the MSRV.md file on GitHub.

About

Minimalist Rust syntax parsing for procedural macros

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages