Cargo Features
[dependencies]
nng-sys = { version = "1.4.0-rc.0", default-features = false, features = ["build-nng", "build-bindgen", "cmake-unix", "cmake-vs2017-win64", "cmake-vs2019", "nng-stats", "no_std", "nng-tls", "nng-supplemental", "source-update-bindings"] }
- default = build-nng, nng-stats
-
These default features are set whenever
nng-sys
is added without
somewhere in the dependency tree.default-features = false - build-nng default cmake-ninja? cmake-unix? cmake-vs2017? cmake-vs2017-win64? cmake-vs2019? nng-stats nng-tls? = cmake
-
Whether or not to build the NNG library
- build-bindgen nng-compat? nng-supplemental? source-update-bindings? = bindgen
-
Whether or not to run bindgen
- cmake-unix = build-nng
-
Cmake generators
- cmake-ninja cmake-vs2017-win64 = build-nng
- cmake-vs2017 cmake-vs2019 = build-nng
- nng-stats default = build-nng
-
NNG Options
- no_std = cty
- nng-tls = build-nng
- nng-compat nng-supplemental = build-bindgen
- source-update-bindings = build-bindgen
-
source-
features should only be used when working with the source code (as opposed to using a crate) Updatesrc/bindings.rs
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.
- cty no_std?
- cmake build build-nng
- bindgen build build-bindgen?
-
Enables bindgen ^0.54