diff --git a/.prettierignore b/.prettierignore index 8078b65a..1129ebab 100644 --- a/.prettierignore +++ b/.prettierignore @@ -4,4 +4,6 @@ pkg3d gen2d gen3d docs -target \ No newline at end of file +target +**/CHANGELOG.md +**/README.md \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index b61a7977..fe4f3154 100644 --- a/package-lock.json +++ b/package-lock.json @@ -256,6 +256,7 @@ "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.7.1.tgz", "integrity": "sha512-ujppO+MkdPqoVINuDFDRLClm7D78qbDt0/NR+wp5FqEZOoTNAjPHWj17QRhu7geIHJfcNhRk1XVQmF8Bp3ye+g==", "dev": true, + "license": "MIT", "bin": { "prettier": "bin-prettier.js" }, diff --git a/rapier2d/Cargo.toml b/rapier2d/Cargo.toml index 4b7e17fd..eda2b59c 100644 --- a/rapier2d/Cargo.toml +++ b/rapier2d/Cargo.toml @@ -21,6 +21,10 @@ path = "../src/lib.rs" crate-type = ["cdylib", "rlib"] required-features = ["dim2"] +[lints] +rust.unexpected_cfgs = { level = "warn", check-cfg = [ + 'cfg(feature, values("dim3"))', +] } [dependencies] rapier2d = { version = "0.22", features = [ diff --git a/rapier2d/package-lock.json b/rapier2d/package-lock.json index d705fed1..bd032d8a 100644 --- a/rapier2d/package-lock.json +++ b/rapier2d/package-lock.json @@ -650,4 +650,4 @@ "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" } } -} \ No newline at end of file +} diff --git a/rapier2d/package.json b/rapier2d/package.json index 6a1c1567..5b60e8f7 100644 --- a/rapier2d/package.json +++ b/rapier2d/package.json @@ -18,4 +18,4 @@ "dependencies": { "wasm-pack": "^0.12.1" } -} \ No newline at end of file +} diff --git a/rapier3d/Cargo.toml b/rapier3d/Cargo.toml index f3f4fc8d..18b6729b 100644 --- a/rapier3d/Cargo.toml +++ b/rapier3d/Cargo.toml @@ -21,6 +21,10 @@ path = "../src/lib.rs" crate-type = ["cdylib", "rlib"] required-features = ["dim3"] +[lints] +rust.unexpected_cfgs = { level = "warn", check-cfg = [ + 'cfg(feature, values("dim2"))', +] } [dependencies] rapier3d = { version = "0.22.0", features = [ diff --git a/rapier3d/package-lock.json b/rapier3d/package-lock.json index e98f48f8..e154288b 100644 --- a/rapier3d/package-lock.json +++ b/rapier3d/package-lock.json @@ -650,4 +650,4 @@ "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" } } -} \ No newline at end of file +} diff --git a/rapier3d/package.json b/rapier3d/package.json index 95a8b846..6a2e0b07 100644 --- a/rapier3d/package.json +++ b/rapier3d/package.json @@ -18,4 +18,4 @@ "dependencies": { "wasm-pack": "^0.12.1" } -} \ No newline at end of file +} diff --git a/testbed2d/static/index.html b/testbed2d/static/index.html index f8676fd0..6df5b069 100644 --- a/testbed2d/static/index.html +++ b/testbed2d/static/index.html @@ -1,4 +1,4 @@ - +
diff --git a/testbed3d/static/index.html b/testbed3d/static/index.html index 26688b67..d2a61221 100644 --- a/testbed3d/static/index.html +++ b/testbed3d/static/index.html @@ -1,4 +1,4 @@ - +