Skip to content

Commit 9b0555e

Browse files
committed
Temporarily disable async support.
1 parent 2cc7b2b commit 9b0555e

File tree

4 files changed

+23
-17
lines changed

4 files changed

+23
-17
lines changed

Cargo.toml

+11-11
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ publish = false
1515
exclude = ["/.*"]
1616

1717
[dev-dependencies]
18-
async-std = { version = "1.10.0", features = ["attributes"] }
18+
#async-std = { version = "1.10.0", features = ["attributes"] }
1919
anyhow = "1.0.37"
20-
cap-async-std = { path = "cap-async-std", version = "^0.25.0" }
20+
#cap-async-std = { path = "cap-async-std", version = "^0.25.0" }
2121
cap-fs-ext = { path = "cap-fs-ext", version = "^0.25.0" }
2222
cap-directories = { path = "cap-directories", version = "^0.25.0" }
2323
cap-std = { path = "cap-std", version = "^0.25.0" }
@@ -51,23 +51,23 @@ fs_utf8 = [
5151
"cap-fs-ext/fs_utf8",
5252
"cap-tempfile/fs_utf8",
5353
]
54-
async_std_fs_utf8 = [
55-
"cap-async-std/fs_utf8",
56-
"cap-fs-ext/async_std_fs_utf8"
57-
]
54+
#async_std_fs_utf8 = [
55+
# "cap-async-std/fs_utf8",
56+
# "cap-fs-ext/async_std_fs_utf8"
57+
#]
5858
arf_strings = [
5959
"cap-std/arf_strings",
6060
"cap-fs-ext/arf_strings",
6161
"cap-tempfile/arf_strings",
6262
]
63-
async_std_arf_strings = [
64-
"cap-async-std/arf_strings",
65-
"cap-fs-ext/async_std_arf_strings"
66-
]
63+
#async_std_arf_strings = [
64+
# "cap-async-std/arf_strings",
65+
# "cap-fs-ext/async_std_arf_strings"
66+
#]
6767

6868
[workspace]
6969
members = [
70-
"cap-async-std",
70+
#"cap-async-std",
7171
"cap-fs-ext",
7272
"cap-directories",
7373
"cap-primitives",

cap-async-std/Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ keywords = ["network", "file", "async", "future", "await"]
1111
categories = ["filesystem", "network-programming", "asynchronous", "concurrency"]
1212
repository = "https://github.com/bytecodealliance/cap-std"
1313
edition = "2018"
14+
publish = false # temporary, until async-rs/async-std#1036 is available
1415

1516
[dependencies]
1617
arf-strings = { version = "0.6.7", optional = true }

cap-fs-ext/Cargo.toml

+6-6
Original file line numberDiff line numberDiff line change
@@ -14,23 +14,23 @@ edition = "2018"
1414

1515
[dependencies]
1616
arf-strings = { version = "0.6.7", optional = true }
17-
cap-async-std = { path = "../cap-async-std", optional = true, version = "^0.25.0" }
17+
#cap-async-std = { path = "../cap-async-std", optional = true, version = "^0.25.0" }
1818
cap-std = { path = "../cap-std", optional = true, version = "^0.25.0" }
1919
cap-primitives = { path = "../cap-primitives", version = "^0.25.0" }
2020
io-lifetimes = { version = "0.7.0", default-features = false }
2121
# Enable "unstable" for `spawn_blocking`.
22-
async-std = { version = "1.10.0", features = ["attributes", "unstable"], optional = true }
23-
async-trait = { version = "0.1.42", optional = true }
22+
#async-std = { version = "1.10.0", features = ["attributes", "unstable"], optional = true }
23+
#async-trait = { version = "0.1.42", optional = true }
2424
camino = { version = "1.0.5", optional = true }
2525

2626
[features]
2727
default = ["std"]
2828
fs_utf8 = ["cap-std/fs_utf8", "camino"]
2929
arf_strings = ["cap-std/arf_strings", "fs_utf8", "arf-strings"]
3030
std = ["cap-std"]
31-
async_std = ["cap-async-std", "async-std", "io-lifetimes/async-std", "async-trait"]
32-
async_std_fs_utf8 = ["cap-async-std/fs_utf8", "camino"]
33-
async_std_arf_strings = ["cap-async-std/arf_strings", "async_std_fs_utf8", "arf-strings"]
31+
#async_std = ["cap-async-std", "async-std", "io-lifetimes/async-std", "async-trait"]
32+
#async_std_fs_utf8 = ["cap-async-std/fs_utf8", "camino"]
33+
#async_std_arf_strings = ["cap-async-std/arf_strings", "async_std_fs_utf8", "arf-strings"]
3434

3535
[target.'cfg(windows)'.dependencies.windows-sys]
3636
version = "0.36.0"

examples/async_std_fs_misc.rs

+5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Copied from https://doc.rust-lang.org/rust-by-example/std_misc/fs.html and
22
// adapted to use this crate instead.
33

4+
/*
45
use async_std::io;
56
use async_std::io::prelude::*;
67
use cap_async_std::ambient_authority;
@@ -111,3 +112,7 @@ async fn main() {
111112
println!("! {:?}", why.kind());
112113
});
113114
}
115+
*/
116+
fn main() {
117+
eprintln!("async-std doesn't have io_safety traits implemented yet");
118+
}

0 commit comments

Comments
 (0)