Skip to content

Commit 8221343

Browse files
committed
Rust 2021
1 parent 9c1d07a commit 8221343

File tree

662 files changed

+513
-1000
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

662 files changed

+513
-1000
lines changed

Cargo.Bazel.json.lock

+117-90
Large diffs are not rendered by default.

Cargo.Bazel.toml.lock

+10-10
Original file line numberDiff line numberDiff line change
@@ -1279,9 +1279,9 @@ dependencies = [
12791279

12801280
[[package]]
12811281
name = "clap"
1282-
version = "3.2.19"
1282+
version = "3.2.20"
12831283
source = "registry+https://github.com/rust-lang/crates.io-index"
1284-
checksum = "68d43934757334b5c0519ff882e1ab9647ac0258b47c24c4f490d78e42697fd5"
1284+
checksum = "23b71c3ce99b7611011217b366d923f1d0a7e07a92bb2dbf1e84508c673ca3bd"
12851285
dependencies = [
12861286
"atty",
12871287
"bitflags",
@@ -2107,7 +2107,7 @@ dependencies = [
21072107
"chacha20poly1305",
21082108
"chrono",
21092109
"ciborium 0.2.0 (git+https://github.com/enarx/ciborium?rev=e719537c99b564c3674a56defe53713c702c6f46)",
2110-
"clap 3.2.19 (registry+https://github.com/rust-lang/crates.io-index)",
2110+
"clap 3.2.20 (registry+https://github.com/rust-lang/crates.io-index)",
21112111
"colored",
21122112
"comparable",
21132113
"console 0.11.3 (registry+https://github.com/rust-lang/crates.io-index)",
@@ -3546,7 +3546,7 @@ checksum = "ebed180ae82aa994a90c4477fc928379efb8d55e52e5b90c3ab1611dd4c11ab1"
35463546
dependencies = [
35473547
"anyhow",
35483548
"candid",
3549-
"clap 3.2.19 (registry+https://github.com/rust-lang/crates.io-index)",
3549+
"clap 3.2.20 (registry+https://github.com/rust-lang/crates.io-index)",
35503550
"ic-types",
35513551
"walrus",
35523552
]
@@ -3965,9 +3965,9 @@ dependencies = [
39653965

39663966
[[package]]
39673967
name = "libfuzzer-sys"
3968-
version = "0.4.3"
3968+
version = "0.4.4"
39693969
source = "registry+https://github.com/rust-lang/crates.io-index"
3970-
checksum = "336244aaeab6a12df46480dc585802aa743a72d66b11937844c61bbca84c991d"
3970+
checksum = "ae185684fe19814afd066da15a7cc41e126886c21282934225d9fc847582da58"
39713971
dependencies = [
39723972
"arbitrary",
39733973
"cc",
@@ -4893,9 +4893,9 @@ dependencies = [
48934893

48944894
[[package]]
48954895
name = "once_cell"
4896-
version = "1.13.1"
4896+
version = "1.14.0"
48974897
source = "registry+https://github.com/rust-lang/crates.io-index"
4898-
checksum = "074864da206b4973b84eb91683020dbefd6a8c3f0f38e054d93954e891935e4e"
4898+
checksum = "2f7254b99e31cad77da24b08ebf628882739a608578bb1bcdfc1f9c21260d7c0"
48994899

49004900
[[package]]
49014901
name = "oorandom"
@@ -7678,9 +7678,9 @@ checksum = "cda74da7e1a664f795bb1f8a87ec406fb89a02522cf6e50620d016add6dbbf5c"
76787678

76797679
[[package]]
76807680
name = "tokio"
7681-
version = "1.20.1"
7681+
version = "1.21.0"
76827682
source = "registry+https://github.com/rust-lang/crates.io-index"
7683-
checksum = "7a8325f63a7d4774dd041e363b2409ed1c5cbbd0f867795e661df066b2b0a581"
7683+
checksum = "89797afd69d206ccd11fb0ea560a44bbb87731d020670e79416d442919257d42"
76847684
dependencies = [
76857685
"autocfg 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
76867686
"bytes",

WORKSPACE.bazel

+4-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@ load("@rules_rust//rust:repositories.bzl", "rules_rust_dependencies", "rust_regi
2020

2121
rules_rust_dependencies()
2222

23-
rust_register_toolchains(version = "1.60.0")
23+
rust_register_toolchains(
24+
edition = "2021",
25+
version = "1.60.0",
26+
)
2427

2528
git_repository(
2629
name = "rules_foreign_cc",

bazel/canisters.bzl

-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ def rust_canister(name, **kwargs):
5858
"""
5959
wasm_name = "_wasm_" + name.replace(".", "_")
6060
kwargs.setdefault("visibility", ["//visibility:public"])
61-
kwargs.setdefault("edition", "2018")
6261

6362
rust_binary(
6463
name = wasm_name,

bazel/prost.bzl

-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ def generated_files_check(name, srcs, deps, data, manifest_dir):
1313
"@com_google_protobuf//:protoc",
1414
"@com_google_protobuf//:well_known_protos",
1515
],
16-
edition = "2018",
1716
env = {
1817
"PROTOC": "$(rootpath @com_google_protobuf//:protoc)",
1918
"PROTOC_INCLUDE": "external/com_github_protocolbuffers_protobuf/src",
@@ -29,7 +28,6 @@ def protobuf_generator(name, srcs, manifest_dir, deps = [], data = []):
2928
name = binary_name,
3029
srcs = srcs,
3130
data = data,
32-
edition = "2018",
3331
deps = deps,
3432
)
3533

experimental/cow_state/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "ic-cow-state"
33
version = "0.8.0"
4-
edition = "2018"
4+
edition = "2021"
55

66
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
77

experimental/encoding_bench/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "encoding_bench"
33
version = "0.1.0"
44
authors = ["The Internet Computer Project Developers"]
5-
edition = "2018"
5+
edition = "2021"
66

77
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
88

experimental/json5test/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "json5test"
33
version = "0.1.0"
44
authors = ["The Internet Computer Project Developers"]
5-
edition = "2018"
5+
edition = "2021"
66

77
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
88

experimental/load_sink/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "load_sink"
33
version = "0.1.0"
4-
edition = "2018"
4+
edition = "2021"
55

66
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
77

experimental/qos/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "qos"
33
version = "0.1.0"
44
authors = ["The Internet Computer Project Developers"]
5-
edition = "2018"
5+
edition = "2021"
66

77
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
88

experimental/reuseport/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "reuseport"
33
version = "0.1.0"
44
authors = ["The Internet Computer Project Developers"]
5-
edition = "2018"
5+
edition = "2021"
66

77
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
88

experimental/rs/libsigsegv-sys/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "libsigsegv-sys"
33
version = "0.1.0"
44
authors = ["The Internet Computer Project Developers"]
5-
edition = "2018"
5+
edition = "2021"
66

77
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
88

experimental/rs/libsigsegv/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "libsigsegv"
33
version = "0.1.0"
44
authors = ["The Internet Computer Project Developers"]
5-
edition = "2018"
5+
edition = "2021"
66

77
[dependencies]
88
lazy_static = "*"

experimental/rs/memory_area/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "memory_area"
33
version = "0.1.0"
44
authors = ["The Internet Computer Project Developers"]
5-
edition = "2018"
5+
edition = "2021"
66

77
[dependencies]
88
bit-vec = "0.5"

experimental/rs/test-wasmtime-orthogonal-persistence/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "test-wasmtime-orthogonal-persistence"
33
version = "0.1.0"
44
authors = ["The Internet Computer Project Developers"]
5-
edition = "2018"
5+
edition = "2021"
66

77
[dependencies]
88
anyhow = "*"

experimental/rs/test-wasmtime-table-call/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "test-wasmtime-table-call"
33
version = "0.1.0"
44
authors = ["The Internet Computer Project Developers"]
5-
edition = "2018"
5+
edition = "2021"
66

77
[dependencies]
88
anyhow = "*"

experimental/rs/wasm-api-sys/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "wasm-api-sys"
33
version = "0.1.0"
44
authors = ["The Internet Computer Project Developers"]
5-
edition = "2018"
5+
edition = "2021"
66

77
[build-dependencies]
88
bindgen = "0.49.0"

experimental/rs/wasm-api/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "wasm-api"
33
version = "0.1.0"
44
authors = ["The Internet Computer Project Developers"]
5-
edition = "2018"
5+
edition = "2021"
66

77
[build-dependencies]
88
bindgen = "0.49.0"

gitlab-ci/src/gen_gitlab_cargo_pipeline/test_data/all_crates_on_master/after/rs/bar/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "bar"
33
version = "0.1.0"
44
authors = ["The Internet Computer Project Developers"]
5-
edition = "2018"
5+
edition = "2021"
66

77
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
88

gitlab-ci/src/gen_gitlab_cargo_pipeline/test_data/all_crates_on_master/after/rs/foo/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "foo"
33
version = "0.1.0"
44
authors = ["The Internet Computer Project Developers"]
5-
edition = "2018"
5+
edition = "2021"
66

77
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
88

gitlab-ci/src/gen_gitlab_cargo_pipeline/test_data/all_crates_on_master/after/rs/leaf1/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "leaf1"
33
version = "0.1.0"
44
authors = ["The Internet Computer Project Developers"]
5-
edition = "2018"
5+
edition = "2021"
66

77
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
88

gitlab-ci/src/gen_gitlab_cargo_pipeline/test_data/all_crates_on_master/after/rs/leaf2/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "leaf2"
33
version = "0.1.0"
44
authors = ["The Internet Computer Project Developers"]
5-
edition = "2018"
5+
edition = "2021"
66

77
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
88

gitlab-ci/src/gen_gitlab_cargo_pipeline/test_data/all_crates_on_master/after/rs/root/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "root"
33
version = "0.1.0"
44
authors = ["The Internet Computer Project Developers"]
5-
edition = "2018"
5+
edition = "2021"
66

77
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
88

gitlab-ci/src/gen_gitlab_cargo_pipeline/test_data/all_crates_on_master/before/rs/bar/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "bar"
33
version = "0.1.0"
44
authors = ["The Internet Computer Project Developers"]
5-
edition = "2018"
5+
edition = "2021"
66

77
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
88

gitlab-ci/src/gen_gitlab_cargo_pipeline/test_data/all_crates_on_master/before/rs/foo/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "foo"
33
version = "0.1.0"
44
authors = ["The Internet Computer Project Developers"]
5-
edition = "2018"
5+
edition = "2021"
66

77
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
88

gitlab-ci/src/gen_gitlab_cargo_pipeline/test_data/all_crates_on_master/before/rs/leaf1/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "leaf1"
33
version = "0.1.0"
44
authors = ["The Internet Computer Project Developers"]
5-
edition = "2018"
5+
edition = "2021"
66

77
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
88

gitlab-ci/src/gen_gitlab_cargo_pipeline/test_data/all_crates_on_master/before/rs/leaf2/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "leaf2"
33
version = "0.1.0"
44
authors = ["The Internet Computer Project Developers"]
5-
edition = "2018"
5+
edition = "2021"
66

77
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
88

gitlab-ci/src/gen_gitlab_cargo_pipeline/test_data/all_crates_on_master/before/rs/root/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "root"
33
version = "0.1.0"
44
authors = ["The Internet Computer Project Developers"]
5-
edition = "2018"
5+
edition = "2021"
66

77
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
88

gitlab-ci/src/gen_gitlab_cargo_pipeline/test_data/allow_crate_to_fail/after/rs/bar/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "bar"
33
version = "0.1.0"
44
authors = ["The Internet Computer Project Developers"]
5-
edition = "2018"
5+
edition = "2021"
66

77
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
88

gitlab-ci/src/gen_gitlab_cargo_pipeline/test_data/allow_crate_to_fail/after/rs/foo/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "foo"
33
version = "0.1.0"
44
authors = ["The Internet Computer Project Developers"]
5-
edition = "2018"
5+
edition = "2021"
66

77
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
88

gitlab-ci/src/gen_gitlab_cargo_pipeline/test_data/allow_crate_to_fail/before/rs/bar/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "bar"
33
version = "0.1.0"
44
authors = ["The Internet Computer Project Developers"]
5-
edition = "2018"
5+
edition = "2021"
66

77
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
88

gitlab-ci/src/gen_gitlab_cargo_pipeline/test_data/allow_crate_to_fail/before/rs/foo/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "foo"
33
version = "0.1.0"
44
authors = ["The Internet Computer Project Developers"]
5-
edition = "2018"
5+
edition = "2021"
66

77
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
88

gitlab-ci/src/gen_gitlab_cargo_pipeline/test_data/change_crate_not_in_workspace/after/rs/bar/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "bar"
33
version = "0.1.0"
44
authors = ["The Internet Computer Project Developers"]
5-
edition = "2018"
5+
edition = "2021"
66

77
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
88

gitlab-ci/src/gen_gitlab_cargo_pipeline/test_data/change_crate_not_in_workspace/after/rs/foo/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "foo"
33
version = "0.1.0"
44
authors = ["The Internet Computer Project Developers"]
5-
edition = "2018"
5+
edition = "2021"
66

77
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
88

gitlab-ci/src/gen_gitlab_cargo_pipeline/test_data/change_crate_not_in_workspace/before/rs/bar/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "bar"
33
version = "0.1.0"
44
authors = ["The Internet Computer Project Developers"]
5-
edition = "2018"
5+
edition = "2021"
66

77
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
88

gitlab-ci/src/gen_gitlab_cargo_pipeline/test_data/change_crate_not_in_workspace/before/rs/foo/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "foo"
33
version = "0.1.0"
44
authors = ["The Internet Computer Project Developers"]
5-
edition = "2018"
5+
edition = "2021"
66

77
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
88

gitlab-ci/src/gen_gitlab_cargo_pipeline/test_data/change_one_crate/after/rs/foo/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "foo"
33
version = "0.1.0"
44
authors = ["The Internet Computer Project Developers"]
5-
edition = "2018"
5+
edition = "2021"
66

77
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
88

gitlab-ci/src/gen_gitlab_cargo_pipeline/test_data/change_one_crate/before/rs/foo/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "foo"
33
version = "0.1.0"
44
authors = ["The Internet Computer Project Developers"]
5-
edition = "2018"
5+
edition = "2021"
66

77
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
88

0 commit comments

Comments
 (0)