From 72460a577a76c73ec9431dab22354b2037899c55 Mon Sep 17 00:00:00 2001 From: Shamil <66209982+shamilsan@users.noreply.github.com> Date: Wed, 30 Nov 2022 21:17:50 +0300 Subject: [PATCH] Update dependencies (#27) --- .github/workflows/build.yml | 13 +-- .github/workflows/release.yml | 7 +- CHANGELOG.md | 7 +- Cargo.lock | 164 +++++++++++++++++++++++----------- Cargo.toml | 9 +- Makefile | 2 +- io/Cargo.toml | 4 +- 7 files changed, 139 insertions(+), 67 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1a35bd0..1625a18 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -19,7 +19,10 @@ jobs: uses: actions/checkout@v3 - name: Artifact cache - uses: Swatinem/rust-cache@v1 + uses: Swatinem/rust-cache@v2 + + - name: Remove binaries from cache + run: rm -vf target/wasm32-unknown-unknown/release/*.wasm - name: Install nightly toolchain uses: actions-rs/toolchain@v1 @@ -39,12 +42,12 @@ jobs: - name: Run linter run: make linter - - name: Build - run: make build - - name: Run tests run: make test + - name: Build + run: make build + - name: Upload artifacts if: github.event_name == 'push' uses: actions/upload-artifact@v3 @@ -60,7 +63,7 @@ jobs: uses: actions/download-artifact@v3 - name: Delete previous release - uses: dev-drprasad/delete-tag-and-release@v0.1.3 + uses: dev-drprasad/delete-tag-and-release@v0.2.0 with: delete_release: true tag_name: build diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c971a90..f47de0c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -13,7 +13,7 @@ jobs: runs-on: ubuntu-latest steps: - id: version - run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//} + run: echo "VERSION=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_OUTPUT - name: Show version run: echo ${{ steps.version.outputs.VERSION }} @@ -30,7 +30,10 @@ jobs: uses: actions/checkout@v3 - name: Cache - uses: Swatinem/rust-cache@v1 + uses: Swatinem/rust-cache@v2 + + - name: Remove binaries from cache + run: rm -vf target/wasm32-unknown-unknown/release/*.wasm - name: Install nightly toolchain uses: actions-rs/toolchain@v1 diff --git a/CHANGELOG.md b/CHANGELOG.md index 198d874..cb72b47 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [0.1.3] - 2022-11-22 +### Changed +- Updated `gstd`, `gtest`, `gear-wasm-builder` to the `stable` branch. + ## [0.1.2] - 2022-10-26 ### Changed - Updated `gstd`, `gtest`, `gear-wasm-builder` to the current commit hash (`#d4552434`). @@ -18,7 +22,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added - Initial release. -[Unreleased]: https://github.com/gear-dapps/fungible-token/compare/0.1.2...HEAD +[Unreleased]: https://github.com/gear-dapps/fungible-token/compare/0.1.3...HEAD +[0.1.3]: https://github.com/gear-dapps/fungible-token/compare/0.1.2...0.1.3 [0.1.2]: https://github.com/gear-dapps/fungible-token/compare/0.1.1...0.1.2 [0.1.1]: https://github.com/gear-dapps/fungible-token/compare/0.1.0...0.1.1 [0.1.0]: https://github.com/gear-dapps/fungible-token/compare/a0eac6e...0.1.0 diff --git a/Cargo.lock b/Cargo.lock index b9a6cdf..32fb93d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4,9 +4,9 @@ version = 3 [[package]] name = "aho-corasick" -version = "0.7.19" +version = "0.7.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b4f55bd91a0978cbfd91c457a164bab8b4001c833b7f323132c0a4e1922dd44e" +checksum = "cc936419f96fa211c1b9166887b38e5e40b19958e5b895be7c1f93adec7071ac" dependencies = [ "memchr", ] @@ -85,9 +85,9 @@ checksum = "771fe0050b883fcc3ea2359b1a96bcfbc090b7116eae7c3c512c7a083fdf23d3" [[package]] name = "byte-slice-cast" -version = "1.2.1" +version = "1.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "87c5fdd0166095e1d463fc6cc01aa8ce547ad77a4e84d42eb6762b084e28067e" +checksum = "c3ac9f8b63eca6fd385229b3675f6cc0dc5c8a5c8a54a59d4f52ffd670d87b0c" [[package]] name = "byteorder" @@ -115,9 +115,9 @@ dependencies = [ [[package]] name = "cargo_metadata" -version = "0.15.1" +version = "0.15.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "406c859255d568f4f742b3146d51851f3bfd49f734a2c289d9107c4395ee0062" +checksum = "982a0cf6a99c350d7246035613882e376d58cebe571785abc5da4f648d53ac0a" dependencies = [ "camino", "cargo-platform", @@ -201,9 +201,9 @@ checksum = "90e5c1c8368803113bf0c9584fc495a58b86dc8a29edbf8fe877d21d9507e797" [[package]] name = "env_logger" -version = "0.9.1" +version = "0.9.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c90bf5f19754d10198ccb95b70664fc925bd1fc090a0fd9a6ebc54acc8cd6272" +checksum = "a12e6657c4c97ebab115a42dcee77225f7f482cdd841cf7088c657a42e9e00e7" dependencies = [ "atty", "humantime", @@ -223,14 +223,14 @@ dependencies = [ [[package]] name = "ft-io" -version = "0.1.2" +version = "0.1.3" dependencies = [ "gstd", ] [[package]] name = "fungible-token" -version = "0.1.2" +version = "0.1.3" dependencies = [ "ft-io", "gear-wasm-builder", @@ -308,7 +308,7 @@ dependencies = [ [[package]] name = "galloc" version = "0.1.0" -source = "git+https://github.com/gear-tech/gear.git?rev=d4552434#d4552434b470dad1ade7db3a929eb1aa6204c9ca" +source = "git+https://github.com/gear-tech/gear.git?branch=stable#a57e3210cda835e86ad114e6b0cb9c259a45242c" dependencies = [ "dlmalloc", ] @@ -316,9 +316,10 @@ dependencies = [ [[package]] name = "gcore" version = "0.1.0" -source = "git+https://github.com/gear-tech/gear.git?rev=d4552434#d4552434b470dad1ade7db3a929eb1aa6204c9ca" +source = "git+https://github.com/gear-tech/gear.git?branch=stable#a57e3210cda835e86ad114e6b0cb9c259a45242c" dependencies = [ "gear-core-errors", + "gsys", "parity-scale-codec", "static_assertions", ] @@ -326,7 +327,7 @@ dependencies = [ [[package]] name = "gear-backend-common" version = "0.1.0" -source = "git+https://github.com/gear-tech/gear.git?rev=d4552434#d4552434b470dad1ade7db3a929eb1aa6204c9ca" +source = "git+https://github.com/gear-tech/gear.git?branch=stable#a57e3210cda835e86ad114e6b0cb9c259a45242c" dependencies = [ "derive_more", "gear-core", @@ -339,13 +340,15 @@ dependencies = [ [[package]] name = "gear-backend-wasmi" version = "0.1.0" -source = "git+https://github.com/gear-tech/gear.git?rev=d4552434#d4552434b470dad1ade7db3a929eb1aa6204c9ca" +source = "git+https://github.com/gear-tech/gear.git?branch=stable#a57e3210cda835e86ad114e6b0cb9c259a45242c" dependencies = [ + "blake2-rfc", "derive_more", "gear-backend-common", "gear-core", "gear-core-errors", "gear-wasm-instrument", + "gsys", "log", "parity-scale-codec", "wasmi", @@ -354,7 +357,7 @@ dependencies = [ [[package]] name = "gear-core" version = "0.1.0" -source = "git+https://github.com/gear-tech/gear.git?rev=d4552434#d4552434b470dad1ade7db3a929eb1aa6204c9ca" +source = "git+https://github.com/gear-tech/gear.git?branch=stable#a57e3210cda835e86ad114e6b0cb9c259a45242c" dependencies = [ "blake2-rfc", "derive_more", @@ -371,7 +374,7 @@ dependencies = [ [[package]] name = "gear-core-errors" version = "0.1.0" -source = "git+https://github.com/gear-tech/gear.git?rev=d4552434#d4552434b470dad1ade7db3a929eb1aa6204c9ca" +source = "git+https://github.com/gear-tech/gear.git?branch=stable#a57e3210cda835e86ad114e6b0cb9c259a45242c" dependencies = [ "derive_more", "parity-scale-codec", @@ -381,10 +384,8 @@ dependencies = [ [[package]] name = "gear-core-processor" version = "0.1.0" -source = "git+https://github.com/gear-tech/gear.git?rev=d4552434#d4552434b470dad1ade7db3a929eb1aa6204c9ca" +source = "git+https://github.com/gear-tech/gear.git?branch=stable#a57e3210cda835e86ad114e6b0cb9c259a45242c" dependencies = [ - "anyhow", - "blake2-rfc", "derive_more", "gear-backend-common", "gear-core", @@ -397,7 +398,7 @@ dependencies = [ [[package]] name = "gear-wasm-builder" version = "0.1.2" -source = "git+https://github.com/gear-tech/gear.git?rev=d4552434#d4552434b470dad1ade7db3a929eb1aa6204c9ca" +source = "git+https://github.com/gear-tech/gear.git?branch=stable#a57e3210cda835e86ad114e6b0cb9c259a45242c" dependencies = [ "anyhow", "cargo_metadata", @@ -413,15 +414,26 @@ dependencies = [ [[package]] name = "gear-wasm-instrument" version = "0.1.0" -source = "git+https://github.com/gear-tech/gear.git?rev=d4552434#d4552434b470dad1ade7db3a929eb1aa6204c9ca" +source = "git+https://github.com/gear-tech/gear.git?branch=stable#a57e3210cda835e86ad114e6b0cb9c259a45242c" dependencies = [ "wasm-instrument", ] +[[package]] +name = "getrandom" +version = "0.2.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c05aeb6a22b8f62540c194aac980f2115af067bfe15a0734d7277a768d396b31" +dependencies = [ + "cfg-if", + "libc", + "wasi", +] + [[package]] name = "gstd" version = "0.1.0" -source = "git+https://github.com/gear-tech/gear.git?rev=d4552434#d4552434b470dad1ade7db3a929eb1aa6204c9ca" +source = "git+https://github.com/gear-tech/gear.git?branch=stable#a57e3210cda835e86ad114e6b0cb9c259a45242c" dependencies = [ "bs58", "futures", @@ -439,17 +451,22 @@ dependencies = [ [[package]] name = "gstd-codegen" version = "0.1.0" -source = "git+https://github.com/gear-tech/gear.git?rev=d4552434#d4552434b470dad1ade7db3a929eb1aa6204c9ca" +source = "git+https://github.com/gear-tech/gear.git?branch=stable#a57e3210cda835e86ad114e6b0cb9c259a45242c" dependencies = [ "proc-macro2", "quote", "syn", ] +[[package]] +name = "gsys" +version = "0.1.0" +source = "git+https://github.com/gear-tech/gear.git?branch=stable#a57e3210cda835e86ad114e6b0cb9c259a45242c" + [[package]] name = "gtest" version = "0.1.0" -source = "git+https://github.com/gear-tech/gear.git?rev=d4552434#d4552434b470dad1ade7db3a929eb1aa6204c9ca" +source = "git+https://github.com/gear-tech/gear.git?branch=stable#a57e3210cda835e86ad114e6b0cb9c259a45242c" dependencies = [ "anyhow", "colored", @@ -466,6 +483,7 @@ dependencies = [ "log", "parity-scale-codec", "path-clean", + "rand", ] [[package]] @@ -543,9 +561,9 @@ dependencies = [ [[package]] name = "libm" -version = "0.2.5" +version = "0.2.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "292a948cd991e376cf75541fe5b97a1081d713c618b4f1b9500f8844e49eb565" +checksum = "348108ab3fba42ec82ff6e9564fc4ca0247bdccdc68dd8af9764bbc79c3c8ffb" [[package]] name = "log" @@ -627,9 +645,9 @@ dependencies = [ [[package]] name = "once_cell" -version = "1.15.0" +version = "1.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e82dad04139b71a90c080c8463fe0dc7902db5192d939bd0950f074d014339e1" +checksum = "86f0b0d4bf799edbc74508c1e8bf170ff5f41238e5f8225603ca7caaae2b7860" [[package]] name = "page_size" @@ -643,9 +661,9 @@ dependencies = [ [[package]] name = "parity-scale-codec" -version = "3.1.5" +version = "3.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9182e4a71cae089267ab03e67c99368db7cd877baf50f931e5d6d4b71e195ac0" +checksum = "366e44391a8af4cfd6002ef6ba072bae071a96aafca98d7d448a34c5dca38b6a" dependencies = [ "arrayvec 0.7.2", "bitvec", @@ -703,11 +721,17 @@ version = "0.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184" +[[package]] +name = "ppv-lite86" +version = "0.2.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5b40af805b3121feab8a3c29f04d8ad262fa8e0561883e7653e024ae4479e6de" + [[package]] name = "primitive-types" -version = "0.12.0" +version = "0.12.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5cfd65aea0c5fa0bfcc7c9e7ca828c921ef778f43d325325ec84bda371bfa75a" +checksum = "9f3486ccba82358b11a77516035647c34ba167dfa53312630de83b12bd4f3d66" dependencies = [ "fixed-hash", "impl-codec", @@ -761,11 +785,41 @@ version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "dc33ff2d4973d518d823d61aa239014831e521c75da58e3df4840d3f47749d09" +[[package]] +name = "rand" +version = "0.8.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404" +dependencies = [ + "libc", + "rand_chacha", + "rand_core", +] + +[[package]] +name = "rand_chacha" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88" +dependencies = [ + "ppv-lite86", + "rand_core", +] + +[[package]] +name = "rand_core" +version = "0.6.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c" +dependencies = [ + "getrandom", +] + [[package]] name = "regex" -version = "1.6.0" +version = "1.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4c4eb3267174b8c6c2f654116623910a0fef09c4753f8dd83db29c48a0df988b" +checksum = "e076559ef8e241f2ae3479e36f97bd5741c0330689e217ad51ce2c76808b868a" dependencies = [ "aho-corasick", "memchr", @@ -774,9 +828,9 @@ dependencies = [ [[package]] name = "regex-syntax" -version = "0.6.27" +version = "0.6.28" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a3f87b73ce11b1619a3c6332f45341e0047173771e8b8b73f87bfeefb7b56244" +checksum = "456c603be3e8d448b072f410900c09faf164fbce2d480456f50eea6e25f9c848" [[package]] name = "region" @@ -807,9 +861,9 @@ checksum = "4501abdff3ae82a1c1b477a17252eb69cee9e66eb915c1abaa4f44d873df9f09" [[package]] name = "scale-info" -version = "2.2.0" +version = "2.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "333af15b02563b8182cd863f925bd31ef8fa86a0e095d30c091956057d436153" +checksum = "88d8a765117b237ef233705cc2cc4c6a27fccd46eea6ef0c8c6dae5f3ef407f8" dependencies = [ "cfg-if", "derive_more", @@ -819,9 +873,9 @@ dependencies = [ [[package]] name = "scale-info-derive" -version = "2.2.0" +version = "2.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "53f56acbd0743d29ffa08f911ab5397def774ad01bab3786804cf6ee057fb5e1" +checksum = "cdcd47b380d8c4541044e341dcd9475f55ba37ddc50c908d945fc036a8642496" dependencies = [ "proc-macro-crate", "proc-macro2", @@ -840,18 +894,18 @@ dependencies = [ [[package]] name = "serde" -version = "1.0.147" +version = "1.0.148" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d193d69bae983fc11a79df82342761dfbf28a99fc8d203dca4c3c1b590948965" +checksum = "e53f64bb4ba0191d6d0676e1b141ca55047d83b74f5607e6d8eb88126c52c2dc" dependencies = [ "serde_derive", ] [[package]] name = "serde_derive" -version = "1.0.147" +version = "1.0.148" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4f1d362ca8fc9c3e3a7484440752472d68a6caa98f1ab81d99b5dfe517cec852" +checksum = "a55492425aa53521babf6137309e7d34c20bbfbbfcfe2c7f3a047fd1f6b92c0c" dependencies = [ "proc-macro2", "quote", @@ -860,9 +914,9 @@ dependencies = [ [[package]] name = "serde_json" -version = "1.0.87" +version = "1.0.89" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6ce777b7b150d76b9cf60d28b55f5847135a003f7d7350c6be7a773508ce7d45" +checksum = "020ff22c755c2ed3f8cf162dbb41a7268d934702f3ed3631656ea597e08fc3db" dependencies = [ "itoa", "ryu", @@ -889,9 +943,9 @@ checksum = "0873cb29201126440dcc78d0b1f5a13d917e78831778429a7920ca9c7f3dae1e" [[package]] name = "syn" -version = "1.0.103" +version = "1.0.104" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a864042229133ada95abf3b54fdc62ef5ccabe9515b64717bcb9a1919e59445d" +checksum = "4ae548ec36cf198c0ef7710d3c230987c2d6d7bd98ad6edc0274462724c585ce" dependencies = [ "proc-macro2", "quote", @@ -944,9 +998,9 @@ dependencies = [ [[package]] name = "uint" -version = "0.9.4" +version = "0.9.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a45526d29728d135c2900b0d30573fe3ee79fceb12ef534c7bb30e810a91b601" +checksum = "76f64bba2c53b04fcab63c01a7d7427eadc821e3bc48c34dc9ba29c501164b52" dependencies = [ "byteorder", "crunchy", @@ -960,6 +1014,12 @@ version = "1.0.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6ceab39d59e4c9499d4e5a8ee0e2735b891bb7308ac83dfb4e80cad195c9f6f3" +[[package]] +name = "wasi" +version = "0.11.0+wasi-snapshot-preview1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" + [[package]] name = "wasm-instrument" version = "0.2.1" @@ -1052,9 +1112,9 @@ checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" [[package]] name = "wyz" -version = "0.5.0" +version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "30b31594f29d27036c383b53b59ed3476874d518f0efb151b27a4c275141390e" +checksum = "05f360fc0b24296329c78fda852a1e9ae82de9cf7b27dae4b7f62f118f77b9ed" dependencies = [ "tap", ] diff --git a/Cargo.toml b/Cargo.toml index cec50ab..9b9c1c9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,16 +1,17 @@ [package] name = "fungible-token" -version = "0.1.2" +version = "0.1.3" edition = "2021" license = "MIT" authors = ["Gear Technologies"] [dependencies] -gstd = { git = "https://github.com/gear-tech/gear.git", features = ["debug"], rev = "d4552434" } +gstd = { git = "https://github.com/gear-tech/gear.git" , branch = "stable" } ft-io = { path = "io" } [dev-dependencies] -gtest = { git = "https://github.com/gear-tech/gear.git", rev = "d4552434" } +gstd = { git = "https://github.com/gear-tech/gear.git", features = ["debug"] , branch = "stable" } +gtest = { git = "https://github.com/gear-tech/gear.git", branch = "stable" } [build-dependencies] -gear-wasm-builder = { git = "https://github.com/gear-tech/gear.git", rev = "d4552434" } +gear-wasm-builder = { git = "https://github.com/gear-tech/gear.git", branch = "stable" } diff --git a/Makefile b/Makefile index 561fcc4..13026af 100644 --- a/Makefile +++ b/Makefile @@ -26,7 +26,7 @@ init: linter: @echo ──────────── Run linter ─────────────────────── - @cargo +nightly clippy --all-targets -- --no-deps -D warnings -A "clippy::missing_safety_doc" + @cargo +nightly clippy --all-targets -- --no-deps -D warnings pre-commit: fmt linter test diff --git a/io/Cargo.toml b/io/Cargo.toml index dc0e1f4..0968d3b 100644 --- a/io/Cargo.toml +++ b/io/Cargo.toml @@ -1,9 +1,9 @@ [package] name = "ft-io" -version = "0.1.2" +version = "0.1.3" edition = "2021" license = "MIT" authors = ["Gear Technologies"] [dependencies] -gstd = { git = "https://github.com/gear-tech/gear.git", rev = "d4552434" } +gstd = { git = "https://github.com/gear-tech/gear.git", branch = "stable" }