dimforge / rapier

2D and 3D physics engines focused on performance.
https://rapier.rs
Apache License 2.0
3.96k stars 249 forks source link

Prefer individual `unexpected_cfgs` allow over global one #638

Closed Urgau closed 2 months ago

Urgau commented 4 months ago

This PR replace the global #![allow(unexpected_cfgs)] over individual ones in crates/*, so that the main library still gets the benefits of the lint.

This PR also remove obsolete asmjs cfg, since that target was removed some time ago from Rust.

sebcrozet commented 3 months ago

@Urgau Thank you for this PR! What is the benefit of allowing the lint in individual Cargo.toml (8 times) instead of lib.rs (only 2 times)?