user-agent-parser 0.5.0

A parser to get the product, OS, device, cpu, and engine information from a user agent, inspired by https://github.com/faisalman/ua-parser-js and https://github.com/ua-parser/uap-core
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
rust-version = "1.88"
name = "user-agent-parser"
version = "0.5.0"
authors = ["Magic Len <len@magiclen.org>"]
build = false
include = [
    "src/**/*",
    "Cargo.toml",
    "README.md",
    "LICENSE",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A parser to get the product, OS, device, cpu, and engine information from a user agent, inspired by https://github.com/faisalman/ua-parser-js and https://github.com/ua-parser/uap-core"
homepage = "https://magiclen.org/user-agent-parser"
readme = "README.md"
keywords = [
    "useragent",
    "user-agent",
    "uap",
    "rocket",
    "axum",
]
categories = ["parser-implementations"]
license = "MIT"
repository = "https://github.com/magiclen/user-agent-parser"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
axum = ["dep:axum"]
rocket = ["dep:rocket"]

[lib]
name = "user_agent_parser"
path = "src/lib.rs"

[dependencies.axum]
version = "0.8"
optional = true

[dependencies.regex]
version = "1"

[dependencies.rocket]
version = "0.5"
optional = true

[dependencies.yaml-rust]
version = "0.11"
package = "yaml-rust2"

[dev-dependencies.bencher]
version = "0.1"

[dev-dependencies.tokio]
version = "1"
features = [
    "rt-multi-thread",
    "macros",
    "net",
]