cargo-gamma-lib 0.1.0

Internal library for cargo-gamma
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

//! Coordinator access to the engine-owned source parser.

pub(crate) use cargo_gamma_engine::parse::{BOM, exceeds_nesting_limit, strip_bom};
pub use cargo_gamma_engine::parse::{Comment, CommentKind, SourceFile, without_bom};

/// The engine's nesting budget, re-exported for the tests that hold the proc-macro to the same one.
///
/// Named item by item rather than re-exported wholesale: a glob would silently take on whatever the
/// engine adds next, and a re-export is a promise about a specific set of names.
pub mod nesting {
    pub use cargo_gamma_engine::parse::nesting::{CHAIN_FACTOR, NESTING_LIMIT};
}