Skip to content

Commit 63f0326

Browse files
authored
Merge pull request #621 from CosmWasm/co/use-cw-main
Use cosmwasm `main` branch
2 parents 98ce9d0 + 921613c commit 63f0326

File tree

4 files changed

+1422
-513
lines changed

4 files changed

+1422
-513
lines changed

.circleci/config.yml

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
# All checks on the codebase that can run in parallel to build_shared_library
88
libwasmvm_sanity:
99
docker:
10-
- image: cimg/rust:1.74.0
10+
- image: cimg/rust:1.81.0
1111
steps:
1212
- checkout
1313
- run:
@@ -18,8 +18,8 @@ jobs:
1818
command: rustup component add rustfmt
1919
- restore_cache:
2020
keys:
21-
- cargocache-v3-libwasmvm_sanity-rust:1.74.0-{{ checksum "libwasmvm/Cargo.lock" }}
22-
- cargocache-v3-libwasmvm_sanity-rust:1.74.0-
21+
- cargocache-v3-libwasmvm_sanity-rust:1.81.0-{{ checksum "libwasmvm/Cargo.lock" }}
22+
- cargocache-v3-libwasmvm_sanity-rust:1.81.0-
2323
- run:
2424
name: Ensure libwasmvm/bindings.h is up-to-date
2525
working_directory: libwasmvm
@@ -62,7 +62,7 @@ jobs:
6262
- libwasmvm/target/release/.fingerprint
6363
- libwasmvm/target/release/build
6464
- libwasmvm/target/release/deps
65-
key: cargocache-v3-libwasmvm_sanity-rust:1.74.0-{{ checksum "libwasmvm/Cargo.lock" }}
65+
key: cargocache-v3-libwasmvm_sanity-rust:1.81.0-{{ checksum "libwasmvm/Cargo.lock" }}
6666

6767
libwasmvm_clippy:
6868
parameters:
@@ -113,15 +113,15 @@ jobs:
113113
command: |
114114
set -o errexit
115115
curl -sS --output rustup-init.exe https://static.rust-lang.org/rustup/dist/x86_64-pc-windows-msvc/rustup-init.exe
116-
./rustup-init.exe --no-modify-path --profile minimal --default-toolchain 1.74.0 -y
116+
./rustup-init.exe --no-modify-path --profile minimal --default-toolchain 1.81.0 -y
117117
echo 'export PATH="$PATH;$USERPROFILE/.cargo/bin"' >> "$BASH_ENV"
118118
- run:
119119
name: Show Rust version information
120120
command: rustc --version; cargo --version; rustup --version
121121
- restore_cache:
122122
keys:
123-
- cachev4-libwasmvm_sanity_windows-rust:1.74.0-{{ checksum "libwasmvm/Cargo.lock" }}
124-
- cachev4-libwasmvm_sanity_windows-rust:1.74.0-
123+
- cachev4-libwasmvm_sanity_windows-rust:1.81.0-{{ checksum "libwasmvm/Cargo.lock" }}
124+
- cachev4-libwasmvm_sanity_windows-rust:1.81.0-
125125
- run:
126126
name: Run unit tests
127127
working_directory: libwasmvm
@@ -133,7 +133,7 @@ jobs:
133133
- libwasmvm/target/debug/.fingerprint
134134
- libwasmvm/target/debug/build
135135
- libwasmvm/target/debug/deps
136-
key: cachev4-libwasmvm_sanity_windows-rust:1.74.0-{{ checksum "libwasmvm/Cargo.lock" }}
136+
key: cachev4-libwasmvm_sanity_windows-rust:1.81.0-{{ checksum "libwasmvm/Cargo.lock" }}
137137

138138
libwasmvm_audit:
139139
docker:
@@ -267,16 +267,17 @@ jobs:
267267

268268
build_shared_library:
269269
docker:
270-
- image: cimg/rust:1.74.0
270+
# libwasmvm versions built with 1.81 are broken, so we use 1.82 here
271+
- image: cimg/rust:1.82.0
271272
steps:
272273
- checkout
273274
- run:
274275
name: Show version information
275276
command: rustc --version; cargo --version; rustup --version
276277
- restore_cache:
277278
keys:
278-
- cargocache-v3-build_shared_library-rust:1.74.0-{{ checksum "libwasmvm/Cargo.lock" }}
279-
- cargocache-v3-build_shared_library-rust:1.74.0-
279+
- cargocache-v3-build_shared_library-rust:1.82.0-{{ checksum "libwasmvm/Cargo.lock" }}
280+
- cargocache-v3-build_shared_library-rust:1.82.0-
280281
- run:
281282
name: Create release build of libwasmvm
282283
command: make build-libwasmvm
@@ -293,7 +294,7 @@ jobs:
293294
- libwasmvm/target/release/.fingerprint
294295
- libwasmvm/target/release/build
295296
- libwasmvm/target/release/deps
296-
key: cargocache-v3-build_shared_library-rust:1.74.0-{{ checksum "libwasmvm/Cargo.lock" }}
297+
key: cargocache-v3-build_shared_library-rust:1.81.0-{{ checksum "libwasmvm/Cargo.lock" }}
297298

298299
# Test the Go project and run benchmarks
299300
wasmvm_test:
@@ -455,7 +456,7 @@ workflows:
455456
matrix:
456457
parameters:
457458
# Run with MSRV and some modern stable Rust
458-
rust-version: ["1.74.0", "1.80.0"]
459+
rust-version: ["1.81.0", "1.82.0"]
459460
- libwasmvm_audit
460461
- format-go
461462
- wasmvm_no_cgo

docs/COMPILER_VERSIONS.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ The Go version here has the following goals:
1515
versions reasonably wide to avoid unnecessary friction for users. I.e. just
1616
because Cosmos SDK now uses Go 1.19 does not mean we make 1.19 the minimal
1717
supported version here. However, the project should work with the latest
18-
stable Go version. When the majority of our users are between 1.18 and 1.19, we
19-
can slowly remove 1.17 support by bumping the min version to 1.18.
18+
stable Go version. When the majority of our users are between 1.18 and 1.19,
19+
we can slowly remove 1.17 support by bumping the min version to 1.18.
2020
- Be stable enough to test Go code. We always pin the patch version to ensure CI
2121
runs are reproducible. Those versions will contain security issues from time
2222
to time, but that's fine for how they are used here.
@@ -64,5 +64,5 @@ We currently use the following version:
6464
| Type | Rust version | Note |
6565
| ------------------------ | ------------ | --------------------------------- |
6666
| Production Rust compiler | 1.82.0 | Builders version 0102 |
67-
| Min Rust compiler | 1.74.0 | Supports builder versions >= 0019 |
68-
| Tooling Rust compiler | 1.75.0 | |
67+
| Min Rust compiler | 1.82.0 | Supports builder versions >= 0102 |
68+
| Tooling Rust compiler | 1.81.0 | |

0 commit comments

Comments
 (0)