# Rust 2021 Edition 계획

> Clean Markdown view of GeekNews topic #4241. Use the original source for factual precision when an external source URL is present.

## Metadata

- GeekNews HTML: [https://news.hada.io/topic?id=4241](https://news.hada.io/topic?id=4241)
- GeekNews Markdown: [https://news.hada.io/topic/4241.md](https://news.hada.io/topic/4241.md)
- Type: news
- Author: [xguru](https://news.hada.io/@xguru)
- Published: 2021-05-12T11:29:04+09:00
- Updated: 2021-05-12T11:29:04+09:00
- Original source: [blog.rust-lang.org](https://blog.rust-lang.org/2021/05/11/edition-2021.html)
- Points: 9
- Comments: 0

## Topic Body

- Rust는 언어가 빠르게 발전하면서도 안정성을 유지할수 있도록 Edition 방식을 채택

ㅤ→ 하위호환이 안되는 기능들을 Opt-in 방식으로 에디션에 추가

ㅤ→ 2018 에디션에 추가된 async는 아직 최신 버전에서도 정식 키워드가 아님

ㅤ→ 특정 에디션에서 만들어진 Crate는 다른 에디션과 호환해야함

ㅤ→ 에디션 이관은 쉽고 대부분 자동화

- 2021 에디션에 추가될 기능들

ㅤ→ Prelude(무조건 임포트되는 표준 라이브러리)에 추가 : TryInfo, TryFrom, FromIterator

ㅤ→ 새 Cargo Feature Resolver (버전 2)가 기본 값

ㅤ→ Array 용 IntoIterator

ㅤ→ Closure 가 실제 사용하는 필드만 캡쳐

ㅤ→ 더 일관적인 panic!() 매크로

ㅤ→ 미래에 추가될 문법을 위해서 접두사 붇은 식별자와 리터럴에 대한 구문을 예약

ㅤ→ bare-trait-objects, ellipsis-inclusive-range-patterns 경고를 에러로

ㅤ→ 매크로에서 OR (|) 사용

## Comments



_No public comments on this page._
