[package] name = "krates" version = "0.17.5" description = "Create graphs of crates gathered from cargo metadata" authors = [ "Embark ", "Jake Shadle ", ] edition = "2021" repository = "https://github.com/EmbarkStudios/krates" license = "MIT OR Apache-2.0" readme = "README.md" documentation = "https://docs.rs/krates" homepage = "https://github.com/EmbarkStudios/krates" keywords = ["cargo", "metadata", "graph"] categories = ["visualization"] exclude = [".github", "tests"] rust-version = "1.65.0" [features] default = [] # Adds support for filtering target specific dependencies targets = ["cfg-expr/targets"] # Enables interop with cargo_metadata, if not enabled uses types defined within krates metadata = ["dep:cargo_metadata", "dep:cargo-platform"] [dependencies] camino = { version = "1.1", features = ["serde1"] } # Used for acquiring and/or deserializing `cargo metadata` output cargo_metadata = { version = "0.18", default-features = false, optional = true } # We need to use a type from this because it use part of the public API of cargo_metadata # ...but it's not actually in the public API :p cargo-platform = { version = "0.1", default-features = false, optional = true } # Used to parse and evaluate cfg() expressions for dependencies cfg-expr = "0.17" # Used to create and traverse graph structures petgraph = "0.6" # Used for checking version requirements semver = { version = "1.0", features = ["serde"] } serde = "1.0" serde_json = "1.0" [dev-dependencies] # Example CLI clap = { version = "4.5", features = ["derive"] } insta = "1.40" # Used to print colored diffs in case of test failures similar-asserts = "1.6" # Used to deserialize test files into metadata we can load serde_json = "1.0" # index metadata retrieval tame-index = "0.14" [profile.dev.package.insta] opt-level = 3 [profile.dev.package.similar] opt-level = 3