# ua
Cross-platform User-Agent generator with best-effort installed browser detection.
This crate detects installed browsers and (when possible) uses their versions to generate realistic
`User-Agent` strings. It supports Windows, macOS, and Linux.
## Features
- Platform detection (OS + CPU arch)
- Installed browser detection (best-effort)
- User-Agent generation:
- Chromium family: Chrome / Edge / Chromium / Brave / Opera
- Firefox
- Safari (best-effort only)
- Strictness modes:
- `Real`: requires a detected browser version (Safari not supported)
- `BestEffort`: falls back to safe defaults
## Usage
```rust
use ua::{build_user_agent, UaStrictness};
let ua = build_user_agent(UaStrictness::BestEffort)?;
println!("{ua}");
# Ok::<(), ua::AgentError>(())