Skip to content

Commit

Permalink
rustc: switch to rust edition 2021 (#1429)
Browse files Browse the repository at this point in the history
  • Loading branch information
q9f authored Feb 15, 2022
1 parent 2b822b2 commit d5a774a
Show file tree
Hide file tree
Showing 53 changed files with 64 additions and 80 deletions.
40 changes: 12 additions & 28 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion blockchain/beacon/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "beacon"
version = "0.1.0"
authors = ["ChainSafe Systems <info@chainsafe.io>"]
edition = "2018"
edition = "2021"

[package.metadata.docs.rs]
features = ["json"]
Expand Down
2 changes: 1 addition & 1 deletion blockchain/blocks/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "forest_blocks"
version = "0.1.0"
authors = ["ChainSafe Systems <info@chainsafe.io>"]
edition = "2018"
edition = "2021"

[package.metadata.docs.rs]
features = ["json"]
Expand Down
2 changes: 1 addition & 1 deletion blockchain/chain/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "chain"
version = "0.1.0"
authors = ["ChainSafe Systems <info@chainsafe.io>"]
edition = "2018"
edition = "2021"

[dependencies]
blocks = { package = "forest_blocks", path = "../blocks", features = ["json"] }
Expand Down
2 changes: 1 addition & 1 deletion blockchain/chain_sync/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "chain_sync"
version = "0.1.0"
authors = ["ChainSafe Systems <info@chainsafe.io>"]
edition = "2018"
edition = "2021"

[dependencies]
address = { package = "forest_address", version = "0.3" }
Expand Down
2 changes: 1 addition & 1 deletion blockchain/message_pool/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "message_pool"
version = "0.1.0"
authors = ["ChainSafe Systems <info@chainsafe.io>"]
edition = "2018"
edition = "2021"

[dependencies]
address = { package = "forest_address", version = "0.3" }
Expand Down
2 changes: 1 addition & 1 deletion blockchain/state_manager/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "state_manager"
version = "0.1.0"
authors = ["ChainSafe Systems <info@chainsafe.io>"]
edition = "2018"
edition = "2021"

[package.metadata.docs.rs]
features = ["statediff"]
Expand Down
2 changes: 1 addition & 1 deletion crypto/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description = "Filecoin crypto utilities for use in Forest"
license = "MIT OR Apache-2.0"
version = "0.5.2"
authors = ["ChainSafe Systems <info@chainsafe.io>"]
edition = "2018"
edition = "2021"
repository = "https://github.com/ChainSafe/forest"

[package.metadata.docs.rs]
Expand Down
2 changes: 1 addition & 1 deletion encoding/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description = "Filecoin encoding and decoding utilities for use in Forest"
license = "MIT OR Apache-2.0"
version = "0.2.2"
authors = ["ChainSafe Systems <info@chainsafe.io>"]
edition = "2018"
edition = "2021"
repository = "https://github.com/ChainSafe/forest"

[dependencies]
Expand Down
2 changes: 1 addition & 1 deletion forest/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "forest"
version = "0.2.2"
authors = ["ChainSafe Systems <info@chainsafe.io>"]
description = "Filecoin implementation in Rust. This command will start the daemon process."
edition = "2018"
edition = "2021"
build = "build.rs"

[dependencies]
Expand Down
2 changes: 1 addition & 1 deletion ipld/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description = "Interplanetary linked data types and implementation"
version = "0.1.1"
license = "MIT OR Apache-2.0"
authors = ["ChainSafe Systems <info@chainsafe.io>"]
edition = "2018"
edition = "2021"
repository = "https://github.com/ChainSafe/forest"

[package.metadata.docs.rs]
Expand Down
2 changes: 1 addition & 1 deletion ipld/amt/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description = "Sharded IPLD Array implementation."
version = "1.0.0"
license = "MIT OR Apache-2.0"
authors = ["ChainSafe Systems <info@chainsafe.io>"]
edition = "2018"
edition = "2021"
repository = "https://github.com/ChainSafe/forest"

[dependencies]
Expand Down
2 changes: 1 addition & 1 deletion ipld/amt/fuzz/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name = "ipld_amt-fuzz"
version = "0.0.0"
authors = ["ChainSafe Systems <info@chainsafe.io>"]
publish = false
edition = "2018"
edition = "2021"

[package.metadata]
cargo-fuzz = true
Expand Down
2 changes: 1 addition & 1 deletion ipld/blockstore/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description = "IPLD storage interface"
version = "0.1.1"
license = "MIT OR Apache-2.0"
authors = ["ChainSafe Systems <info@chainsafe.io>"]
edition = "2018"
edition = "2021"
repository = "https://github.com/ChainSafe/forest"

[dependencies]
Expand Down
2 changes: 1 addition & 1 deletion ipld/car/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "forest_car"
version = "0.1.0"
authors = ["ChainSafe Systems <info@chainsafe.io>"]
edition = "2018"
edition = "2021"

[dependencies]
cid = { package = "forest_cid", version = "0.3", features = ["cbor"] }
Expand Down
2 changes: 1 addition & 1 deletion ipld/cid/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description = "A Cid library used in Forest for the Filecoin protocol"
license = "MIT OR Apache-2.0"
version = "0.3.0"
authors = ["ChainSafe Systems <info@chainsafe.io>"]
edition = "2018"
edition = "2021"
repository = "https://github.com/ChainSafe/forest"

[package.metadata.docs.rs]
Expand Down
2 changes: 1 addition & 1 deletion ipld/graphsync/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "graphsync"
version = "0.1.0"
authors = ["ChainSafe Systems <info@chainsafe.io>"]
edition = "2018"
edition = "2021"

[dependencies]
protobuf = "2.14.0"
Expand Down
2 changes: 1 addition & 1 deletion ipld/hamt/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description = "Sharded IPLD HashMap implementation."
version = "2.0.0"
license = "MIT OR Apache-2.0"
authors = ["ChainSafe Systems <info@chainsafe.io>"]
edition = "2018"
edition = "2021"
repository = "https://github.com/ChainSafe/forest"

[dependencies]
Expand Down
2 changes: 1 addition & 1 deletion ipld/hamt/fuzz/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name = "ipld_hamt-fuzz"
version = "0.0.0"
authors = ["ChainSafe Systems <info@chainsafe.io>"]
publish = false
edition = "2018"
edition = "2021"

[package.metadata]
cargo-fuzz = true
Expand Down
2 changes: 1 addition & 1 deletion key_management/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "key_management"
version = "0.1.0"
authors = ["ChainSafe Systems <info@chainsafe.io>"]
edition = "2018"
edition = "2021"

[package.metadata.docs.rs]
features = ["json"]
Expand Down
2 changes: 1 addition & 1 deletion node/clock/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description = "Filecoin clock types and ChainEpoch functionality"
version = "0.1.0"
license = "MIT OR Apache-2.0"
authors = ["ChainSafe Systems <info@chainsafe.io>"]
edition = "2018"
edition = "2021"
repository = "https://github.com/ChainSafe/forest"

[dependencies]
Expand Down
2 changes: 1 addition & 1 deletion node/db/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description = "Database types used in Forest"
version = "0.1.0"
license = "MIT OR Apache-2.0"
authors = ["ChainSafe Systems <info@chainsafe.io>"]
edition = "2018"
edition = "2021"
repository = "https://github.com/ChainSafe/forest"

[dependencies]
Expand Down
2 changes: 1 addition & 1 deletion node/forest_libp2p/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "forest_libp2p"
version = "0.1.0"
authors = ["ChainSafe Systems <info@chainsafe.io>"]
edition = "2018"
edition = "2021"

[dependencies]
utils = { path = "../utils" }
Expand Down
2 changes: 1 addition & 1 deletion node/rpc-api/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "rpc-api"
version = "0.1.0"
authors = ["ChainSafe Systems <info@chainsafe.io>"]
edition = "2018"
edition = "2021"

[dependencies]
# Internal
Expand Down
2 changes: 1 addition & 1 deletion node/rpc-client/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
authors = ["ChainSafe Systems <info@chainsafe.io>"]
edition = "2018"
edition = "2021"
name = "rpc-client"
version = "0.1.0"

Expand Down
2 changes: 1 addition & 1 deletion node/rpc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "rpc"
version = "0.1.0"
authors = ["ChainSafe Systems <info@chainsafe.io>"]
edition = "2018"
edition = "2021"

[dependencies]
# Public
Expand Down
2 changes: 1 addition & 1 deletion node/utils/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "utils"
version = "0.1.0"
authors = ["ChainSafe Systems <info@chainsafe.io>"]
edition = "2018"
edition = "2021"

[dependencies]
dirs = "3.0"
Expand Down
2 changes: 1 addition & 1 deletion rustfmt.toml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
edition = "2018"
edition = "2021"
2 changes: 1 addition & 1 deletion tests/conformance_tests/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "conformance_tests"
version = "0.1.0"
authors = ["ChainSafe Systems <info@chainsafe.io>"]
edition = "2018"
edition = "2021"

[features]
default = []
Expand Down
2 changes: 1 addition & 1 deletion tests/serialization_tests/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "serialization_tests"
version = "0.1.0"
authors = ["ChainSafe Systems <info@chainsafe.io>"]
edition = "2018"
edition = "2021"

[features]
submodule_tests = []
Expand Down
2 changes: 1 addition & 1 deletion types/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description = "Filecoin types used in Forest."
version = "0.2.2"
license = "MIT OR Apache-2.0"
authors = ["ChainSafe Systems <info@chainsafe.io>"]
edition = "2018"
edition = "2021"
repository = "https://github.com/ChainSafe/forest"

[package.metadata.docs.rs]
Expand Down
2 changes: 1 addition & 1 deletion types/networks/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "networks"
version = "0.1.0"
authors = ["ChainSafe Systems <info@chainsafe.io>"]
edition = "2018"
edition = "2021"

[dependencies]
fil_types = { path = "../../types" }
Expand Down
2 changes: 1 addition & 1 deletion utils/auth/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "auth"
version = "0.1.0"
authors = ["ChainSafe Systems <info@chainsafe.io>"]
edition = "2018"
edition = "2021"

[dependencies]
# Public
Expand Down
2 changes: 1 addition & 1 deletion utils/bigint/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description = "BigInt utilities for use in Forest"
license = "MIT OR Apache-2.0"
version = "0.1.4"
authors = ["ChainSafe Systems <info@chainsafe.io>"]
edition = "2018"
edition = "2021"
repository = "https://github.com/ChainSafe/forest"

[package.metadata.docs.rs]
Expand Down
2 changes: 1 addition & 1 deletion utils/bitfield/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description = "Bitfield logic for use in Filecoin actors"
version = "0.1.0"
license = "MIT OR Apache-2.0"
authors = ["ChainSafe Systems <info@chainsafe.io>"]
edition = "2018"
edition = "2021"
repository = "https://github.com/ChainSafe/forest"

[dependencies]
Expand Down
Loading

0 comments on commit d5a774a

Please sign in to comment.