]> git.proxmox.com Git - pxar.git/blob - Cargo.toml
bump version to 0.8.0-1
[pxar.git] / Cargo.toml
1 [package]
2 name = "pxar"
3 version = "0.8.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 tokio = { version = "1.0", optional = true, default-features = false }
50
51 [target.'cfg(target_os = "linux")'.dependencies]
52 libc = "0.2"
53
54 [features]
55 default = [ "tokio-io" ]
56 tokio-io = [ "tokio" ]
57 tokio-fs = [ "tokio-io", "tokio/fs" ]
58
59 full = [ "tokio-fs"]
60
61 async-example = [
62 "anyhow",
63 "tokio-io",
64 "tokio-fs",
65 "tokio/rt-multi-thread",
66 "tokio/macros",
67 ]
68
69 test-harness = []