]> git.proxmox.com Git - pxar.git/blame - Cargo.toml
some clippy fixes
[pxar.git] / Cargo.toml
CommitLineData
6cd4f635
WB
1[package]
2name = "pxar"
b203d38b 3version = "0.10.1"
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 }
6e02c122 49tokio = { version = "1.0", optional = true, default-features = false }
6cd4f635 50
ffbe3ebc
WB
51[target.'cfg(target_os = "linux")'.dependencies]
52libc = "0.2"
53
6cd4f635 54[features]
7aee9c1f 55default = [ "tokio-io" ]
6cd4f635 56tokio-io = [ "tokio" ]
54109840 57tokio-fs = [ "tokio-io", "tokio/fs" ]
2fb73e7b 58
7aee9c1f 59full = [ "tokio-fs"]
ae3ab159 60
6cd4f635 61async-example = [
62aaaa86 62 "anyhow",
6cd4f635 63 "tokio-io",
54109840 64 "tokio-fs",
6e02c122 65 "tokio/rt-multi-thread",
6cd4f635
WB
66 "tokio/macros",
67]
2fd112ac 68
0104cf77 69test-harness = []