Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
9 changes: 9 additions & 0 deletions .cursor/rules/general.mdc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
description:
globs:
alwaysApply: true
---

latest msrv is 1.89.0

After doing any task run ./ci.sh
23 changes: 9 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Read rust-toolchain.toml
id: toolchain
shell: bash
run: |
TOOLCHAIN=$(cat rust-toolchain.toml | grep 'channel' | cut -d'"' -f2)
echo "version=${TOOLCHAIN}" >> "$GITHUB_OUTPUT"
- uses: dtolnay/rust-toolchain@master
- uses: dtolnay/rust-toolchain@nightly
with:
toolchain: ${{ steps.toolchain.outputs.version }}
components: rustfmt
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: "true"
- name: Check formatting
run: cargo fmt --all -- --check
run: cargo +nightly fmt --all -- --check

clippy:
name: Clippy
Expand Down Expand Up @@ -69,24 +63,23 @@ jobs:
- name: Check documentation
env:
RUSTDOCFLAGS: -D warnings
run: cargo doc --no-deps --all-features
run: cargo doc --no-deps --all-features --workspace

coverage:
name: Code Coverage
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
- uses: dtolnay/rust-toolchain@nightly
with:
toolchain: nightly
components: llvm-tools-preview
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: "true"
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov
- name: Generate code coverage
run: cargo llvm-cov --all-features --workspace --branch --lcov --output-path lcov.info
run: cargo +nightly llvm-cov --all-features --workspace --branch --lcov --output-path lcov.info
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
with:
Expand Down Expand Up @@ -121,5 +114,7 @@ jobs:
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: "true"
- name: Install cargo-nextest
uses: taiki-e/install-action@nextest
- name: Run tests
run: cargo test --all-features
run: cargo nextest run --all-features
13 changes: 11 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,20 @@ perf.data
# Misc
/extractor/build
/extractor/out
vendor/
# vendor/
/extractor/classes
/extractor/run
/extractor/bin
.trigger-release
.trigger-debug
.trigger
valence/
# valence/

proxy.crt
proxy_private_key.pem
root_ca.crt
root_ca.pem
root_ca.srl
server.crt
server_private_key.pem
logs
Loading
Loading