Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alignmnet of repo to CW standards #1

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .cargo/config
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[alias]
wasm = "build --release --target wasm32-unknown-unknown"
67 changes: 67 additions & 0 deletions .github/workflows/Basic.yml
Original file line number Diff line number Diff line change
@@ -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
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/target/
/Cargo.lock
/.gitattributes
/.idea/
*.iml
63 changes: 63 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"]

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why remove the reference to the original author?

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dead man tells no tale!

edition = "2018"

description = "Serialization value trees for CosmWasm"
Expand Down
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -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).

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
This is fork of [serde-value](https://github.com/arcnmx/serde-value).
This is a fork of [serde-value](https://github.com/arcnmx/serde-value).

Copy link

@maurolacy maurolacy May 18, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps a better name for the repo would have been serde-value-wasm. In line with serde-json-wasm. Just a suggestion.