Skip to content

Commit

Permalink
Merge pull request #146 from finnbear/msrv
Browse files Browse the repository at this point in the history
Find actual MSRV
  • Loading branch information
finnbear authored Jan 19, 2025
2 parents b204e04 + 17f279f commit 8a8a1f7
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 1 deletion.
17 changes: 17 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,23 @@ jobs:
- name: Run clippy (fuzzer)
run: cargo clippy --manifest-path fuzz/Cargo.toml --all-targets --all-features -- -D warnings

msrv:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly

- name: Install cargo-msrv
uses: baptiste0928/cargo-install@v3
with:
crate: cargo-msrv
locked: false

- name: Verify MSRV
run: cargo msrv verify --ignore-lockfile

coverage:
runs-on: ubuntu-latest
steps:
Expand Down
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name = "bvh"
description = "A fast BVH using SAH"
version = "0.10.0"
edition = "2021"
rust-version = "1.65" # may raise to versions that are at least 1y old.
authors = [
"Sven-Hendrik Haase <[email protected]>",
"Alexander Dmitriev <[email protected]>",
Expand Down
9 changes: 9 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,12 @@ fuzz-max-three-shapes:
# that do not undergo mutations
fuzz-max-five-shapes:
MAX_SHAPES=5 cargo fuzz run fuzz

# find the current MSRV, if it is greater than or equal to
# the rust-version in Cargo.toml
find-msrv:
cargo msrv find --ignore-lockfile

# verify the rust-version in Cargo.toml is compatible
verify-msrv:
cargo msrv verify --ignore-lockfile
2 changes: 1 addition & 1 deletion src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ impl<T: BHValue, const D: usize> Bucket<T, D> {
}
}

pub fn joint_aabb_of_shapes<T: BHValue, const D: usize, Shape: BHShape<T, D>>(
pub(crate) fn joint_aabb_of_shapes<T: BHValue, const D: usize, Shape: BHShape<T, D>>(
indices: &[ShapeIndex],
shapes: &Shapes<Shape>,
) -> (Aabb<T, D>, Aabb<T, D>) {
Expand Down

0 comments on commit 8a8a1f7

Please sign in to comment.