From f60de36bae12221808f92e1d8665da03f2500589 Mon Sep 17 00:00:00 2001 From: QuantumEntangledAndy Date: Wed, 3 May 2023 15:27:57 +0700 Subject: [PATCH] Source /.cargo/env --- .cargo/config | 5 ++++- .github/workflows/build.yml | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.cargo/config b/.cargo/config index 2282ebe..e83f9f7 100644 --- a/.cargo/config +++ b/.cargo/config @@ -1,5 +1,5 @@ [target.x86_64-pc-windows-msvc] -rustflags = ["-C", "target-feature=+crt-static"] +rustflags = ["-C", "target-feature=+crt-static", "--cfg", "tokio_unstable"] # TODO not good as a default [target.armv7-unknown-linux-gnueabihf] @@ -10,3 +10,6 @@ linker = "aarch64-linux-gnu-gcc" [target.i686-unknown-linux-gnu] linker = "i686-linux-gnu-gcc" + +[build] +rustflags = ["--cfg", "tokio_unstable"] \ No newline at end of file diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 25e3a9c..61f0ef9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -136,6 +136,7 @@ jobs: - name: Install rustup run: | curl https://sh.rustup.rs -sSf | sh -s -- --no-modify-path --quiet -y + source "$HOME/.cargo/env" rustup toolchain install nightly echo "${HOME}/.cargo/bin" >> "${GITHUB_PATH}" - name: Install ${{ matrix.arch }} Rust toolchain