Cargo Features

[dependencies]
nautilus-infrastructure = { version = "0.45.0", default-features = false, features = ["extension-module", "python", "redis", "postgres"] }
default = redis

redis needed by nautilus_trader by default for now

extension-module

Enables extension-module of nautilus-common, nautilus-core, nautilus-model, and pyo3

pyo3:

Use this feature when building an extension module.
It tells the linker to keep the python symbols unresolved,
so that the module can also be used with statically linked python interpreters.

python = pyo3, pyo3-async-runtimes

Affects nautilus-infrastructure::python

redis default

Enables redis

Affects nautilus-infrastructure::redis, python::redis

postgres

Enables sqlx

Affects nautilus-infrastructure::sql, python::sql

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.

pyo3 extension-module? python?
pyo3-async-runtimes python?