Cargo Features
[dependencies]
coin_cbc = { version = "0.1.8", default-features = false, features = ["singlethread-cbc", "cbc-310"] }
- default = singlethread-cbc
-
The
singlethread-cbc
feature is set by default whenevercoin_cbc
is added without
somewhere in the dependency tree.default-features = false - singlethread-cbc default = lazy_static
-
The
singlethread-cbc
feature MUST be activated if this crate is going to be used with a cbc dynamic library that has not been explicitly compiled with-DCBC_THRED_SAFE
. For more information, see https://github.com/KardinalAI/coin_cbc/issues/9 - cbc-310
-
The cbc-310 feature activates features only available in Coin-OR Cbc version >= 3.10
Notably, this gives useful methods for interpreting linear problem solutions.
Using the methods protected by this flag will raise a runtime error when the target system has a version of libcbc older than 3.10.
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.