Cargo Features

[dependencies]
rigetti-pyo3 = { version = "0.3.4", default-features = false, features = ["complex", "indexmap", "extension-module", "time"] }
default = complex, time

These default features are set whenever rigetti-pyo3 is added without default-features = false somewhere in the dependency tree.

complex default = num-complex, num-traits

Enables num-complex of pyo3 ^0.20

indexmap

Enables indexmap, indexmap of pyo3 ^0.20

extension-module

Enables extension-module of pyo3 ^0.20

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.

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.

num-complex complex
num-traits complex
time default

Enables time

time has a "stable minus two MSRV" policy, which doesn't jive with our more permissive MSRV https://github.com/time-rs/time/discussions/535

Affects rigetti-pyo3::datetime