]> git.proxmox.com Git - pxar.git/blame - Cargo.toml
drop custom poll_fn, require rust 1.64
[pxar.git] / Cargo.toml
CommitLineData
6cd4f635
WB
1[package]
2name = "pxar"
5d4e59c5 3# API broken, next is 0.11.0 (due to `ReadAtImpl` enum variants being made private)
29cbeed3 4version = "0.10.2"
6cd4f635 5authors = ["Wolfgang Bumiller <w.bumiller@proxmox.com>"]
149f88f3 6edition = "2021"
707bad0d
WB
7license = "AGPL-3"
8description = "Proxmox Archive format support library"
fe8d3023 9exclude = [
707bad0d
WB
10 "build",
11 "debian",
fe8d3023
WB
12 "testdir",
13]
6cd4f635
WB
14
15[[example]]
16name = "apxar"
17path = "examples/apxar.rs"
18required-features = [ "async-example" ]
19
ffbe3ebc
WB
20[[example]]
21name = "pxarcmd"
22path = "examples/pxarcmd.rs"
ffbe3ebc 23
1b1e52a4
WB
24[[example]]
25name = "mk-format-hashes"
26path = "examples/mk-format-hashes.rs"
27test = false
28bench = false
29doc = false
30
0104cf77
WB
31[[test]]
32name = "simple"
33path = "tests/simple/main.rs"
34test = true
71194b54 35required-features = [ "test-harness" ]
0104cf77 36
ffbe3ebc
WB
37[[test]]
38name = "compat"
39path = "tests/compat.rs"
40test = true
41required-features = [ "test-harness" ]
42
6cd4f635
WB
43[dependencies]
44bitflags = "1.2.1"
45endian_trait = { version = "0.6", features = ["arrays"] }
6cd4f635
WB
46siphasher = "0.3"
47
6e02c122 48tokio = { version = "1.0", optional = true, default-features = false }
6cd4f635 49
ffbe3ebc
WB
50[target.'cfg(target_os = "linux")'.dependencies]
51libc = "0.2"
52
6cd4f635 53[features]
7aee9c1f 54default = [ "tokio-io" ]
6cd4f635 55tokio-io = [ "tokio" ]
54109840 56tokio-fs = [ "tokio-io", "tokio/fs" ]
2fb73e7b 57
7aee9c1f 58full = [ "tokio-fs"]
ae3ab159 59
6cd4f635 60async-example = [
6cd4f635 61 "tokio-io",
54109840 62 "tokio-fs",
6e02c122 63 "tokio/rt-multi-thread",
6cd4f635
WB
64 "tokio/macros",
65]
2fd112ac 66
0104cf77 67test-harness = []