Skip to content

Commit

Permalink
[rust-3p] Make async-io a fork
Browse files Browse the repository at this point in the history
We want to add smol-rs/async-io#79 to our
distribution of async-io, so move it to forks.

Change-Id: Iccdab4f4a6aed7b773dbe200f07ce4e4f0bc9a05
Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/871499
Reviewed-by: Steven Grady <[email protected]>
Reviewed-by: Adam Perry <[email protected]>
Fuchsia-Auto-Submit: Casey Dahlin <[email protected]>
Commit-Queue: Casey Dahlin <[email protected]>
  • Loading branch information
sadmac7000 authored and Rebase bot committed Jun 14, 2023
1 parent 41572a9 commit 8ac1305
Show file tree
Hide file tree
Showing 23 changed files with 19 additions and 3 deletions.
2 changes: 1 addition & 1 deletion third_party/rust_crates/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -1528,7 +1528,7 @@ rust_library("async-fs-v1_6_0") {

rust_library("async-io-v1_12_0") {
crate_name = "async_io"
crate_root = "//third_party/rust_crates/vendor/async-io-1.12.0/src/lib.rs"
crate_root = "//third_party/rust_crates/forks/async-io/src/lib.rs"
output_name = "async_io-8cea39e881d5ae1e"
configs -= [ "//build/config/rust:2018_idioms" ]

Expand Down
2 changes: 0 additions & 2 deletions third_party/rust_crates/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions third_party/rust_crates/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,7 @@ windows = { path = "empty/windows" }
windows-sys = { path = "empty/windows-sys" }

### Forks: vendored crates whose code doesn't match the upstream version
async-io = { path = "forks/async-io" }
fatfs = { path = "forks/fatfs" }
fuse3 = { path = "forks/fuse3" }
hound = { path = "forks/hound" }
Expand Down
17 changes: 17 additions & 0 deletions third_party/rust_crates/forks/async-io/README.fuchsia
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
Name: async-io
License File: LICENSE-APACHE
Description:

async-io is used only on the host side to provide async usage of *nix IO primitives.

This is mainline, but will soon incorporate the patch from
https://github.com/smol-rs/async-io/pull/79/commits/71cd97d34ed8c652074b61ed4093b475e2fb4fdd
.

This will be async-io mainline (~1.12.0) with a patch.

There is nothing else special about this release the fork is cut from mainline.

This fork can be removed if the pull request is rolled into mainline and a
release is cut, but upstream is in a semi-abandoned state so this may not happen
soon.

0 comments on commit 8ac1305

Please sign in to comment.