]> git.proxmox.com Git - pxar.git/blame_incremental - Cargo.toml
don't hold temp buffer mutex across await point
[pxar.git] / Cargo.toml
... / ...
CommitLineData
1[package]
2name = "pxar"
3# API broken, next is 0.11.0 (due to `ReadAtImpl` enum variants being made private)
4version = "0.10.1"
5authors = ["Wolfgang Bumiller <w.bumiller@proxmox.com>"]
6edition = "2021"
7license = "AGPL-3"
8description = "Proxmox Archive format support library"
9exclude = [
10 "build",
11 "debian",
12 "testdir",
13]
14
15[[example]]
16name = "apxar"
17path = "examples/apxar.rs"
18required-features = [ "async-example" ]
19
20[[example]]
21name = "pxarcmd"
22path = "examples/pxarcmd.rs"
23
24[[example]]
25name = "mk-format-hashes"
26path = "examples/mk-format-hashes.rs"
27test = false
28bench = false
29doc = false
30
31[[test]]
32name = "simple"
33path = "tests/simple/main.rs"
34test = true
35required-features = [ "test-harness" ]
36
37[[test]]
38name = "compat"
39path = "tests/compat.rs"
40test = true
41required-features = [ "test-harness" ]
42
43[dependencies]
44bitflags = "1.2.1"
45endian_trait = { version = "0.6", features = ["arrays"] }
46siphasher = "0.3"
47
48tokio = { version = "1.0", optional = true, default-features = false }
49
50[target.'cfg(target_os = "linux")'.dependencies]
51libc = "0.2"
52
53[features]
54default = [ "tokio-io" ]
55tokio-io = [ "tokio" ]
56tokio-fs = [ "tokio-io", "tokio/fs" ]
57
58full = [ "tokio-fs"]
59
60async-example = [
61 "tokio-io",
62 "tokio-fs",
63 "tokio/rt-multi-thread",
64 "tokio/macros",
65]
66
67test-harness = []