fix(ci): use available Rust toolchain and native Twoslash options

This commit is contained in:
JerrettDavis
2026-09-10 12:12:22 -05:00
parent e5c542f57f
commit 59854000c7
4 changed files with 17 additions and 7 deletions
+6 -2
View File
@@ -137,7 +137,9 @@ jobs:
- uses: actions/setup-python@v7
with:
python-version: ${{ env.PY_VERSION }}
- uses: dtolnay/rust-toolchain@1.100.0
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: 1.95.0 # Keep in sync with rust-toolchain.toml.
- uses: Swatinem/rust-cache@v2
with:
workspaces: ". -> target"
@@ -454,7 +456,9 @@ jobs:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-build-${{ hashFiles('pyproject.toml') }}
restore-keys: ${{ runner.os }}-pip-build-
- uses: dtolnay/rust-toolchain@1.100.0
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: 1.95.0 # Keep in sync with rust-toolchain.toml.
- uses: Swatinem/rust-cache@v2
with:
workspaces: ". -> target"
+6 -2
View File
@@ -32,7 +32,9 @@ jobs:
# `pip install -e .` invokes maturin (declared in pyproject.toml's
# build-system) which calls cargo to compile the Rust extension.
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@1.100.0
uses: dtolnay/rust-toolchain@stable
with:
toolchain: 1.95.0 # Keep in sync with rust-toolchain.toml.
- name: Cache cargo registry + build
uses: Swatinem/rust-cache@v2
@@ -100,7 +102,9 @@ jobs:
restore-keys: ${{ runner.os }}-pip-eval-
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@1.100.0
uses: dtolnay/rust-toolchain@stable
with:
toolchain: 1.95.0 # Keep in sync with rust-toolchain.toml.
- name: Cache cargo registry + build
uses: Swatinem/rust-cache@v2
+3 -1
View File
@@ -25,7 +25,9 @@ jobs:
python-version: "3.11"
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@1.100.0
uses: dtolnay/rust-toolchain@stable
with:
toolchain: 1.95.0 # Keep in sync with rust-toolchain.toml.
- name: Cache cargo registry + build
uses: Swatinem/rust-cache@v2
+2 -2
View File
@@ -28,8 +28,8 @@ export default defineConfig({
transformerTwoslash({
twoslashOptions: {
compilerOptions: {
target: 9, // ES2022
lib: ['lib.es2022.d.ts', 'lib.dom.d.ts', 'lib.dom.iterable.d.ts'],
target: 'es2022',
lib: ['es2022', 'dom', 'dom.iterable'],
},
// Documentation code snippets are illustrative — don't require full type validity
handbookOptions: {