mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-14 00:00:12 +02:00
A refactor of the scheduler internals focusing on simplifying and reducing unsafety. There are no fundamental logic changes. * The state transitions of the core task component are refined and reduced. * `basic_scheduler` has most unsafety removed. * `local_set` has most unsafety removed. * `threaded_scheduler` limits most unsafety to its queue implementation.
41 lines
1.4 KiB
YAML
41 lines
1.4 KiB
YAML
steps:
|
|
# Linux and macOS.
|
|
- script: |
|
|
set -e
|
|
|
|
if [ "$RUSTUP_TOOLCHAIN" == "nightly" ]; then
|
|
echo "++ getting latest miri version"
|
|
export RUSTUP_TOOLCHAIN="nightly-$(curl -s https://rust-lang.github.io/rustup-components-history/x86_64-unknown-linux-gnu/miri)"
|
|
echo "$RUSTUP_TOOLCHAIN"
|
|
fi
|
|
|
|
curl https://sh.rustup.rs -sSf | sh -s -- -y --profile minimal --default-toolchain none
|
|
export PATH=$PATH:$HOME/.cargo/bin
|
|
rustup toolchain install $RUSTUP_TOOLCHAIN
|
|
rustup default $RUSTUP_TOOLCHAIN
|
|
echo "##vso[task.setvariable variable=PATH;]$PATH:$HOME/.cargo/bin"
|
|
env:
|
|
RUSTUP_TOOLCHAIN: ${{parameters.rust_version}}
|
|
displayName: "Install rust (*nix)"
|
|
condition: not(eq(variables['Agent.OS'], 'Windows_NT'))
|
|
|
|
# Windows.
|
|
- script: |
|
|
curl -sSf -o rustup-init.exe https://win.rustup.rs
|
|
rustup-init.exe -y --profile minimal --default-toolchain none
|
|
set PATH=%PATH%;%USERPROFILE%\.cargo\bin
|
|
rustup toolchain install %RUSTUP_TOOLCHAIN%
|
|
rustup default %RUSTUP_TOOLCHAIN%
|
|
echo "##vso[task.setvariable variable=PATH;]%PATH%;%USERPROFILE%\.cargo\bin"
|
|
env:
|
|
RUSTUP_TOOLCHAIN: ${{parameters.rust_version}}
|
|
displayName: "Install rust (windows)"
|
|
condition: eq(variables['Agent.OS'], 'Windows_NT')
|
|
|
|
# All platforms.
|
|
- script: |
|
|
rustup toolchain list
|
|
rustc -Vv
|
|
cargo -V
|
|
displayName: Query rust and cargo versions
|