Skip to content

Commit e58ff18

Browse files
authored
Introduce MSRV policy (#4038)
1 parent 5b2922c commit e58ff18

File tree

49 files changed

+64
-40
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+64
-40
lines changed

.github/workflows/main.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -438,6 +438,28 @@ jobs:
438438
name: doc_api
439439
path: docs.tar.gz
440440

441+
msrv-lib:
442+
name: Check MSRV for libraries
443+
runs-on: ubuntu-latest
444+
defaults:
445+
run:
446+
working-directory: crates/msrv/lib
447+
steps:
448+
- uses: actions/checkout@v4
449+
- run: rustup update --no-self-update 1.57 && rustup default 1.57
450+
- run: cargo build
451+
452+
msrv-cli:
453+
name: Check MSRV for CLI tools
454+
runs-on: ubuntu-latest
455+
defaults:
456+
run:
457+
working-directory: crates/msrv/cli
458+
steps:
459+
- uses: actions/checkout@v4
460+
- run: rustup update --no-self-update 1.76 && rustup default 1.76
461+
- run: cargo build
462+
441463

442464
deploy:
443465
permissions:

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ yarn.lock
1111
.vscode
1212
webdriver.json
1313
benchmarks/pkg
14+
/crates/msrv/*/target

CHANGELOG.md

Lines changed: 3 additions & 0 deletions

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ members = [
101101
"examples/synchronous-instantiation",
102102
"tests/no-std",
103103
]
104+
exclude = ["crates/msrv"]
104105
resolver = "2"
105106

106107
[patch.crates-io]

README.md

Lines changed: 6 additions & 0 deletions

benchmarks/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ name = "wasm-bindgen-benchmark"
33
version = "0.1.0"
44
authors = ["The wasm-bindgen Developers"]
55
edition = "2018"
6-
rust-version = "1.57"
76

87
[dependencies]
98
wasm-bindgen = { path = '../' }

crates/cli-support/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ description = """
1010
Shared support for the wasm-bindgen-cli package, an internal dependency
1111
"""
1212
edition = '2018'
13-
rust-version = "1.57"
13+
rust-version = "1.76"
1414

1515
[dependencies]
1616
anyhow = "1.0"

crates/cli-support/src/js/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2637,7 +2637,7 @@ impl<'a> Context<'a> {
26372637
assert!(!catch);
26382638
assert!(!log_error);
26392639

2640-
let ts_sig = export.generate_typescript.then(|| ts_sig.as_str());
2640+
let ts_sig = export.generate_typescript.then_some(ts_sig.as_str());
26412641

26422642
let js_docs = format_doc_comments(&export.comments, Some(js_doc));
26432643
let ts_docs = format_doc_comments(&export.comments, None);

crates/cli/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ information see https://github.com/rustwasm/wasm-bindgen.
1313
"""
1414
edition = '2018'
1515
default-run = 'wasm-bindgen'
16-
rust-version = "1.57"
16+
rust-version = "1.76"
1717

1818
[package.metadata.binstall]
1919
pkg-url = "https://github.com/rustwasm/wasm-bindgen/releases/download/{ version }/wasm-bindgen-{ version }-{ target }{ archive-suffix }"

crates/example-tests/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ name = "example-tests"
33
version = "0.1.0"
44
authors = ["The wasm-bindgen Developers"]
55
edition = "2018"
6-
rust-version = "1.57"
76

87
[dependencies]
98
anyhow = "1.0.75"

0 commit comments

Comments
 (0)