Cargo Features
[dependencies]
opusic-sys = { version = "0.5.8", default-features = false, features = ["build-bindgen", "dred", "osce", "no-hardening", "no-stack-protector", "no-fortify-source", "bundled"] }
- default = bundled
-
The
bundledfeature is set by default wheneveropusic-sysis added withoutsomewhere in the dependency tree.default-features = false - build-bindgen = bindgen
-
Used internally to generate lib.rs
- dred
-
enable DRED
- osce
-
enable OSCE
- no-hardening
-
disable run-time checks that are cheap and safe for use in production.
- no-stack-protector
-
disable stack protection.
- no-fortify-source
-
disable protection against buffer overflows.
- bundled build default
-
bundle "libopus" instead of dynamic linking
Enables cmake
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.
- bindgen build build-bindgen?