https://github.com/parasyte/myn
Minimalist Rust syntax parsing for procedural macros
https://github.com/parasyte/myn
Last synced: 10 months ago
JSON representation
Minimalist Rust syntax parsing for procedural macros
- Host: GitHub
- URL: https://github.com/parasyte/myn
- Owner: parasyte
- License: mit
- Created: 2023-04-10T03:15:01.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-02-11T01:24:27.000Z (almost 2 years ago)
- Last Synced: 2024-05-03T02:13:31.272Z (over 1 year ago)
- Language: Rust
- Size: 27.3 KB
- Stars: 47
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
[](https://crates.io/crates/myn "Crates.io version")
[](https://docs.rs/myn "Documentation")
[](https://github.com/rust-secure-code/safety-dance/)
[](https://github.com/parasyte/myn/actions "CI")
[](https://github.com/parasyte/myn/commits "Commit activity")
[](https://github.com/sponsors/parasyte "Sponsors")
Minimalist Rust syntax parsing for procedural macros.
You can think of `myn` as a minimalist crate with similarities to [`syn`](https://docs.rs/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 `struct`s and `enum`s, 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](./benchmarks.md).
## MSRV Policy
The Minimum Supported Rust Version for `myn` will always be made available in the [MSRV.md](./MSRV.md) file on GitHub.