mirror of
https://github.com/tokio-rs/tokio.git
synced 2025-09-28 12:10:37 +00:00

Adds a `TypedExecutor` trait that describes how to spawn futures of a specific type. This is useful for implementing functions that are generic over an executor and wish to support both `Send` and `!Send` cases.
17 lines
412 B
YAML
17 lines
412 B
YAML
steps:
|
|
- script: |
|
|
set -e
|
|
|
|
# Remove any existing patch statements
|
|
mv Cargo.toml Cargo.toml.bck
|
|
sed -n '/\[patch.crates-io\]/q;p' Cargo.toml.bck > Cargo.toml
|
|
|
|
# Patch all crates
|
|
cat ci/patch.toml >> Cargo.toml
|
|
|
|
# Print `Cargo.toml` for debugging
|
|
echo "~~~~ Cargo.toml ~~~~"
|
|
cat Cargo.toml
|
|
echo "~~~~~~~~~~~~~~~~~~~~"
|
|
displayName: Patch Cargo.toml
|