]> git.proxmox.com Git - pxar.git/blob - Cargo.toml
cc4b48bbfbd913f0f829b33f6bb72b6639900a4c
[pxar.git] / Cargo.toml
1 [package]
2 name = "pxar"
3 # API broken, next is 0.11.0 (due to `ReadAtImpl` enum variants being made private)
4 version = "0.10.1"
5 authors = ["Wolfgang Bumiller <w.bumiller@proxmox.com>"]
6 edition = "2021"
7 license = "AGPL-3"
8 description = "Proxmox Archive format support library"
9 exclude = [
10 "build",
11 "debian",
12 "testdir",
13 ]
14
15 [[example]]
16 name = "apxar"
17 path = "examples/apxar.rs"
18 required-features = [ "async-example" ]
19
20 [[example]]
21 name = "pxarcmd"
22 path = "examples/pxarcmd.rs"
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 = [ "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 tokio = { version = "1.0", optional = true, default-features = false }
49
50 [target.'cfg(target_os = "linux")'.dependencies]
51 libc = "0.2"
52
53 [features]
54 default = [ "tokio-io" ]
55 tokio-io = [ "tokio" ]
56 tokio-fs = [ "tokio-io", "tokio/fs" ]
57
58 full = [ "tokio-fs"]
59
60 async-example = [
61 "tokio-io",
62 "tokio-fs",
63 "tokio/rt-multi-thread",
64 "tokio/macros",
65 ]
66
67 test-harness = []