Skip to content

Commit

Permalink
Merge pull request #143 from SergioBenitez/master
Browse files Browse the repository at this point in the history
Transform blocks into `async move` for more compatibility
  • Loading branch information
dtolnay authored Mar 5, 2021
2 parents c490ccd + 628ed73 commit 0fd4e33
Show file tree
Hide file tree
Showing 18 changed files with 482 additions and 568 deletions.
3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,8 @@ tracing-attributes = "0.1.8"
tracing-futures = "0.2"
trybuild = { version = "1.0.19", features = ["diff"] }

[build-dependencies]
version_check = "0.9"

[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
5 changes: 5 additions & 0 deletions build.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
fn main() {
if let Some(true) = version_check::is_max_version("1.46") {
println!("cargo:rustc-cfg=self_span_hack");
}
}
Loading

0 comments on commit 0fd4e33

Please sign in to comment.