]> git.proxmox.com Git - pxar.git/blame - Cargo.toml
Add a metadata builder
[pxar.git] / Cargo.toml
CommitLineData
6cd4f635
WB
1[package]
2name = "pxar"
284b53eb 3version = "0.2.0"
6cd4f635
WB
4authors = ["Wolfgang Bumiller <w.bumiller@proxmox.com>"]
5edition = "2018"
707bad0d
WB
6license = "AGPL-3"
7description = "Proxmox Archive format support library"
fe8d3023 8exclude = [
707bad0d
WB
9 "build",
10 "debian",
fe8d3023
WB
11 "testdir",
12]
6cd4f635
WB
13
14[[example]]
15name = "apxar"
16path = "examples/apxar.rs"
17required-features = [ "async-example" ]
18
1b1e52a4
WB
19[[example]]
20name = "mk-format-hashes"
21path = "examples/mk-format-hashes.rs"
22test = false
23bench = false
24doc = false
25
6cd4f635
WB
26[dependencies]
27bitflags = "1.2.1"
28endian_trait = { version = "0.6", features = ["arrays"] }
6cd4f635
WB
29siphasher = "0.3"
30
62aaaa86 31anyhow = { version = "1.0", optional = true }
6cd4f635
WB
32futures = { version = "0.3.1", optional = true }
33tokio = { version = "0.2.10", optional = true, default-features = false }
34
35[features]
36default = [ "futures-io", "tokio-io" ]
37futures-io = [ "futures" ]
38tokio-io = [ "tokio" ]
54109840 39tokio-fs = [ "tokio-io", "tokio/fs" ]
2fb73e7b 40
ae3ab159
WB
41full = [ "tokio-fs", "futures-io" ]
42
6cd4f635 43async-example = [
62aaaa86 44 "anyhow",
6cd4f635
WB
45 "futures-io",
46 "tokio-io",
54109840 47 "tokio-fs",
6cd4f635
WB
48 "tokio/rt-threaded",
49 "tokio/io-driver",
50 "tokio/macros",
51]
2fd112ac
WB
52
53[dev-dependencies]
54libc = "0.2"
55anyhow = "1.0"