Cargo Features
[dependencies]
argmin = { version = "0.11.0", default-features = false, features = ["rand", "wasm-bindgen", "serde1", "full", "rayon"] }
- default full? = rand
-
The
randfeature is set by default wheneverargminis added withoutsomewhere in the dependency tree.default-features = false - rand default
-
Enables rand, rand of argmin-math
Affects
solver::particleswarm,solver::simulatedannealing… - wasm-bindgen
-
getrandom:
Optional backend: wasm_js
This flag enables the wasm_js backend and uses it by default on wasm32 where the target_os is unknown. The getrandom_backend cfg may override this.
WARNING: It is highly recommended to enable this feature only for binary crates and tests,
i.e. avoid unconditionally enabling it in library crates. - serde1 full? = serde
-
Enables serde of rand_xoshiro
- full = ctrlc, default, serde1
-
When adding new features, please consider adding them to either
full(for users) or_full_dev(only for local development, testing and computing test coverage).
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.