X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=Cargo.toml;h=d120e70feccef1365c159d42c3f1bb245cb3b00a;hb=f5be8e5c6d1ee238e2fa51ec3506db2086de5829;hp=1890e7da0dd0ff35954c0ad13111a2b4f522f8db;hpb=0104cf77b718874faf5f4e7d2fa489ee1c65c964;p=pxar.git diff --git a/Cargo.toml b/Cargo.toml index 1890e7d..d120e70 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,8 +1,9 @@ [package] name = "pxar" -version = "0.2.0" +# API broken, next is 0.11.0 (due to `ReadAtImpl` enum variants being made private) +version = "0.10.2" authors = ["Wolfgang Bumiller "] -edition = "2018" +edition = "2021" license = "AGPL-3" description = "Proxmox Archive format support library" exclude = [ @@ -16,6 +17,10 @@ name = "apxar" path = "examples/apxar.rs" required-features = [ "async-example" ] +[[example]] +name = "pxarcmd" +path = "examples/pxarcmd.rs" + [[example]] name = "mk-format-hashes" path = "examples/mk-format-hashes.rs" @@ -27,37 +32,36 @@ doc = false name = "simple" path = "tests/simple/main.rs" test = true -required-features = [ "anyhow", "test-harness" ] +required-features = [ "test-harness" ] + +[[test]] +name = "compat" +path = "tests/compat.rs" +test = true +required-features = [ "test-harness" ] [dependencies] bitflags = "1.2.1" endian_trait = { version = "0.6", features = ["arrays"] } siphasher = "0.3" -anyhow = { version = "1.0", optional = true } -futures = { version = "0.3.1", optional = true } -tokio = { version = "0.2.10", optional = true, default-features = false } +tokio = { version = "1.0", optional = true, default-features = false } + +[target.'cfg(target_os = "linux")'.dependencies] +libc = "0.2" [features] -default = [ "futures-io", "tokio-io" ] -futures-io = [ "futures" ] +default = [ "tokio-io" ] tokio-io = [ "tokio" ] tokio-fs = [ "tokio-io", "tokio/fs" ] -full = [ "tokio-fs", "futures-io" ] +full = [ "tokio-fs"] async-example = [ - "anyhow", - "futures-io", "tokio-io", "tokio-fs", - "tokio/rt-threaded", - "tokio/io-driver", + "tokio/rt-multi-thread", "tokio/macros", ] test-harness = [] - -[dev-dependencies] -libc = "0.2" -anyhow = "1.0"