diff --git a/.cargo/config.toml b/.cargo/config.toml new file mode 100644 index 00000000..ed733750 --- /dev/null +++ b/.cargo/config.toml @@ -0,0 +1,5 @@ +[unstable] +public-dependency = true + +[env] +RUST_TEST_THREADS = "2" \ No newline at end of file diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 846746b6..8671454e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,6 +10,22 @@ env: CARGO_TERM_COLOR: always jobs: + fmt: + name: Format + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - run: rustup toolchain install nightly --profile minimal --component rustfmt + - run: cargo +nightly fmt -- --check + + clippy: + name: Clippy + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - run: rustup toolchain install stable --profile minimal --component clippy + - run: cargo clippy --no-deps -- -D warnings + test: name: CI runs-on: ubuntu-latest @@ -35,15 +51,12 @@ jobs: - name: Rust Cache uses: Swatinem/rust-cache@v2 - - name: Install Tools - run: cargo install -q cargo-tarpaulin || true - - - name: Check Format - run: cargo fmt --check + # - name: Install Tools + # run: cargo install -q cargo-tarpaulin || true - - name: Clippy Lint - run: cargo clippy --no-deps --features=wgpu + # - name: Build and Test + # run: | + # cargo tarpaulin --features=wgpu --coveralls=${{ secrets.COVERALLS_REPO_TOKEN }} - name: Build and Test - run: | - cargo tarpaulin --features=wgpu --coveralls=${{ secrets.COVERALLS_REPO_TOKEN }} + run: cargo test --features=wgpu diff --git a/.run/Docs.run.xml b/.run/Docs.run.xml index ace8499e..1d5e7136 100644 --- a/.run/Docs.run.xml +++ b/.run/Docs.run.xml @@ -18,7 +18,6 @@