From de195beb8eb1fc617eacb5356061588a0da59f9e Mon Sep 17 00:00:00 2001 From: Ryan Northey Date: Mon, 21 Nov 2022 20:19:57 +0000 Subject: [PATCH 1/2] docs: Add instructions for updating `wasmtime` Signed-off-by: Ryan Northey --- bazel/cargo/wasmtime/README.md | 36 ++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 bazel/cargo/wasmtime/README.md diff --git a/bazel/cargo/wasmtime/README.md b/bazel/cargo/wasmtime/README.md new file mode 100644 index 00000000..243bf518 --- /dev/null +++ b/bazel/cargo/wasmtime/README.md @@ -0,0 +1,36 @@ + +# Updating `wasmtime` + +Projects depending upon `proxy-wasm-cpp-host` and `wasmtime` should +ensure that the `wasmtime` dependency here is updated whenever updating +`proxy-wasm-cpp-host`. + +## Install `rust` + +Ensure you have the latest version of rust. + +```console +$ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh +$ rustup update +``` + +## Install `cargo-raze` + +```console +$ cargo install cargo-raze --version 0.14.1. +``` + +## Generate lockfile + +```console +$ cd bazel/cargo/wasmtime +$ cargo raze --generate-lockfile +$ cd ../.. +``` + +## Commit changes + +```console +$ git add bazel/cargo/wasmtime +$ git commit ... +``` From 471e14a90a8036d3b70bf0435b43c2d297aeb649 Mon Sep 17 00:00:00 2001 From: Ryan Northey Date: Fri, 16 Dec 2022 13:08:03 +0000 Subject: [PATCH 2/2] update-readme-duplicates Signed-off-by: Ryan Northey --- bazel/cargo/wasmtime/README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/bazel/cargo/wasmtime/README.md b/bazel/cargo/wasmtime/README.md index 243bf518..6fc8f4c8 100644 --- a/bazel/cargo/wasmtime/README.md +++ b/bazel/cargo/wasmtime/README.md @@ -28,6 +28,15 @@ $ cargo raze --generate-lockfile $ cd ../.. ``` +## Resolve duplicates in lockfile + +Currently due to an issue with raze (https://github.com/google/cargo-raze/issues/451) it +is likely that you will need to clear up any duplicates created in the lockfile. + +Resolving this issue can be tricky as updates can generate a lot of change, but essentially +you will need to check the overall diff for any problematic files and check to see where new +dependencies have been added. + ## Commit changes ```console