diff --git a/.travis.yml b/.travis.yml index 4ed37599a..f3d685bb4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -27,6 +27,7 @@ matrix: allow_failures: - rust: nightly install: + - rustup target add wasm32-unknown-unknown - curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | sh - source ~/.nvm/nvm.sh - nvm install --lts @@ -43,6 +44,7 @@ script: cd contract-address/ && cargo test --features=external_doc && cd ..; fi - cd ethbloom/ && cargo test --no-default-features --features="rustc-hex" && cargo check --benches && cd .. + - cd ethereum-types/ && cargo build --no-default-features --features="serialize,rlp" --target=wasm32-unknown-unknown && cd .. - cd fixed-hash/ && cargo test --all-features && cargo test --no-default-features --features="byteorder,rustc-hex" && cd .. - cd uint/ && cargo test --all-features && cargo test --no-default-features && cd .. - cd keccak-hash/ && cargo test --no-default-features && cd .. diff --git a/ethbloom/CHANGELOG.md b/ethbloom/CHANGELOG.md index 14cb8a7cb..94a75dcb1 100644 --- a/ethbloom/CHANGELOG.md +++ b/ethbloom/CHANGELOG.md @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog]. [Keep a Changelog]: http://keepachangelog.com/en/1.0.0/ ## [Unreleased] +### Potentially-breaking +- `serialize` feature no longer pulls `std`. [#503](https://github.com/paritytech/parity-common/pull/503) ## [0.10.0] - 2021-01-05 ### Breaking diff --git a/ethbloom/Cargo.toml b/ethbloom/Cargo.toml index c4a4600c9..88777f43b 100644 --- a/ethbloom/Cargo.toml +++ b/ethbloom/Cargo.toml @@ -25,7 +25,7 @@ hex-literal = "0.3.1" [features] default = ["std", "rlp", "serialize", "rustc-hex"] std = ["fixed-hash/std", "crunchy/std"] -serialize = ["std", "impl-serde"] +serialize = ["impl-serde"] rustc-hex = ["fixed-hash/rustc-hex"] arbitrary = ["fixed-hash/arbitrary"] rlp = ["impl-rlp"] diff --git a/ethereum-types/CHANGELOG.md b/ethereum-types/CHANGELOG.md index 86d01c3de..e2b349a50 100644 --- a/ethereum-types/CHANGELOG.md +++ b/ethereum-types/CHANGELOG.md @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog]. [Keep a Changelog]: http://keepachangelog.com/en/1.0.0/ ## [Unreleased] +### Potentially-breaking +- `serialize` feature no longer pulls `std`. [#503](https://github.com/paritytech/parity-common/pull/503) ## [0.10.0] - 2021-01-05 ### Breaking diff --git a/ethereum-types/Cargo.toml b/ethereum-types/Cargo.toml index 1f9ad0d00..c7eb4b449 100644 --- a/ethereum-types/Cargo.toml +++ b/ethereum-types/Cargo.toml @@ -22,7 +22,7 @@ serde_json = "1.0.41" [features] default = ["std", "rlp", "serialize"] std = ["uint-crate/std", "fixed-hash/std", "ethbloom/std", "primitive-types/std"] -serialize = ["std", "impl-serde", "primitive-types/serde", "ethbloom/serialize"] +serialize = ["impl-serde", "primitive-types/serde_no_std", "ethbloom/serialize"] arbitrary = ["ethbloom/arbitrary", "fixed-hash/arbitrary", "uint-crate/arbitrary"] rlp = ["impl-rlp", "ethbloom/rlp", "primitive-types/rlp"] codec = ["impl-codec", "ethbloom/codec"]