Skip to content

Commit 3637927

Browse files
committed
Add edition 2018 compatibility check
1 parent 32db0f4 commit 3637927

File tree

3 files changed

+47
-0
lines changed

3 files changed

+47
-0
lines changed

.github/workflows/main.yml

+20
Original file line numberDiff line numberDiff line change
@@ -558,6 +558,26 @@ jobs:
558558
- run: rustup update --no-self-update 1.57 && rustup default 1.57 && rustup target add ${{ matrix.target }}
559559
- run: cargo build --target ${{ matrix.target }} ${{ matrix.features }}
560560

561+
2018:
562+
name: Check edition 2018 compatibility
563+
runs-on: ubuntu-latest
564+
strategy:
565+
fail-fast: false
566+
matrix:
567+
target:
568+
- x86_64-unknown-linux-gnu
569+
- wasm32-unknown-unknown
570+
features:
571+
- --no-default-features
572+
- ""
573+
defaults:
574+
run:
575+
working-directory: crates/msrv/2018
576+
steps:
577+
- uses: actions/checkout@v4
578+
- run: rustup update --no-self-update 1.57 && rustup default 1.57 && rustup target add ${{ matrix.target }}
579+
- run: cargo build --target ${{ matrix.target }} ${{ matrix.features }}
580+
561581
msrv-cli:
562582
name: Check MSRV for CLI tools
563583
runs-on: ubuntu-latest

crates/msrv/2018/Cargo.toml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
[package]
2+
edition = "2018"
3+
name = "edition-2018-test"
4+
publish = false
5+
version = "0.0.0"
6+
7+
[features]
8+
default = ["std"]
9+
std = [
10+
"wasm-bindgen/std",
11+
"js-sys/std",
12+
"wasm-bindgen-futures/std",
13+
"web-sys/std",
14+
"wasm-bindgen-test/std",
15+
]
16+
17+
[dependencies]
18+
js-sys = { path = "../../js-sys", default-features = false }
19+
wasm-bindgen = { path = "../../../", default-features = false }
20+
wasm-bindgen-futures = { path = "../../futures", default-features = false }
21+
wasm-bindgen-test = { path = "../../test", default-features = false }
22+
web-sys = { path = "../../web-sys", default-features = false }
23+
24+
# Pinned sub-dependencies for MSRV
25+
bumpalo = "=3.12.0"
26+
log = "=0.4.18"
27+
scoped-tls = { version = "=1.0.0", optional = false }

crates/msrv/2018/src/lib.rs

Whitespace-only changes.

0 commit comments

Comments
 (0)