[package] name = "osv" version = "0.2.0" edition = "2021" authors = ["Grant Murphy "] repository = "https://github.com/gcmurphy/osv" documentation = "https://docs.rs/osv" description = "Rust library for parsing the OSV schema and client API" readme = "README.md" license = "Apache-2.0" keywords = ["vulnerabilities", "security", "osv"] [package.metadata.docs.rs] all-features = true [dependencies] chrono = { version = "0.4", features = ["serde"] } serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" reqwest = { version = "0.11", features = ["json"], optional = true } tokio = { version = "1", features = ["full"], optional = true } thiserror = { version = "1.0", optional = true } url = { version = "2.3.1", optional = true } [dev-dependencies] comfy-table = "5.0.1" textwrap = { version = "0.15.0", features = ["default", "terminal_size"] } tokio-test = "0.4.3" [features] default = ["schema"] schema = [] client = ["dep:tokio", "dep:reqwest", "dep:url", "dep:thiserror", "schema"] [[example]] name = "commit" path = "examples/commit.rs" required-features = ["client"] [[example]] name = "package" path = "examples/package.rs" required-features = ["client"] [[example]] name = "parse" path = "examples/parse.rs" required-features = ["client"] [[example]] name = "vulnerability" path = "examples/vulnerability.rs" required-features = ["client"]