From 4d8bebb8349f0725fea17eb003c7601e15cae8e4 Mon Sep 17 00:00:00 2001
From: Chris Sellers <chris@cjdsellers.io>
Date: Sat, 16 Mar 2024 17:48:57 +1100
Subject: [PATCH] Standardize cargo manifest formatting

---
 nautilus_core/adapters/Cargo.toml   | 8 ++++++--
 nautilus_core/execution/Cargo.toml  | 8 ++++++--
 nautilus_core/indicators/Cargo.toml | 6 +++++-
 3 files changed, 17 insertions(+), 5 deletions(-)

diff --git a/nautilus_core/adapters/Cargo.toml b/nautilus_core/adapters/Cargo.toml
index 519cb242a0ee..6e3f1a343f3a 100644
--- a/nautilus_core/adapters/Cargo.toml
+++ b/nautilus_core/adapters/Cargo.toml
@@ -52,12 +52,16 @@ extension-module = [
   "nautilus-model/extension-module",
 ]
 databento = ["dep:databento", "dbn", "python"]
-ffi = ["nautilus-core/ffi", "nautilus-model/ffi", "nautilus-common/ffi"]
+ffi = [
+  "nautilus-common/ffi",
+  "nautilus-core/ffi",
+  "nautilus-model/ffi",
+]
 python = [
   "pyo3",
   "pyo3-asyncio",
+  "nautilus-common/python",
   "nautilus-core/python",
   "nautilus-model/python",
-  "nautilus-common/python",
 ]
 default = ["ffi", "python"]
diff --git a/nautilus_core/execution/Cargo.toml b/nautilus_core/execution/Cargo.toml
index 94333a9ac259..1c2df67aa6a9 100644
--- a/nautilus_core/execution/Cargo.toml
+++ b/nautilus_core/execution/Cargo.toml
@@ -39,12 +39,16 @@ extension-module = [
   "nautilus-core/extension-module",
   "nautilus-model/extension-module",
 ]
-ffi = ["nautilus-core/ffi", "nautilus-model/ffi", "nautilus-common/ffi"]
+ffi = [
+  "nautilus-common/ffi",
+  "nautilus-core/ffi",
+  "nautilus-model/ffi",
+]
 python = [
   "pyo3",
   "pyo3-asyncio",
+  "nautilus-common/python",
   "nautilus-core/python",
   "nautilus-model/python",
-  "nautilus-common/python",
 ]
 default = ["ffi", "python"]
diff --git a/nautilus_core/indicators/Cargo.toml b/nautilus_core/indicators/Cargo.toml
index 4c4bf01ef863..9fe555b848ea 100644
--- a/nautilus_core/indicators/Cargo.toml
+++ b/nautilus_core/indicators/Cargo.toml
@@ -26,5 +26,9 @@ extension-module = [
     "nautilus-core/extension-module",
     "nautilus-model/extension-module",
 ]
-python = ["pyo3", "nautilus-core/python", "nautilus-model/python"]
+python = [
+    "pyo3",
+    "nautilus-core/python",
+    "nautilus-model/python",
+]
 default = []