From 6d8ea3da7fab6c0fb04b07737a03c2e46a05b924 Mon Sep 17 00:00:00 2001 From: Chris Sellers Date: Fri, 1 Mar 2024 18:29:28 +1100 Subject: [PATCH] Refine Rust manifests --- nautilus_core/pyo3/Cargo.toml | 13 +++++++------ tests/unit_tests/model/objects/test_state_pyo3.py | 1 + 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/nautilus_core/pyo3/Cargo.toml b/nautilus_core/pyo3/Cargo.toml index dc3713f369db..19ddeeb377d4 100644 --- a/nautilus_core/pyo3/Cargo.toml +++ b/nautilus_core/pyo3/Cargo.toml @@ -11,23 +11,24 @@ name = "nautilus_pyo3" crate-type = ["cdylib"] [dependencies] -nautilus-adapters = { path = "../adapters", features = ["databento"] } -nautilus-core = { path = "../core" , features = ["python"] } +nautilus-accounting = { path = "../accounting", features = ["python"] } +nautilus-adapters = { path = "../adapters", features = ["python", "databento"] } nautilus-common = { path = "../common" , features = ["python"] } +nautilus-core = { path = "../core" , features = ["python"] } nautilus-indicators = { path = "../indicators" , features = ["python"] } nautilus-infrastructure = { path = "../infrastructure", features = ["python"] } nautilus-model = { path = "../model" , features = ["python"] } -nautilus-persistence = { path = "../persistence" , features = ["python"] } nautilus-network = { path = "../network" , features = ["python"] } -nautilus-accounting = { path = "../accounting", features = ["python"] } +nautilus-persistence = { path = "../persistence" , features = ["python"] } pyo3 = { workspace = true } [features] extension-module = [ "pyo3/extension-module", + "nautilus-accounting/extension-module", "nautilus-adapters/extension-module", - "nautilus-core/extension-module", "nautilus-common/extension-module", + "nautilus-core/extension-module", "nautilus-indicators/extension-module", "nautilus-infrastructure/extension-module", "nautilus-model/extension-module", @@ -35,8 +36,8 @@ extension-module = [ ] ffi = [ "nautilus-adapters/ffi", - "nautilus-core/ffi", "nautilus-common/ffi", + "nautilus-core/ffi", "nautilus-model/ffi", "nautilus-persistence/ffi", ] diff --git a/tests/unit_tests/model/objects/test_state_pyo3.py b/tests/unit_tests/model/objects/test_state_pyo3.py index 22d36f7a03a8..8efbef7b08ff 100644 --- a/tests/unit_tests/model/objects/test_state_pyo3.py +++ b/tests/unit_tests/model/objects/test_state_pyo3.py @@ -12,6 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. # ------------------------------------------------------------------------------------------------- + from nautilus_trader.core.nautilus_pyo3 import AccountState from nautilus_trader.test_kit.rust.events_pyo3 import TestEventsProviderPyo3