diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7de828b7..ce388b05 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -55,6 +55,24 @@ jobs: if: matrix.cpp_compiler == 'g++' run: cargo xtask ci + build-nightly: + runs-on: ubuntu-latest + strategy: + fail-fast: false + env: + CXX: g++ + steps: + - uses: actions/checkout@v3 + - uses: jdx/mise-action@v3 + - name: Install Rust nightly + run: | + rustup toolchain install nightly + rustup default nightly + rustup target add wasm32-wasip1 + rustup component add rustfmt + - name: Run CI (g++ nightly) + run: cargo xtask ci + build-win: runs-on: windows-2022 steps: diff --git a/zngur-parser/src/conditional.rs b/zngur-parser/src/conditional.rs index 04a02a05..b1e15642 100644 --- a/zngur-parser/src/conditional.rs +++ b/zngur-parser/src/conditional.rs @@ -10,7 +10,7 @@ pub trait Matchable: core::fmt::Debug + Clone + PartialEq + Eq { } /// a type that can be matched against a Pattern -pub trait MatchableParse<'src>: Matchable { +pub(crate) trait MatchableParse<'src>: Matchable { /// return a parser for the item as it would appear in an `#if` or `#match` statement fn parser() -> impl ZngParser<'src, Self>; @@ -28,7 +28,7 @@ pub trait MatchPattern: core::fmt::Debug + Clone + PartialEq + Eq { } /// a Pattern that can be matched against -pub trait MatchPatternParse<'src>: MatchPattern { +pub(crate) trait MatchPatternParse<'src>: MatchPattern { /// return a parser for for the pattern fn parser() -> impl ZngParser<'src, Self>; } diff --git a/zngur-parser/src/lib.rs b/zngur-parser/src/lib.rs index 6d8cc899..0b2894a9 100644 --- a/zngur-parser/src/lib.rs +++ b/zngur-parser/src/lib.rs @@ -71,7 +71,10 @@ type ZngParserExtra<'a> = type BoxedZngParser<'a, Item> = chumsky::Boxed<'a, 'a, ParserInput<'a>, Item, ZngParserExtra<'a>>; /// Effective trait alias for verbose chumsky Parser Trait -trait ZngParser<'a, Item>: Parser<'a, ParserInput<'a>, Item, ZngParserExtra<'a>> + Clone {} +pub(crate) trait ZngParser<'a, Item>: + Parser<'a, ParserInput<'a>, Item, ZngParserExtra<'a>> + Clone +{ +} impl<'a, T, Item> ZngParser<'a, Item> for T where T: Parser<'a, ParserInput<'a>, Item, ZngParserExtra<'a>> + Clone {