docs.rs failed to build simple-useragent-0.1.4
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build:
simple-useragent-0.1.3
Simple UserAgent parser
A simple user agent parser library based on the uap-core regexes.
Installation
Add the library to your project:
Install the command-line tool:
Example
A simple example that parses a user agent string and reads the parsed fields:
// Create a user agent parser
let parser = new;
// Parse a user agent string
let ua = parser.parse;
// Print the parsed user agent fields
println!; // -> "Firefox"
println!; // -> Some("134.0")
println!; // -> "Mac OS X"
println!; // -> Some("10.15")
Command line
Inspect one or more quoted user-agent strings with the installed tool:
Or run it from this repository:
Features
- serde: Enable serialization and deserialization derives of the structs with serde.
Documentation
See the documentation for more information.
License
Copyright © 2024-2026 Bastiaan van der Plaat
Licensed under the MIT license.