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