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