Debian Codegraph @

test cases/rust/22 cargo subproject/subprojects/foo-0-rs/Cargo.toml

raw
1 [package]
2 name = "foo"
3 version = "0.0.1"
4 edition = "2021"
5
6 [lib]
7 crate-type = ["lib", "staticlib", "cdylib"]
8 path = "lib.rs"
9
10 # This dependency does not exist, verify optional works.
11 [dependencies.notfound]
12 optional = true
13 version = "1.0"
14
15 [dependencies]
16 mybar = { version = "0.1", package = "bar", default-features = false }
17
18 [dependencies.common]
19 version = "0.0.1"
20 features = ["f1"]
21
22 [dependencies.libname]
23 version = "1"
24
25 [target."cfg(unix)".dependencies.unixdep]
26 version = "0.1"
27
28 [features]
29 default = ["f1"]
30 f1 = ["f2", "f3"]
31 f2 = ["f1"]
32 f3 = ["mybar/f1", "notfound?/invalid"]
33 f4 = ["dep:notfound"]