generated from EmbarkStudios/opensource-template
-
Notifications
You must be signed in to change notification settings - Fork 18
/
Cargo.toml
58 lines (53 loc) · 1.88 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
[package]
name = "krates"
version = "0.17.5"
description = "Create graphs of crates gathered from cargo metadata"
authors = [
"Embark <[email protected]>",
"Jake Shadle <[email protected]>",
]
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