Where does rustc read default edition from?

· Users Rust Lang · July 17, 2026, 7:54 p.m.
Summary
This blog post explains where `rustc` reads its default edition from and emphasizes using Cargo to create new Rust projects. The author mentions that `rustc` defaults to the 2015 edition and discusses using environment variables to set editions, with a suggestion to create an alias for convenience.
AUTHOR
Sponsored
Zulip logo Zulip
Organized team chat for people who take work seriously. Topic-based threading keeps conversations focused.
Try Zulip
Become a sponsor →