Debian Codegraph @

vendored-meson/meson/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 = ["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 # This dependency is optional but required for f3 which is on by default.
16 [dependencies.extra-dep]
17 optional = true
18 version = "1.0"
19
20 [dependencies]
21 mybar = { version = "0.1", package = "bar", default-features = false }
22
23 [dependencies.common]
24 version = "0.0.1"
25 features = ["f1"]
26
27 [dependencies.libname]
28 version = "1"
29
30 [target."cfg(unix)".dependencies.unixdep]
31 version = "0.1"
32
33 [features]
34 default = ["f1"]
35 f1 = ["f2", "f3"]
36 f2 = ["f1"]
37 f3 = ["mybar/f1", "dep:extra-dep", "notfound?/invalid"]
38 f4 = ["dep:notfound"]