From dd6e3918d8c3459288e5f8eb5d7b36a8cd062cc2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bart=C5=82omiej=20Kuras?= Date: Tue, 17 May 2022 13:49:48 +0200 Subject: [PATCH 1/3] Alignmnet of repo to CW standards --- .github/workflows/Basic.yml | 67 +++++++++++++++++++++++++++++++++++++ Cargo.toml | 4 +-- README.md | 6 ++-- 3 files changed, 73 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/Basic.yml diff --git a/.github/workflows/Basic.yml b/.github/workflows/Basic.yml new file mode 100644 index 0000000..c900b3a --- /dev/null +++ b/.github/workflows/Basic.yml @@ -0,0 +1,67 @@ +# Based on https://github.com/actions-rs/example/blob/master/.github/workflows/quickstart.yml + +on: [push, pull_request] + +name: Basic + +jobs: + + tests: + name: Tests + runs-on: ubuntu-latest + steps: + - name: Checkout sources + uses: actions/checkout@v2 + + - name: Install stable toolchain + uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: 1.60.0 + target: wasm32-unknown-unknown + override: true + + - name: Run tests + uses: actions-rs/cargo@v1 + with: + command: test + args: --locked + env: + RUST_BACKTRACE: 1 + RUSTFLAGS: "-D warnings" + + - name: Compile to Wasm + uses: actions-rs/cargo@v1 + with: + command: wasm + args: --locked + env: + RUST_BACKTRACE: 1 + RUSTFLAGS: "-D warnings" + + sanity: + name: Sanity + runs-on: ubuntu-latest + steps: + - name: Checkout sources + uses: actions/checkout@v2 + + - name: Install stable toolchain + uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: 1.60.0 + override: true + components: rustfmt, clippy + + - name: Run cargo fmt + uses: actions-rs/cargo@v1 + with: + command: fmt + args: -- --check + + - name: Run cargo clippy + uses: actions-rs/cargo@v1 + with: + command: clippy + args: -- -D warnings diff --git a/Cargo.toml b/Cargo.toml index 5f1825e..25c87c1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "serde-cw-value" -version = "0.7.0" -authors = ["arcnmx", "Bartłomiej Kuras"] +version = "1.0.0" +authors = ["Bartłomiej Kuras"] edition = "2018" description = "Serialization value trees for CosmWasm" diff --git a/README.md b/README.md index 2f234e9..2f9d83e 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,8 @@ -# serde-value +# serde-cw-value `serde-cw-value` provides a way to capture serialization value trees for later processing. Crate is designed to work with CosmWasm smart contracts, -in particular - it errors early when any floating-point types are processed. This is for of [serde-value](https://github.com/arcnmx/serde-value). +in particular - it errors early when any floating-point types are processed. + +This is fork of [serde-value](https://github.com/arcnmx/serde-value). From 50cc206d44d4404118d0777d923b9b5b413cc622 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bart=C5=82omiej=20Kuras?= Date: Tue, 17 May 2022 13:53:07 +0200 Subject: [PATCH 2/3] Cargo.lock --- .gitignore | 1 - Cargo.lock | 63 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 63 insertions(+), 1 deletion(-) create mode 100644 Cargo.lock diff --git a/.gitignore b/.gitignore index 2c1d75e..15c17af 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,4 @@ /target/ -/Cargo.lock /.gitattributes /.idea/ *.iml diff --git a/Cargo.lock b/Cargo.lock new file mode 100644 index 0000000..7a17991 --- /dev/null +++ b/Cargo.lock @@ -0,0 +1,63 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 3 + +[[package]] +name = "proc-macro2" +version = "1.0.39" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c54b25569025b7fc9651de43004ae593a75ad88543b17178aa5e1b9c4f15f56f" +dependencies = [ + "unicode-ident", +] + +[[package]] +name = "quote" +version = "1.0.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a1feb54ed693b93a84e14094943b84b7c4eae204c512b7ccb95ab0c66d278ad1" +dependencies = [ + "proc-macro2", +] + +[[package]] +name = "serde" +version = "1.0.137" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "61ea8d54c77f8315140a05f4c7237403bf38b72704d031543aa1d16abbf517d1" + +[[package]] +name = "serde-cw-value" +version = "1.0.0" +dependencies = [ + "serde", + "serde_derive", +] + +[[package]] +name = "serde_derive" +version = "1.0.137" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1f26faba0c3959972377d3b2d306ee9f71faee9714294e41bb777f83f88578be" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "syn" +version = "1.0.95" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fbaf6116ab8924f39d52792136fb74fd60a80194cf1b1c6ffa6453eef1c3f942" +dependencies = [ + "proc-macro2", + "quote", + "unicode-ident", +] + +[[package]] +name = "unicode-ident" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d22af068fba1eb5edcb4aea19d382b2a3deb4c8f9d475c589b6ada9e0fd493ee" From 18aea2d412f53f2452e24b35c646ace48dbb496e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bart=C5=82omiej=20Kuras?= Date: Tue, 17 May 2022 13:55:59 +0200 Subject: [PATCH 3/3] Cargo alias for wasm --- .cargo/config | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 .cargo/config diff --git a/.cargo/config b/.cargo/config new file mode 100644 index 0000000..a9bc11f --- /dev/null +++ b/.cargo/config @@ -0,0 +1,2 @@ +[alias] +wasm = "build --release --target wasm32-unknown-unknown"