`std::prelude::v2` with `TryFrom`/`TryInto` on edition 2021?

There's also another possible solution: Add a preludes option to Cargo.toml.

preludes = ["std::prelude::v2"]

This would also allow adding custom preludes, such as diesel::prelude or crate::my_prelude.

Has this been proposed before?

2 Likes