Skip to content

Commit 404e1f6

Browse files
authored
feat: Update to new rust edition, switch from libipld to ipld-core (#460)
* `cargo update` * Small fixes * `cargo fix --edition` * Update edition && `cargo +nightly fmt` && `cargo clippy --fix` * Update everything to `ipld-core` in favor of `libipld` * Update rust version in CI checks * Fix some doctests and update wnfs-wasm * Fix some clippy warnings * Try to fix the wasm tests * Update yarn lockfile * update node version
1 parent 85f3e6c commit 404e1f6

Some content is hidden

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

89 files changed

+2319
-2391
lines changed

.cargo/config.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
[target.'cfg(target_arch = "wasm32")']
2+
runner = "wasm-bindgen-test-runner"
23
rustflags = [
34
"-C", "panic=abort",
45
# "-C", "lto=yes", // https://users.rust-lang.org/t/error-lto-can-only-be-run-for-executables-cdylibs-and-static-library-outputs/73369
@@ -7,4 +8,5 @@ rustflags = [
78
"-C", "opt-level=z",
89
"-C", "codegen-units=1",
910
"-C", "debug-assertions=no",
11+
"--cfg", 'getrandom_backend="wasm_js"', # for getrandom to work in wasm_js
1012
]

.github/workflows/checks.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
fail-fast: false
1515
matrix:
1616
rust-toolchain:
17-
- 1.75
17+
- 1.85
1818
- nightly
1919
steps:
2020
- name: Checkout Repository
@@ -74,7 +74,7 @@ jobs:
7474
fail-fast: false
7575
matrix:
7676
rust-toolchain:
77-
- 1.75
77+
- 1.85
7878
- nightly
7979
steps:
8080
- name: Checkout Repository
@@ -91,7 +91,7 @@ jobs:
9191
fail-fast: false
9292
matrix:
9393
rust-toolchain:
94-
- 1.75
94+
- 1.85
9595
- nightly
9696

9797
runs-on: macos-latest
@@ -107,7 +107,7 @@ jobs:
107107
- name: Cache Project (JavaScript)
108108
uses: actions/setup-node@v4
109109
with:
110-
node-version: '16.x'
110+
node-version: '22.x'
111111

112112
- name: Cache Project (Rust)
113113
uses: Swatinem/rust-cache@v2

.rustfmt.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
edition = "2021"
1+
edition = "2024"
22
imports_granularity = "Crate"
33
group_imports = "One"

0 commit comments

Comments
 (0)