]>
Commit | Line | Data |
---|---|---|
6cd4f635 WB |
1 | [package] |
2 | name = "pxar" | |
64f8857c | 3 | version = "0.10.0" |
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 } |
6e02c122 | 49 | tokio = { version = "1.0", optional = true, default-features = false } |
6cd4f635 | 50 | |
ffbe3ebc WB |
51 | [target.'cfg(target_os = "linux")'.dependencies] |
52 | libc = "0.2" | |
53 | ||
6cd4f635 | 54 | [features] |
7aee9c1f | 55 | default = [ "tokio-io" ] |
6cd4f635 | 56 | tokio-io = [ "tokio" ] |
54109840 | 57 | tokio-fs = [ "tokio-io", "tokio/fs" ] |
2fb73e7b | 58 | |
7aee9c1f | 59 | full = [ "tokio-fs"] |
ae3ab159 | 60 | |
6cd4f635 | 61 | async-example = [ |
62aaaa86 | 62 | "anyhow", |
6cd4f635 | 63 | "tokio-io", |
54109840 | 64 | "tokio-fs", |
6e02c122 | 65 | "tokio/rt-multi-thread", |
6cd4f635 WB |
66 | "tokio/macros", |
67 | ] | |
2fd112ac | 68 | |
0104cf77 | 69 | test-harness = [] |