kwp

Crates.iokwp
lib.rskwp
version0.2.1
sourcesrc
created_at2020-08-15 04:09:38.825337
updated_at2020-08-17 00:05:02.906742
descriptionAn input parser for positive and negative keywords input (e.g: +foo,-bar,+baz)
homepage
repositoryhttps://github.com/sycer-dev/kwp
max_upload_size
id276893
size21,172
Carter (Fyko)

documentation

https://docs.rs/kwp

README

kw-parser

An input parser for positive and negative keywords input (e.g: +foo,-bar,+baz)
Actions Crate Downloads

installation

# within Cargo.toml
kwp = "0.2"

example

use kwp::{Parser, Prefixes};

fn main() {
    let input = "+foo,-bar,+baz,-bak";

    let parser = Parser::new(
        &input,
        Prefixes::default()
    );
    let res = parser.parse();
    println!("{:#?}", res);
}
Commit count: 14

cargo fmt