colored-rs / colored

(Rust) Coloring terminal so simple you already know how to do it !
Mozilla Public License 2.0
1.73k stars 83 forks source link

Add edition in ```Cargo.toml``` for future compatibility #111

Closed mrquantumoff closed 2 years ago

mrquantumoff commented 2 years ago

In future editions of Rust, some parts of the code may get syntax errors, to avoid it I suggest adding the "2021" edition in Cargo.toml

kurtlawrence commented 2 years ago

I believe editions' are on a per crate basis. https://doc.rust-lang.org/edition-guide/editions/index.html

mrquantumoff commented 2 years ago

I am 99% sure that they are indeed specified per crate, because I use plenty of crates with 2018 edition in my projects that have 2021 edition specified