-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmod.rs
25 lines (21 loc) · 794 Bytes
/
mod.rs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
//! If we start Cargo with bootstrap feature we will load parser code checked
//! out from the git `main` branch.
//!
//! In regular builds parser code from the source tree will be used.
// TODO: Allow clippy warning for unit_arg when Layout is removed from actions.
#[allow(clippy::unit_arg)]
#[rustfmt::skip]
#[cfg(not(feature="bootstrap"))]
pub(crate) mod rustemo;
// Relax these checks as we have generated code from the grammar.
#[allow(non_camel_case_types, clippy::enum_variant_names)]
#[rustfmt::skip]
#[cfg(not(feature = "bootstrap"))]
pub(crate) mod rustemo_actions;
#[allow(clippy::unit_arg)]
#[cfg(feature = "bootstrap")]
rustemo_mod! {pub(crate) rustemo, "/src/lang"}
#[cfg(feature = "bootstrap")]
rustemo_mod! {pub(crate) rustemo_actions, "/src/lang"}
#[cfg(test)]
mod tests;