From 172adbbcc36e561a56c5820209445f86f0856bfc Mon Sep 17 00:00:00 2001 From: Cameron Carstens Date: Fri, 7 Jun 2024 14:03:54 +0800 Subject: [PATCH] Prepare for v0.22.0 release (#252) ## Type of change - Improvement (refactoring, restructuring repository, cleaning tech debt, ...) ## Changes The following changes have been made: - Adds `Cargo.toml` for versioning - Updates instances that specify sway-libs version to `v0.22.0` - Updates fuel-merkle to latest ## Notes - Needed for v0.22.0 release ## Checklist - [x] I have linked to any relevant issues. - [x] I have commented my code, particularly in hard-to-understand areas. - [x] I have updated the documentation where relevant (API docs, the reference, and the Sway book). - [ ] If my change requires substantial documentation changes, I have [requested support from the DevRel team](https://github.com/FuelLabs/devrel-requests/issues/new/choose) - [x] I have added tests that prove my fix is effective or that my feature works. - [x] I have added (or requested a maintainer to add) the necessary `Breaking*` or `New Feature` labels where relevant. - [x] I have done my best to ensure that my PR adheres to [the Fuel Labs Code Review Standards](https://github.com/FuelLabs/rfcs/blob/master/text/code-standards/external-contributors.md). - [x] I have requested a review from the relevant team or maintainers. --- Cargo.toml | 4 ++++ README.md | 2 +- docs/book/src/getting_started/index.md | 4 ++-- docs/book/src/merkle/index.md | 2 +- examples/Cargo.toml | 2 +- 5 files changed, 9 insertions(+), 5 deletions(-) create mode 100644 Cargo.toml diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 00000000..00999e11 --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,4 @@ +[package] +name = "sway-libs" +version = "0.22.0" +edition = "2021" diff --git a/README.md b/README.md index 67db9ad4..ca331230 100644 --- a/README.md +++ b/README.md @@ -69,7 +69,7 @@ For implementation details on the libraries please see the [Sway Libs Docs](http To import a library, the following dependency should be added to the project's `Forc.toml` file under `[dependencies]`. ```rust -sway_libs = { git = "https://github.com/FuelLabs/sway-libs", tag = "v0.1.0" } +sway_libs = { git = "https://github.com/FuelLabs/sway-libs", tag = "v0.22.0" } ``` > **NOTE:** diff --git a/docs/book/src/getting_started/index.md b/docs/book/src/getting_started/index.md index 42c383db..32d64253 100644 --- a/docs/book/src/getting_started/index.md +++ b/docs/book/src/getting_started/index.md @@ -5,7 +5,7 @@ To import any library, the following dependency should be added to the project's `Forc.toml` file under `[dependencies]`. ```sway -sway_libs = { git = "https://github.com/FuelLabs/sway-libs", tag = "v0.1.0" } +sway_libs = { git = "https://github.com/FuelLabs/sway-libs", tag = "v0.22.0" } ``` For reference, here is a complete `Forc.toml` file: @@ -18,7 +18,7 @@ license = "Apache-2.0" name = "MyProject" [dependencies] -sway_libs = { git = "https://github.com/FuelLabs/sway-libs", tag = "v0.1.0" } +sway_libs = { git = "https://github.com/FuelLabs/sway-libs", tag = "v0.22.0" } ``` > **NOTE:** Be sure to set the tag to the latest release. diff --git a/docs/book/src/merkle/index.md b/docs/book/src/merkle/index.md index de3883aa..c467dd54 100644 --- a/docs/book/src/merkle/index.md +++ b/docs/book/src/merkle/index.md @@ -68,7 +68,7 @@ To generate a Merkle Tree and corresponding proof for your Sway Smart Contract, The import the Fuel-Merkle crate, the following should be added to the project's `Cargo.toml` file under `[dependencies]`: ```sway -fuel-merkle = { version = "0.33.0" } +fuel-merkle = { version = "0.50.0" } ``` > **NOTE** Make sure to use the latest version of the [fuel-merkle](https://crates.io/crates/fuel-merkle) crate. diff --git a/examples/Cargo.toml b/examples/Cargo.toml index 783c396f..be271caf 100644 --- a/examples/Cargo.toml +++ b/examples/Cargo.toml @@ -6,7 +6,7 @@ edition = "2021" license = "Apache-2.0" [dependencies] -fuel-merkle = { version = "0.49.0" } +fuel-merkle = { version = "0.50.0" } sha2 = { version = "0.10" } fuels = { version = "0.62.0", features = ["fuel-core-lib"] } tokio = { version = "1.12", features = ["rt", "macros"] }