Cargo Features
nautilus-model has no features set by default.
[dependencies]
nautilus-model = { version = "0.54.0", features = ["extension-module", "ffi", "python", "stubs", "high-precision", "defi"] }
- extension-module = python
-
Enables extension-module of nautilus-core and pyo3
pyo3:
Deprecated: use the
PYO3_BUILD_EXTENSION_MODULEenvironment variable when building a Python extension module (set automatically bysetuptools-rustandmaturin). - ffi = cbindgen
-
Enables ffi of nautilus-core
Affects
nautilus-model::ffi,data::drop_cvec_pycapsule… - python extension-module? = pyo3, pyo3-stub-gen
-
Enables python of nautilus-core
Affects
nautilus-model::python… - stubs = rstest
- high-precision defi?
-
Affects
fixed::FIXED_PRECISION,fixed::PRECISION_BYTES,fixed::FIXED_SIZE_BINARY,fixed::FIXED_SCALAR,fixed::PRECISION_DIFF_SCALAR,money::MoneyRaw,money::MONEY_MAX,money::MONEY_MIN,price::PriceRaw,price::PRICE_MAX,price::PRICE_MIN,price::decode_raw_price_i64,quantity::QuantityRaw,quantity::QUANTITY_MAX… - defi = alloy-primitives, high-precision
-
DeFi domain model requires 18-decimal wei precision, implying
high-precisionAffects
venue::validate_blockchain_venue,nautilus-model::defi,python::defi…
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.
- alloy-primitives defi?
- pyo3 extension-module? python?
- pyo3-stub-gen python?
- rstest stubs?
- cbindgen build ffi?