]> git.proxmox.com Git - pxar.git/blame - Cargo.toml
clippy: use matches! instead of match
[pxar.git] / Cargo.toml
CommitLineData
6cd4f635
WB
1[package]
2name = "pxar"
379043a0 3version = "0.6.2"
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
WB
55[features]
56default = [ "futures-io", "tokio-io" ]
57futures-io = [ "futures" ]
58tokio-io = [ "tokio" ]
54109840 59tokio-fs = [ "tokio-io", "tokio/fs" ]
2fb73e7b 60
ae3ab159
WB
61full = [ "tokio-fs", "futures-io" ]
62
6cd4f635 63async-example = [
62aaaa86 64 "anyhow",
6cd4f635
WB
65 "futures-io",
66 "tokio-io",
54109840 67 "tokio-fs",
6e02c122 68 "tokio/rt-multi-thread",
6cd4f635
WB
69 "tokio/macros",
70]
2fd112ac 71
0104cf77 72test-harness = []