]> git.proxmox.com Git - pxar.git/blame - Cargo.toml
generate and check-in d/control
[pxar.git] / Cargo.toml
CommitLineData
6cd4f635
WB
1[package]
2name = "pxar"
37cb1826 3version = "0.4.0"
6cd4f635
WB
4authors = ["Wolfgang Bumiller <w.bumiller@proxmox.com>"]
5edition = "2018"
707bad0d
WB
6license = "AGPL-3"
7description = "Proxmox Archive format support library"
fe8d3023 8exclude = [
707bad0d
WB
9 "build",
10 "debian",
fe8d3023
WB
11 "testdir",
12]
6cd4f635
WB
13
14[[example]]
15name = "apxar"
16path = "examples/apxar.rs"
17required-features = [ "async-example" ]
18
1b1e52a4
WB
19[[example]]
20name = "mk-format-hashes"
21path = "examples/mk-format-hashes.rs"
22test = false
23bench = false
24doc = false
25
0104cf77
WB
26[[test]]
27name = "simple"
28path = "tests/simple/main.rs"
29test = true
30required-features = [ "anyhow", "test-harness" ]
31
6cd4f635
WB
32[dependencies]
33bitflags = "1.2.1"
34endian_trait = { version = "0.6", features = ["arrays"] }
6cd4f635
WB
35siphasher = "0.3"
36
62aaaa86 37anyhow = { version = "1.0", optional = true }
6cd4f635
WB
38futures = { version = "0.3.1", optional = true }
39tokio = { version = "0.2.10", optional = true, default-features = false }
40
41[features]
42default = [ "futures-io", "tokio-io" ]
43futures-io = [ "futures" ]
44tokio-io = [ "tokio" ]
54109840 45tokio-fs = [ "tokio-io", "tokio/fs" ]
2fb73e7b 46
ae3ab159
WB
47full = [ "tokio-fs", "futures-io" ]
48
6cd4f635 49async-example = [
62aaaa86 50 "anyhow",
6cd4f635
WB
51 "futures-io",
52 "tokio-io",
54109840 53 "tokio-fs",
6cd4f635
WB
54 "tokio/rt-threaded",
55 "tokio/io-driver",
56 "tokio/macros",
57]
2fd112ac 58
0104cf77
WB
59test-harness = []
60
2fd112ac
WB
61[dev-dependencies]
62libc = "0.2"
63anyhow = "1.0"