3 unstable releases

0.2.1 Feb 11, 2024
0.2.0 Feb 10, 2024
0.1.0 Apr 10, 2023

#210 in Procedural macros

Download history 29/week @ 2023-12-22 16/week @ 2023-12-29 30/week @ 2024-01-05 130/week @ 2024-01-12 146/week @ 2024-01-19 117/week @ 2024-01-26 111/week @ 2024-02-02 161/week @ 2024-02-09 185/week @ 2024-02-16 139/week @ 2024-02-23 133/week @ 2024-03-01 72/week @ 2024-03-08 38/week @ 2024-03-15 61/week @ 2024-03-22 84/week @ 2024-03-29 38/week @ 2024-04-05

231 downloads per month
Used in 7 crates (2 directly)

MIT license

25KB
366 lines

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.

No runtime deps