]> git.proxmox.com Git - pxar.git/blobdiff - Cargo.toml
fix fifo and socket entry kinds in accessor
[pxar.git] / Cargo.toml
index 7e6707954596280d289ad63d4d3ee6d8a6b28978..cc4b48bbfbd913f0f829b33f6bb72b6639900a4c 100644 (file)
@@ -1,8 +1,9 @@
 [package]
 name = "pxar"
-version = "0.1.7"
+# API broken, next is 0.11.0 (due to `ReadAtImpl` enum variants being made private)
+version = "0.10.1"
 authors = ["Wolfgang Bumiller <w.bumiller@proxmox.com>"]
-edition = "2018"
+edition = "2021"
 license = "AGPL-3"
 description = "Proxmox Archive format support library"
 exclude = [
@@ -16,33 +17,51 @@ 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"
+test = false
+bench = false
+doc = false
+
+[[test]]
+name = "simple"
+path = "tests/simple/main.rs"
+test = true
+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",
 ]
 
-[dev-dependencies]
-libc = "0.2"
-anyhow = "1.0"
+test-harness = []