1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
#![forbid(unsafe_code)]
#![deny(rust_2018_idioms)]

pub mod file;
pub mod graph;

pub use graph::Graph;

pub const GENERATION_NUMBER_INFINITY: u32 = 0xffff_ffff;
pub const GENERATION_NUMBER_MAX: u32 = 0x3fff_ffff;

/// The maximum number of commits that can be stored in a commit graph.
pub const MAX_COMMITS: u32 = (1 << 30) + (1 << 29) + (1 << 28) - 1;