]> git.proxmox.com Git - pxar.git/blob - Cargo.toml
ditch anyhow crate in examples/tests
[pxar.git] / Cargo.toml
1 [package]
2 name = "pxar"
3 version = "0.10.1"
4 authors = ["Wolfgang Bumiller <w.bumiller@proxmox.com>"]
5 edition = "2018"
6 license = "AGPL-3"
7 description = "Proxmox Archive format support library"
8 exclude = [
9 "build",
10 "debian",
11 "testdir",
12 ]
13
14 [[example]]
15 name = "apxar"
16 path = "examples/apxar.rs"
17 required-features = [ "async-example" ]
18
19 [[example]]
20 name = "pxarcmd"
21 path = "examples/pxarcmd.rs"
22
23 [[example]]
24 name = "mk-format-hashes"
25 path = "examples/mk-format-hashes.rs"
26 test = false
27 bench = false
28 doc = false
29
30 [[test]]
31 name = "simple"
32 path = "tests/simple/main.rs"
33 test = true
34 required-features = [ "test-harness" ]
35
36 [[test]]
37 name = "compat"
38 path = "tests/compat.rs"
39 test = true
40 required-features = [ "test-harness" ]
41
42 [dependencies]
43 bitflags = "1.2.1"
44 endian_trait = { version = "0.6", features = ["arrays"] }
45 siphasher = "0.3"
46
47 tokio = { version = "1.0", optional = true, default-features = false }
48
49 [target.'cfg(target_os = "linux")'.dependencies]
50 libc = "0.2"
51
52 [features]
53 default = [ "tokio-io" ]
54 tokio-io = [ "tokio" ]
55 tokio-fs = [ "tokio-io", "tokio/fs" ]
56
57 full = [ "tokio-fs"]
58
59 async-example = [
60 "tokio-io",
61 "tokio-fs",
62 "tokio/rt-multi-thread",
63 "tokio/macros",
64 ]
65
66 test-harness = []