Cargo Features

[dependencies]
nphysics2d = { version = "0.24.0", default-features = false, features = ["use-wasm-bindgen", "dim2", "improved_fixed_point_support", "stdweb"] }
default = dim2, stdweb

These default features are set whenever nphysics2d is added without default-features = false somewhere in the dependency tree.

Enables stdweb of instant

use-wasm-bindgen = dim2, wasm-bindgen, web-sys

Enables wasm-bindgen of instant

dim2 default use-wasm-bindgen?

Affects revolute_constraint::RevoluteConstraint, nphysics2d::math

improved_fixed_point_support

Improve numerical stability when working with fixed-point numbers so we don't need a too large number of decimals.

Enables improved_fixed_point_support of ncollide2d ^0.32

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

stdweb wasm32-unknown-unknown asmjs-unknown-emscripten wasm32-unknown-emscripten default
wasm-bindgen wasm32-unknown-unknown asmjs-unknown-emscripten wasm32-unknown-emscripten use-wasm-bindgen?
web-sys wasm32-unknown-unknown asmjs-unknown-emscripten wasm32-unknown-emscripten use-wasm-bindgen?