pep508_parser

Crates.iopep508_parser
lib.rspep508_parser
version0.1.0
sourcesrc
created_at2022-11-13 13:27:49.399247
updated_at2022-11-13 13:27:49.399247
descriptionPEP-508 parser
homepagehttps://github.com/pevers/pep508_parser
repositoryhttps://github.com/pevers/pep508_parser
max_upload_size
id714201
size10,792
Peter Evers (pevers)

documentation

README

pep508_parser test suite

This crate parses PEP-508 strings for Rust. It uses pest under the hood to parse a simplified version of the Parsing Expression Grammar (PEG) of the PEP-508 standard.

[dependencies]
pep508_parser = "0.1.0"
use pep508_parser::parse;

fn main() {
    let dependency =
        parse("name[quux, strange];python_version<'2.7' and platform_version=='2'").unwrap();
}
Commit count: 2

cargo fmt