Skip to content

Commit

Permalink
Temporarily disable async support.
Browse files Browse the repository at this point in the history
  • Loading branch information
sunfishcode committed Aug 23, 2022
1 parent cd966ac commit 2958354
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 17 deletions.
22 changes: 11 additions & 11 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ publish = false
exclude = ["/.*"]

[dev-dependencies]
async-std = { version = "1.10.0", features = ["attributes"] }
#async-std = { version = "1.10.0", features = ["attributes"] }
anyhow = "1.0.37"
cap-async-std = { path = "cap-async-std", version = "^0.25.0" }
#cap-async-std = { path = "cap-async-std", version = "^0.25.0" }
cap-fs-ext = { path = "cap-fs-ext", version = "^0.25.0" }
cap-directories = { path = "cap-directories", version = "^0.25.0" }
cap-std = { path = "cap-std", version = "^0.25.0" }
Expand Down Expand Up @@ -51,23 +51,23 @@ fs_utf8 = [
"cap-fs-ext/fs_utf8",
"cap-tempfile/fs_utf8",
]
async_std_fs_utf8 = [
"cap-async-std/fs_utf8",
"cap-fs-ext/async_std_fs_utf8"
]
#async_std_fs_utf8 = [
# "cap-async-std/fs_utf8",
# "cap-fs-ext/async_std_fs_utf8"
#]
arf_strings = [
"cap-std/arf_strings",
"cap-fs-ext/arf_strings",
"cap-tempfile/arf_strings",
]
async_std_arf_strings = [
"cap-async-std/arf_strings",
"cap-fs-ext/async_std_arf_strings"
]
#async_std_arf_strings = [
# "cap-async-std/arf_strings",
# "cap-fs-ext/async_std_arf_strings"
#]

[workspace]
members = [
"cap-async-std",
#"cap-async-std",
"cap-fs-ext",
"cap-directories",
"cap-primitives",
Expand Down
12 changes: 6 additions & 6 deletions cap-fs-ext/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,23 @@ edition = "2018"

[dependencies]
arf-strings = { version = "0.6.7", optional = true }
cap-async-std = { path = "../cap-async-std", optional = true, version = "^0.25.0" }
#cap-async-std = { path = "../cap-async-std", optional = true, version = "^0.25.0" }
cap-std = { path = "../cap-std", optional = true, version = "^0.25.0" }
cap-primitives = { path = "../cap-primitives", version = "^0.25.0" }
io-lifetimes = { version = "0.7.0", default-features = false }
# Enable "unstable" for `spawn_blocking`.
async-std = { version = "1.10.0", features = ["attributes", "unstable"], optional = true }
async-trait = { version = "0.1.42", optional = true }
#async-std = { version = "1.10.0", features = ["attributes", "unstable"], optional = true }
#async-trait = { version = "0.1.42", optional = true }
camino = { version = "1.0.5", optional = true }

[features]
default = ["std"]
fs_utf8 = ["cap-std/fs_utf8", "camino"]
arf_strings = ["cap-std/arf_strings", "fs_utf8", "arf-strings"]
std = ["cap-std"]
async_std = ["cap-async-std", "async-std", "io-lifetimes/async-std", "async-trait"]
async_std_fs_utf8 = ["cap-async-std/fs_utf8", "camino"]
async_std_arf_strings = ["cap-async-std/arf_strings", "async_std_fs_utf8", "arf-strings"]
#async_std = ["cap-async-std", "async-std", "io-lifetimes/async-std", "async-trait"]
#async_std_fs_utf8 = ["cap-async-std/fs_utf8", "camino"]
#async_std_arf_strings = ["cap-async-std/arf_strings", "async_std_fs_utf8", "arf-strings"]

[target.'cfg(windows)'.dependencies.windows-sys]
version = "0.36.0"
Expand Down
5 changes: 5 additions & 0 deletions examples/async_std_fs_misc.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Copied from https://doc.rust-lang.org/rust-by-example/std_misc/fs.html and
// adapted to use this crate instead.

/*
use async_std::io;
use async_std::io::prelude::*;
use cap_async_std::ambient_authority;
Expand Down Expand Up @@ -111,3 +112,7 @@ async fn main() {
println!("! {:?}", why.kind());
});
}
*/
fn main() {
eprintln!("async-std doesn't have io_safety traits implemented yet");
}

0 comments on commit 2958354

Please sign in to comment.