spade_codespan/
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
12#![forbid(unsafe_code)]
13
14mod file;
15mod index;
16mod location;
17mod span;
18
19pub use crate::file::{FileId, Files};
20pub use crate::index::{ByteIndex, ByteOffset};
21pub use crate::index::{ColumnIndex, ColumnNumber, ColumnOffset};
22pub use crate::index::{Index, Offset};
23pub use crate::index::{LineIndex, LineNumber, LineOffset};
24pub use crate::index::{RawIndex, RawOffset};
25pub use crate::location::Location;
26pub use crate::span::Span;