]> git.proxmox.com Git - rustc.git/blob - vendor/codespan/src/lib.rs
New upstream version 1.41.1+dfsg1
[rustc.git] / vendor / codespan / src / lib.rs
1 //! Utilities for working with source code and printing nicely formatted
2 //! diagnostic information like warnings and errors.
3 //!
4 //! # Optional Features
5 //!
6 //! Extra functionality is accessible by enabling feature flags. The features
7 //! currently available are:
8 //!
9 //! - **serialization** - Adds `Serialize` and `Deserialize` implementations
10 //! for use with `serde`
11 //! - **memory_usage** - Adds `HeapSizeOf` implementations for use with the
12 //! `heapsize` crate
13
14 mod file;
15 mod index;
16 mod location;
17 mod span;
18
19 pub use crate::file::{FileId, Files};
20 pub use crate::file::{LineIndexOutOfBoundsError, LocationError, SpanOutOfBoundsError};
21 pub use crate::index::{ByteIndex, ByteOffset};
22 pub use crate::index::{ColumnIndex, ColumnNumber, ColumnOffset};
23 pub use crate::index::{Index, Offset};
24 pub use crate::index::{LineIndex, LineNumber, LineOffset};
25 pub use crate::index::{RawIndex, RawOffset};
26 pub use crate::location::Location;
27 pub use crate::span::Span;