From ac6f513352e4ed00a1f845126d91c529a71ab4c2 Mon Sep 17 00:00:00 2001 From: Datawater <86855332+datawater@users.noreply.github.com> Date: Fri, 28 Jun 2024 20:16:13 +0400 Subject: [PATCH] Removed the benchmarking feature wall. Changed the github actions config a bit --- .github/workflows/rust.yml | 4 ++++ src/main.rs | 1 + tests/pgn/ast.rs | 2 -- tests/pgn/lex.rs | 2 -- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 12c5913..7d6ccfa 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -17,6 +17,10 @@ jobs: runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v4 + - uses: actions-rs/toolchain@v1 + with: + toolchain: nightly + override: true - name: Build run: cargo build --verbose - name: Run tests diff --git a/src/main.rs b/src/main.rs index 6eca34e..5f910e9 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,6 +1,7 @@ // TODO: Define and Write documentation for the CMBR Standard. // TODO: Seperate the cli and libcmbr #![allow(non_upper_case_globals)] +#![feature(test)] mod cmbr; mod eval_args; diff --git a/tests/pgn/ast.rs b/tests/pgn/ast.rs index ca98981..c3a037e 100644 --- a/tests/pgn/ast.rs +++ b/tests/pgn/ast.rs @@ -1,5 +1,3 @@ -#[cfg(feature = "benchmark")] -#[feature(test)] extern crate test; #[cfg(test)] diff --git a/tests/pgn/lex.rs b/tests/pgn/lex.rs index e264dd9..a8b1f04 100644 --- a/tests/pgn/lex.rs +++ b/tests/pgn/lex.rs @@ -1,5 +1,3 @@ -#[cfg(feature = "benchmark")] -#[feature(test)] extern crate test; #[cfg(test)]