]> git.proxmox.com Git - pxar.git/blame - Cargo.toml
update builbot.yml for tokio 1.0
[pxar.git] / Cargo.toml
CommitLineData
6cd4f635
WB
1[package]
2name = "pxar"
5db2e175 3version = "0.7.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
ffbe3ebc
WB
19[[example]]
20name = "pxarcmd"
21path = "examples/pxarcmd.rs"
22required-features = [ "anyhow" ]
23
1b1e52a4
WB
24[[example]]
25name = "mk-format-hashes"
26path = "examples/mk-format-hashes.rs"
27test = false
28bench = false
29doc = false
30
0104cf77
WB
31[[test]]
32name = "simple"
33path = "tests/simple/main.rs"
34test = true
35required-features = [ "anyhow", "test-harness" ]
36
ffbe3ebc
WB
37[[test]]
38name = "compat"
39path = "tests/compat.rs"
40test = true
41required-features = [ "test-harness" ]
42
6cd4f635
WB
43[dependencies]
44bitflags = "1.2.1"
45endian_trait = { version = "0.6", features = ["arrays"] }
6cd4f635
WB
46siphasher = "0.3"
47
62aaaa86 48anyhow = { version = "1.0", optional = true }
6cd4f635 49futures = { version = "0.3.1", optional = true }
6e02c122 50tokio = { version = "1.0", optional = true, default-features = false }
6cd4f635 51
ffbe3ebc
WB
52[target.'cfg(target_os = "linux")'.dependencies]
53libc = "0.2"
54
6cd4f635 55[features]
7aee9c1f 56default = [ "tokio-io" ]
6cd4f635 57tokio-io = [ "tokio" ]
54109840 58tokio-fs = [ "tokio-io", "tokio/fs" ]
2fb73e7b 59
7aee9c1f 60full = [ "tokio-fs"]
ae3ab159 61
6cd4f635 62async-example = [
62aaaa86 63 "anyhow",
6cd4f635 64 "tokio-io",
54109840 65 "tokio-fs",
6e02c122 66 "tokio/rt-multi-thread",
6cd4f635
WB
67 "tokio/macros",
68]
2fd112ac 69
0104cf77 70test-harness = []