User Agent Parser
A fast and comprehensive user agent string parser for Rust that detects:
- Browsers (Chrome, Safari, Firefox, etc.)
- Operating Systems (Windows, macOS, Android, etc.)
- Device Types (Mobile, Tablet, Desktop, etc.)
Features
- 🚀 Fast parsing using optimized regular expressions
- 📦 No external network requests - works offline
- 🧩 Comprehensive coverage of browsers, OSes, and devices
- 🔍 Accurate detection of modern and legacy user agents
- 🛠 Serde support for easy serialization/deserialization
- 📚 Well-documented with examples
Installation
Add this to your Cargo.toml:
[]
= "0.1"
Usage
use ;
let info = parse;
assert_eq!;
assert_eq!;
assert_eq!;
Contributing
Contributions are welcome! Please open an issue or submit a PR for:
- New browser/OS/device detection
- Performance improvements
- Bug fixes
License
Dual-licensed under MIT or Apache 2.0 at your option.