]> git.proxmox.com Git - pxar.git/blob - Cargo.toml
move extra build-dependencies from .builtbot.yml to d/control
[pxar.git] / Cargo.toml
1 [package]
2 name = "pxar"
3 version = "0.7.0"
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 required-features = [ "anyhow" ]
23
24 [[example]]
25 name = "mk-format-hashes"
26 path = "examples/mk-format-hashes.rs"
27 test = false
28 bench = false
29 doc = false
30
31 [[test]]
32 name = "simple"
33 path = "tests/simple/main.rs"
34 test = true
35 required-features = [ "anyhow", "test-harness" ]
36
37 [[test]]
38 name = "compat"
39 path = "tests/compat.rs"
40 test = true
41 required-features = [ "test-harness" ]
42
43 [dependencies]
44 bitflags = "1.2.1"
45 endian_trait = { version = "0.6", features = ["arrays"] }
46 siphasher = "0.3"
47
48 anyhow = { version = "1.0", optional = true }
49 futures = { version = "0.3.1", optional = true }
50 tokio = { version = "1.0", optional = true, default-features = false }
51
52 [target.'cfg(target_os = "linux")'.dependencies]
53 libc = "0.2"
54
55 [features]
56 default = [ "tokio-io" ]
57 tokio-io = [ "tokio" ]
58 tokio-fs = [ "tokio-io", "tokio/fs" ]
59
60 full = [ "tokio-fs"]
61
62 async-example = [
63 "anyhow",
64 "tokio-io",
65 "tokio-fs",
66 "tokio/rt-multi-thread",
67 "tokio/macros",
68 ]
69
70 test-harness = []