]> git.proxmox.com Git - pxar.git/blob - Cargo.toml
bump version to 0.4.0-1
[pxar.git] / Cargo.toml
1 [package]
2 name = "pxar"
3 version = "0.4.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 = "mk-format-hashes"
21 path = "examples/mk-format-hashes.rs"
22 test = false
23 bench = false
24 doc = false
25
26 [[test]]
27 name = "simple"
28 path = "tests/simple/main.rs"
29 test = true
30 required-features = [ "anyhow", "test-harness" ]
31
32 [dependencies]
33 bitflags = "1.2.1"
34 endian_trait = { version = "0.6", features = ["arrays"] }
35 siphasher = "0.3"
36
37 anyhow = { version = "1.0", optional = true }
38 futures = { version = "0.3.1", optional = true }
39 tokio = { version = "0.2.10", optional = true, default-features = false }
40
41 [features]
42 default = [ "futures-io", "tokio-io" ]
43 futures-io = [ "futures" ]
44 tokio-io = [ "tokio" ]
45 tokio-fs = [ "tokio-io", "tokio/fs" ]
46
47 full = [ "tokio-fs", "futures-io" ]
48
49 async-example = [
50 "anyhow",
51 "futures-io",
52 "tokio-io",
53 "tokio-fs",
54 "tokio/rt-threaded",
55 "tokio/io-driver",
56 "tokio/macros",
57 ]
58
59 test-harness = []
60
61 [dev-dependencies]
62 libc = "0.2"
63 anyhow = "1.0"