Skip to content

Commit 4304050

Browse files
committed
Bump edition and add rust-version field to Cargo.toml
1 parent ee09f64 commit 4304050

File tree

7 files changed

+14
-8
lines changed

7 files changed

+14
-8
lines changed

Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ Random number generators and other randomness functionality.
1313
keywords = ["random", "rng"]
1414
categories = ["algorithms", "no-std"]
1515
autobenches = true
16-
edition = "2018"
16+
edition = "2021"
17+
rust-version = "1.56"
1718
include = ["src/", "LICENSE-*", "README.md", "CHANGELOG.md", "COPYRIGHT"]
1819

1920
[package.metadata.docs.rs]

rand_chacha/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ ChaCha random number generator
1212
"""
1313
keywords = ["random", "rng", "chacha"]
1414
categories = ["algorithms", "no-std"]
15-
edition = "2018"
15+
edition = "2021"
16+
rust-version = "1.56"
1617

1718
[dependencies]
1819
rand_core = { path = "../rand_core", version = "0.6.0" }

rand_core/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ Core random number generator traits and tools for implementation.
1212
"""
1313
keywords = ["random", "rng"]
1414
categories = ["algorithms", "no-std"]
15-
edition = "2018"
15+
edition = "2021"
16+
rust-version = "1.56"
1617

1718
[package.metadata.docs.rs]
1819
# To build locally:

rand_distr/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ Sampling from random number distributions
1212
"""
1313
keywords = ["random", "rng", "distribution", "probability"]
1414
categories = ["algorithms", "no-std"]
15-
edition = "2018"
15+
edition = "2021"
16+
rust-version = "1.56"
1617
include = ["src/", "LICENSE-*", "README.md", "CHANGELOG.md", "COPYRIGHT"]
1718

1819
[features]

rand_distr/benches/Cargo.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ version = "0.0.0"
44
authors = ["The Rand Project Developers"]
55
license = "MIT OR Apache-2.0"
66
description = "Criterion benchmarks of the rand_distr crate"
7-
edition = "2018"
7+
edition = "2021"
8+
rust-version = "1.56"
89
publish = false
910

1011
[workspace]
@@ -19,4 +20,4 @@ rand_pcg = { path = "../../rand_pcg/" }
1920
[[bench]]
2021
name = "distributions"
2122
path = "src/distributions.rs"
22-
harness = false
23+
harness = false

rand_pcg/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ Selected PCG random number generators
1212
"""
1313
keywords = ["random", "rng", "pcg"]
1414
categories = ["algorithms", "no-std"]
15-
edition = "2018"
15+
edition = "2021"
16+
rust-version = "1.56"
1617

1718
[features]
1819
serde1 = ["serde"]

rustfmt.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ where_single_line = true
1919
# struct_field_align_threshold = 20
2020

2121
# Compatibility:
22-
edition = "2018" # we require compatibility back to 1.32.0
22+
edition = "2021"
2323

2424
# Misc:
2525
inline_attribute_width = 80

0 commit comments

Comments
 (0)