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

move to rust 2021 #601

Merged
merged 4 commits into from
Nov 21, 2021
Merged
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
1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
[workspace]
resolver = "2"
members = [
"fixed-hash",
"keccak-hash",
Expand Down
1 change: 1 addition & 0 deletions ethbloom/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ The format is based on [Keep a Changelog].
[Keep a Changelog]: http://keepachangelog.com/en/1.0.0/

## [Unreleased]
- Migrated to 2021 edition, enforcing MSRV of `1.56.1`. [#601](https://github.com/paritytech/parity-common/pull/601)

## [0.11.1] - 2021-09-30
- Combined `scale-info` feature into `codec`. [#593](https://github.com/paritytech/parity-common/pull/593)
Expand Down
3 changes: 2 additions & 1 deletion ethbloom/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ license = "MIT OR Apache-2.0"
documentation = "https://docs.rs/ethbloom"
homepage = "https://github.com/paritytech/parity-common"
repository = "https://github.com/paritytech/parity-common"
edition = "2018"
edition = "2021"
rust-version = "1.56.1"

[dependencies]
tiny-keccak = { version = "2.0", features = ["keccak"] }
Expand Down
1 change: 1 addition & 0 deletions ethereum-types/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ The format is based on [Keep a Changelog].
[Keep a Changelog]: http://keepachangelog.com/en/1.0.0/

## [Unreleased]
- Migrated to 2021 edition, enforcing MSRV of `1.56.1`. [#601](https://github.com/paritytech/parity-common/pull/601)

## [0.12.1] - 2021-09-30
- Combined `scale-info` feature into `codec`. [#593](https://github.com/paritytech/parity-common/pull/593)
Expand Down
3 changes: 2 additions & 1 deletion ethereum-types/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ authors = ["Parity Technologies <admin@parity.io>"]
license = "MIT OR Apache-2.0"
homepage = "https://github.com/paritytech/parity-common"
description = "Ethereum types"
edition = "2018"
edition = "2021"
rust-version = "1.56.1"

[dependencies]
ethbloom = { path = "../ethbloom", version = "0.11", default-features = false }
Expand Down
1 change: 1 addition & 0 deletions fixed-hash/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ The format is based on [Keep a Changelog].
[Keep a Changelog]: http://keepachangelog.com/en/1.0.0/

## [Unreleased]
- Migrated to 2021 edition, enforcing MSRV of `1.56.1`. [#601](https://github.com/paritytech/parity-common/pull/601)

## [0.7.0] - 2021-01-05
### Breaking
Expand Down
3 changes: 2 additions & 1 deletion fixed-hash/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ repository = "https://github.com/paritytech/parity-common"
description = "Macros to define custom fixed-size hash types"
documentation = "https://docs.rs/fixed-hash/"
readme = "README.md"
edition = "2018"
edition = "2021"
rust-version = "1.56.1"

[package.metadata.docs.rs]
features = ["quickcheck", "api-dummy"]
Expand Down
1 change: 1 addition & 0 deletions keccak-hash/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ The format is based on [Keep a Changelog].
[Keep a Changelog]: http://keepachangelog.com/en/1.0.0/

## [Unreleased]
- Migrated to 2021 edition, enforcing MSRV of `1.56.1`. [#601](https://github.com/paritytech/parity-common/pull/601)

### Breaking
- Updated `primitive-types` to 0.10. [#556](https://github.com/paritytech/parity-common/pull/556)
Expand Down
3 changes: 2 additions & 1 deletion keccak-hash/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ authors = ["Parity Technologies <admin@parity.io>"]
repository = "https://github.com/paritytech/parity-common"
readme = "README.md"
license = "MIT OR Apache-2.0"
edition = "2018"
edition = "2021"
rust-version = "1.56.1"

[dependencies]
tiny-keccak = { version = "2.0", features = ["keccak"] }
Expand Down
1 change: 1 addition & 0 deletions kvdb-memorydb/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ The format is based on [Keep a Changelog].
[Keep a Changelog]: http://keepachangelog.com/en/1.0.0/

## [Unreleased]
- Migrated to 2021 edition, enforcing MSRV of `1.56.1`. [#601](https://github.com/paritytech/parity-common/pull/601)

### Breaking
- Updated `parity-util-mem` to 0.10. [#556](https://github.com/paritytech/parity-common/pull/556)
Expand Down
3 changes: 2 additions & 1 deletion kvdb-memorydb/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ authors = ["Parity Technologies <admin@parity.io>"]
repository = "https://github.com/paritytech/parity-common"
description = "A key-value in-memory database that implements the `KeyValueDB` trait"
license = "MIT OR Apache-2.0"
edition = "2018"
edition = "2021"
rust-version = "1.56.1"

[dependencies]
parity-util-mem = { path = "../parity-util-mem", version = "0.10", default-features = false, features = ["std"] }
Expand Down
1 change: 1 addition & 0 deletions kvdb-rocksdb/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ The format is based on [Keep a Changelog].
[Keep a Changelog]: http://keepachangelog.com/en/1.0.0/

## [Unreleased]
- Migrated to 2021 edition, enforcing MSRV of `1.56.1`. [#601](https://github.com/paritytech/parity-common/pull/601)

## [0.14.0] - 2021-08-05
### Breaking
Expand Down
3 changes: 2 additions & 1 deletion kvdb-rocksdb/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ authors = ["Parity Technologies <admin@parity.io>"]
repository = "https://github.com/paritytech/parity-common"
description = "kvdb implementation backed by RocksDB"
license = "MIT OR Apache-2.0"
edition = "2018"
edition = "2021"
rust-version = "1.56.1"

[[bench]]
name = "bench_read_perf"
Expand Down
1 change: 1 addition & 0 deletions kvdb-shared-tests/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ The format is based on [Keep a Changelog].
[Keep a Changelog]: http://keepachangelog.com/en/1.0.0/

## [Unreleased]
- Migrated to 2021 edition, enforcing MSRV of `1.56.1`. [#601](https://github.com/paritytech/parity-common/pull/601)

### Breaking
- Updated `kvdb` to 0.10. [#556](https://github.com/paritytech/parity-common/pull/556)
Expand Down
3 changes: 2 additions & 1 deletion kvdb-shared-tests/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
name = "kvdb-shared-tests"
version = "0.8.0"
authors = ["Parity Technologies <admin@parity.io>"]
edition = "2018"
edition = "2021"
rust-version = "1.56.1"
description = "Shared tests for kvdb functionality, to be executed against actual implementations"
license = "MIT OR Apache-2.0"

Expand Down
1 change: 1 addition & 0 deletions kvdb/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ The format is based on [Keep a Changelog].

### Breaking
- Updated `parity-util-mem` to 0.10. [#556](https://github.com/paritytech/parity-common/pull/556)
- Migrated to 2021 edition, enforcing MSRV of `1.56.1`. [#601](https://github.com/paritytech/parity-common/pull/601)

## [0.9.0] - 2021-01-27
### Breaking
Expand Down
3 changes: 2 additions & 1 deletion kvdb/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ authors = ["Parity Technologies <admin@parity.io>"]
repository = "https://github.com/paritytech/parity-common"
description = "Generic key-value trait"
license = "MIT OR Apache-2.0"
edition = "2018"
edition = "2021"
rust-version = "1.56.1"

[dependencies]
smallvec = "1.0.0"
Expand Down
1 change: 1 addition & 0 deletions parity-bytes/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ The format is based on [Keep a Changelog].
[Keep a Changelog]: http://keepachangelog.com/en/1.0.0/

## [Unreleased]
- Migrated to 2021 edition, enforcing MSRV of `1.56.1`. [#601](https://github.com/paritytech/parity-common/pull/601)

## [0.1.2] - 2020-03-16
- License changed from GPL3 to dual MIT/Apache2. [#342](https://github.com/paritytech/parity-common/pull/342)
Expand Down
3 changes: 2 additions & 1 deletion parity-bytes/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ authors = ["Parity Technologies <admin@parity.io>"]
repository = "https://github.com/paritytech/parity-common"
description = "byte utilities for Parity"
license = "MIT OR Apache-2.0"
edition = "2018"
edition = "2021"
rust-version = "1.56.1"

[dependencies]

Expand Down
3 changes: 3 additions & 0 deletions parity-util-mem/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ The format is based on [Keep a Changelog].

[Keep a Changelog]: http://keepachangelog.com/en/1.0.0/

## [Unreleased]
- Migrated to 2021 edition, enforcing MSRV of `1.56.1`. [#601](https://github.com/paritytech/parity-common/pull/601)

## [0.10.2] - 2021-09-20
- Switched from `jemallocator` to `tikv-jemallocator`. [#589](https://github.com/paritytech/parity-common/pull/589)

Expand Down
3 changes: 2 additions & 1 deletion parity-util-mem/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ authors = ["Parity Technologies <admin@parity.io>"]
repository = "https://github.com/paritytech/parity-common"
description = "Collection of memory related utilities"
license = "MIT OR Apache-2.0"
edition = "2018"
edition = "2021"
rust-version = "1.56.1"

# Prevent multiple versions from being linked into the same program.
links = "parity-util-mem-ban-duplicates"
Expand Down
1 change: 1 addition & 0 deletions parity-util-mem/derive/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ The format is based on [Keep a Changelog].
[Keep a Changelog]: http://keepachangelog.com/en/1.0.0/

## [Unreleased]
- Migrated to 2021 edition, enforcing MSRV of `1.56.1`. [#601](https://github.com/paritytech/parity-common/pull/601)
2 changes: 2 additions & 0 deletions parity-util-mem/derive/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ authors = ["Parity Technologies <admin@parity.io>"]
license = "MIT OR Apache-2.0"
description = "Crate for memory reporting"
repository = "https://github.com/paritytech/pariry-common/parity-util-mem/derive"
edition = "2021"
rust-version = "1.56.1"

[lib]
path = "lib.rs"
Expand Down
1 change: 1 addition & 0 deletions primitive-types/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ The format is based on [Keep a Changelog].
[Keep a Changelog]: http://keepachangelog.com/en/1.0.0/

## [Unreleased]
- Migrated to 2021 edition, enforcing MSRV of `1.56.1`. [#601](https://github.com/paritytech/parity-common/pull/601)

## [0.10.1] - 2021-07-02
### Added
Expand Down
3 changes: 2 additions & 1 deletion primitive-types/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ authors = ["Parity Technologies <admin@parity.io>"]
license = "MIT OR Apache-2.0"
homepage = "https://github.com/paritytech/parity-common"
description = "Primitive types shared by Ethereum and Substrate"
edition = "2018"
edition = "2021"
rust-version = "1.56.1"

[dependencies]
fixed-hash = { version = "0.7", path = "../fixed-hash", default-features = false }
Expand Down
1 change: 1 addition & 0 deletions primitive-types/impls/codec/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ The format is based on [Keep a Changelog].
[Keep a Changelog]: http://keepachangelog.com/en/1.0.0/

## [Unreleased]
- Migrated to 2021 edition, enforcing MSRV of `1.56.1`. [#601](https://github.com/paritytech/parity-common/pull/601)

## [0.5.1] - 2021-07-02
### Dependencies
Expand Down
3 changes: 2 additions & 1 deletion primitive-types/impls/codec/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ authors = ["Parity Technologies <admin@parity.io>"]
license = "MIT OR Apache-2.0"
homepage = "https://github.com/paritytech/parity-common"
description = "Parity Codec serialization support for uint and fixed hash."
edition = "2018"
edition = "2021"
rust-version = "1.56.1"

[dependencies]
parity-scale-codec = { version = "2.2.0", default-features = false, features = ["max-encoded-len"] }
Expand Down
1 change: 1 addition & 0 deletions primitive-types/impls/num-traits/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ The format is based on [Keep a Changelog].
[Keep a Changelog]: http://keepachangelog.com/en/1.0.0/

## [Unreleased]
- Migrated to 2021 edition, enforcing MSRV of `1.56.1`. [#601](https://github.com/paritytech/parity-common/pull/601)

## [0.1.1] - 2021-06-30
- Added `integer-sqrt` trait support. [#554](https://github.com/paritytech/parity-common/pull/554)
3 changes: 2 additions & 1 deletion primitive-types/impls/num-traits/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ authors = ["Parity Technologies <admin@parity.io>"]
license = "MIT OR Apache-2.0"
homepage = "https://github.com/paritytech/parity-common"
description = "num-traits implementation for uint."
edition = "2018"
edition = "2021"
rust-version = "1.56.1"

[dependencies]
num-traits = { version = "0.2", default-features = false }
Expand Down
1 change: 1 addition & 0 deletions primitive-types/impls/rlp/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ The format is based on [Keep a Changelog].
[Keep a Changelog]: http://keepachangelog.com/en/1.0.0/

## [Unreleased]
- Migrated to 2021 edition, enforcing MSRV of `1.56.1`. [#601](https://github.com/paritytech/parity-common/pull/601)

## [0.3.0] - 2021-01-05
### Breaking
Expand Down
3 changes: 2 additions & 1 deletion primitive-types/impls/rlp/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ authors = ["Parity Technologies <admin@parity.io>"]
license = "MIT OR Apache-2.0"
homepage = "https://github.com/paritytech/parity-common"
description = "RLP serialization support for uint and fixed hash."
edition = "2018"
edition = "2021"
rust-version = "1.56.1"

[dependencies]
rlp = { version = "0.5", path = "../../../rlp", default-features = false }
Expand Down
1 change: 1 addition & 0 deletions primitive-types/impls/serde/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ The format is based on [Keep a Changelog].
[Keep a Changelog]: http://keepachangelog.com/en/1.0.0/

## [Unreleased]
- Migrated to 2021 edition, enforcing MSRV of `1.56.1`. [#601](https://github.com/paritytech/parity-common/pull/601)

## [0.3.2] - 2021-11-10
- Supported decoding of hex strings without `0x` prefix. [#598](https://github.com/paritytech/parity-common/pull/598)
Expand Down
3 changes: 2 additions & 1 deletion primitive-types/impls/serde/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@
name = "impl-serde"
version = "0.3.2"
authors = ["Parity Technologies <admin@parity.io>"]
edition = "2018"
license = "MIT OR Apache-2.0"
homepage = "https://github.com/paritytech/parity-common"
description = "Serde serialization support for uint and fixed hash."
edition = "2021"
rust-version = "1.56.1"

[features]
default = ["std"]
Expand Down
1 change: 1 addition & 0 deletions rlp-derive/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ The format is based on [Keep a Changelog].
[Keep a Changelog]: http://keepachangelog.com/en/1.0.0/

## [Unreleased]
- Migrated to 2021 edition, enforcing MSRV of `1.56.1`. [#601](https://github.com/paritytech/parity-common/pull/601)

## [0.1.0] - 2020-02-13
- Extracted from parity-ethereum repo. [#343](https://github.com/paritytech/parity-common/pull/343)
3 changes: 2 additions & 1 deletion rlp-derive/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ authors = ["Parity Technologies <admin@parity.io>"]
license = "MIT OR Apache-2.0"
description = "Derive macro for #[derive(RlpEncodable, RlpDecodable)]"
homepage = "http://parity.io"
edition = "2018"
edition = "2021"
rust-version = "1.56.1"

[lib]
proc-macro = true
Expand Down
1 change: 1 addition & 0 deletions rlp/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ The format is based on [Keep a Changelog].
[Keep a Changelog]: http://keepachangelog.com/en/1.0.0/

## [Unreleased]
- Migrated to 2021 edition, enforcing MSRV of `1.56.1`. [#601](https://github.com/paritytech/parity-common/pull/601)

## [0.5.1] - 2021-07-30
- Fix rlp encoding/decoding for bool. [#572](https://github.com/paritytech/parity-common/pull/572)
Expand Down
3 changes: 2 additions & 1 deletion rlp/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ description = "Recursive-length prefix encoding, decoding, and compression"
repository = "https://github.com/paritytech/parity-common"
license = "MIT OR Apache-2.0"
authors = ["Parity Technologies <admin@parity.io>"]
edition = "2018"
edition = "2021"
rust-version = "1.56.1"

[dependencies]
bytes = { version = "1", default-features = false }
Expand Down
1 change: 1 addition & 0 deletions uint/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ The format is based on [Keep a Changelog].
[Keep a Changelog]: http://keepachangelog.com/en/1.0.0/

## [Unreleased]
- Migrated to 2021 edition, enforcing MSRV of `1.56.1`. [#601](https://github.com/paritytech/parity-common/pull/601)

## [0.9.1] - 2021-06-30
- Added `integer_sqrt` method. [#554](https://github.com/paritytech/parity-common/pull/554)
Expand Down
3 changes: 2 additions & 1 deletion uint/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ name = "uint"
version = "0.9.1"
authors = ["Parity Technologies <admin@parity.io>"]
readme = "README.md"
edition = "2018"
edition = "2021"
rust-version = "1.56.1"

[dependencies]
byteorder = { version = "1.4.2", default-features = false }
Expand Down
3 changes: 2 additions & 1 deletion uint/fuzz/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ description = "Fuzzers for uint algorithms"
publish = false
version = "0.1.0"
authors = ["Parity Technologies <admin@parity.io>"]
edition = "2018"
edition = "2021"
rust-version = "1.56.1"

[package.metadata]
cargo-fuzz = true
Expand Down