92 major breaking releases
727.0.0 | Jul 6, 2021 |
---|---|
726.0.0 | Jun 29, 2021 |
725.0.0 | Jun 22, 2021 |
724.0.0 | Jun 15, 2021 |
635.0.0 | Dec 31, 2019 |
#1213 in Rust patterns
613 downloads per month
Used in 26 crates
(14 directly)
1MB
22K
SLoC
Source positions and related helper functions.
Important concepts in this module include:
- the span, represented by
SpanData
and related types; - source code as represented by a
SourceMap
; and - interned strings, represented by
Symbol
s, with some common symbols available statically in the [sym
] module.
Unlike most compilers, the span contains not only the position in the source code, but also various other metadata,
such as the edition and macro hygiene. This metadata is stored in SyntaxContext
and ExpnData
.
Note
This API is completely unstable and subject to change.
Dependencies
~8–17MB
~258K SLoC