|0.6.1||Jul 23, 2023|
|0.6.0||May 14, 2022|
|0.5.1||Feb 18, 2022|
|0.4.0||May 20, 2020|
|0.3.1||Mar 28, 2019|
#49 in HTTP client
20,366 downloads per month
Used in 4 crates
User Agent Parser
This crate is an implementation of a User Agent Parser, similar to those found as part of the UA-Parser Community. It tries to remain as consistent with the other implementations as possible while remaining simple and legible.
Every UA Parser implementation depends on the same
regexes.yaml file, which is used to create the parser. You can find this file here or by initializing the submodule of this repo if you have it cloned.
To get to the docs, clone the repo and run
cargo doc --open to build the documentation
git submodule update --initto get started
cargo test -- --nocapturefor the full results
Performance and Benchmarking
cargo bench will run a criterion benchmark suite.
To see memory usage of the compiled regex list you can run the examples with a tool that tracks memory usage.
Example (on MacOS):
/usr/bin/time -l cargo run --examples full_parser