.toml
Code
TOML (Tom's Obvious Minimal Language)
TOML은 명확성과 간결함을 위해 설계된 설정 파일 형식입니다. 해시 테이블에 모호하지 않게 매핑되며, 사람이 읽고 쓰기 쉽습니다. TOML은 Rust의 Cargo.toml과 Python의 pyproject.toml의 표준 형식입니다.
MIME 타입
application/toml
유형
텍스트
압축
무손실
장점
- + Unambiguous — no implicit type coercion unlike YAML
- + Native datetime support without quoting
- + Simple, flat structure that maps directly to hash tables
- + Standard in Rust and Python ecosystems
단점
- − Deeply nested data structures become verbose
- − Less widespread tool support compared to JSON and YAML
- − No standard way to represent null values
.TOML 사용 시점
설정 파일에 TOML을 사용하세요 — 특히 Rust(Cargo.toml) 및 Python(pyproject.toml) 생태계에서. 모호하지 않은 파싱이 중요한 경우에 이상적입니다.
기술 세부사항
TOML은 키-값 쌍, 테이블(대괄호 안의 섹션), 테이블 배열(이중 대괄호), datetime, 정수, 실수, 불리언, 문자열을 포함하는 네이티브 타입 값을 사용합니다. 들여쓰기는 중요하지 않습니다.
역사
Tom Preston-Werner(GitHub 공동 창립자)는 YAML과 JSON의 설정 파일 대안으로 2013년에 TOML을 만들었습니다. TOML 1.0은 광범위한 커뮤니티 의견을 거쳐 2021년 1월에 출시되었습니다.