]>
Commit | Line | Data |
---|---|---|
6cd4f635 WB |
1 | [package] |
2 | name = "pxar" | |
8029a6e7 | 3 | version = "0.1.9" |
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 | ||
1b1e52a4 WB |
19 | [[example]] |
20 | name = "mk-format-hashes" | |
21 | path = "examples/mk-format-hashes.rs" | |
22 | test = false | |
23 | bench = false | |
24 | doc = false | |
25 | ||
6cd4f635 WB |
26 | [dependencies] |
27 | bitflags = "1.2.1" | |
28 | endian_trait = { version = "0.6", features = ["arrays"] } | |
6cd4f635 WB |
29 | siphasher = "0.3" |
30 | ||
62aaaa86 | 31 | anyhow = { version = "1.0", optional = true } |
6cd4f635 WB |
32 | futures = { version = "0.3.1", optional = true } |
33 | tokio = { version = "0.2.10", optional = true, default-features = false } | |
34 | ||
35 | [features] | |
36 | default = [ "futures-io", "tokio-io" ] | |
37 | futures-io = [ "futures" ] | |
38 | tokio-io = [ "tokio" ] | |
54109840 | 39 | tokio-fs = [ "tokio-io", "tokio/fs" ] |
2fb73e7b | 40 | |
ae3ab159 WB |
41 | full = [ "tokio-fs", "futures-io" ] |
42 | ||
6cd4f635 | 43 | async-example = [ |
62aaaa86 | 44 | "anyhow", |
6cd4f635 WB |
45 | "futures-io", |
46 | "tokio-io", | |
54109840 | 47 | "tokio-fs", |
6cd4f635 WB |
48 | "tokio/rt-threaded", |
49 | "tokio/io-driver", | |
50 | "tokio/macros", | |
51 | ] | |
2fd112ac WB |
52 | |
53 | [dev-dependencies] | |
54 | libc = "0.2" | |
55 | anyhow = "1.0" |