#command-line-arguments #arguments-parser #lexing #dependency-free

palex

A fast, small, dependency-free crate for lexing command-line arguments

1 unstable release

0.1.0 Feb 18, 2021

#782 in Command-line interface


Used in parkour

MIT/Apache

30KB
533 lines

palex

A fast, small, dependency-free crate for lexing command-line arguments. You can use this crate if you want to build your own argument parsing library.

This crate is almost zero-cost, since it parses arguments lazily and avoids most heap allocations. There's no dynamic dispatch.

Usage

Palex isn't published on crates.io yet, but it will be soon!

License

This project is licensed under either of

at your option.


lib.rs:

A fast, small, dependency-free crate for lexing command-line arguments. You can use this crate if you want to build your own argument parsing library.

This crate is almost zero-cost, since it parses arguments lazily and avoids most heap allocations. There's no dynamic dispatch.

Check the examples folder for examples.

No runtime deps