]> git.proxmox.com Git - pxar.git/blob - Cargo.toml
new hashes for the entire archive foramt
[pxar.git] / Cargo.toml
1 [package]
2 name = "pxar"
3 version = "0.1.9"
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 [dependencies]
27 bitflags = "1.2.1"
28 endian_trait = { version = "0.6", features = ["arrays"] }
29 siphasher = "0.3"
30
31 anyhow = { version = "1.0", optional = true }
32 futures = { version = "0.3.1", optional = true }
33 tokio = { version = "0.2.10", optional = true, default-features = false }
34
35 [features]
36 default = [ "futures-io", "tokio-io" ]
37 futures-io = [ "futures" ]
38 tokio-io = [ "tokio" ]
39 tokio-fs = [ "tokio-io", "tokio/fs" ]
40
41 full = [ "tokio-fs", "futures-io" ]
42
43 async-example = [
44 "anyhow",
45 "futures-io",
46 "tokio-io",
47 "tokio-fs",
48 "tokio/rt-threaded",
49 "tokio/io-driver",
50 "tokio/macros",
51 ]
52
53 [dev-dependencies]
54 libc = "0.2"
55 anyhow = "1.0"