]>
Commit | Line | Data |
---|---|---|
6cd4f635 WB |
1 | [package] |
2 | name = "pxar" | |
4f2d271a | 3 | version = "0.6.1" |
6cd4f635 WB |
4 | authors = ["Wolfgang Bumiller <w.bumiller@proxmox.com>"] |
5 | edition = "2018" | |
707bad0d WB |
6 | license = "AGPL-3" |
7 | description = "Proxmox Archive format support library" | |
fe8d3023 | 8 | exclude = [ |
707bad0d WB |
9 | "build", |
10 | "debian", | |
fe8d3023 WB |
11 | "testdir", |
12 | ] | |
6cd4f635 WB |
13 | |
14 | [[example]] | |
15 | name = "apxar" | |
16 | path = "examples/apxar.rs" | |
17 | required-features = [ "async-example" ] | |
18 | ||
ffbe3ebc WB |
19 | [[example]] |
20 | name = "pxarcmd" | |
21 | path = "examples/pxarcmd.rs" | |
22 | required-features = [ "anyhow" ] | |
23 | ||
1b1e52a4 WB |
24 | [[example]] |
25 | name = "mk-format-hashes" | |
26 | path = "examples/mk-format-hashes.rs" | |
27 | test = false | |
28 | bench = false | |
29 | doc = false | |
30 | ||
0104cf77 WB |
31 | [[test]] |
32 | name = "simple" | |
33 | path = "tests/simple/main.rs" | |
34 | test = true | |
35 | required-features = [ "anyhow", "test-harness" ] | |
36 | ||
ffbe3ebc WB |
37 | [[test]] |
38 | name = "compat" | |
39 | path = "tests/compat.rs" | |
40 | test = true | |
41 | required-features = [ "test-harness" ] | |
42 | ||
6cd4f635 WB |
43 | [dependencies] |
44 | bitflags = "1.2.1" | |
45 | endian_trait = { version = "0.6", features = ["arrays"] } | |
6cd4f635 WB |
46 | siphasher = "0.3" |
47 | ||
62aaaa86 | 48 | anyhow = { version = "1.0", optional = true } |
6cd4f635 WB |
49 | futures = { version = "0.3.1", optional = true } |
50 | tokio = { version = "0.2.10", optional = true, default-features = false } | |
51 | ||
ffbe3ebc WB |
52 | [target.'cfg(target_os = "linux")'.dependencies] |
53 | libc = "0.2" | |
54 | ||
6cd4f635 WB |
55 | [features] |
56 | default = [ "futures-io", "tokio-io" ] | |
57 | futures-io = [ "futures" ] | |
58 | tokio-io = [ "tokio" ] | |
54109840 | 59 | tokio-fs = [ "tokio-io", "tokio/fs" ] |
2fb73e7b | 60 | |
ae3ab159 WB |
61 | full = [ "tokio-fs", "futures-io" ] |
62 | ||
6cd4f635 | 63 | async-example = [ |
62aaaa86 | 64 | "anyhow", |
6cd4f635 WB |
65 | "futures-io", |
66 | "tokio-io", | |
54109840 | 67 | "tokio-fs", |
6cd4f635 WB |
68 | "tokio/rt-threaded", |
69 | "tokio/io-driver", | |
70 | "tokio/macros", | |
71 | ] | |
2fd112ac | 72 | |
0104cf77 | 73 | test-harness = [] |