summary refs log tree commit diff
diff options
context:
space:
mode:
authorPatrick Cloke <clokep@users.noreply.github.com>2023-02-01 19:01:06 -0500
committerGitHub <noreply@github.com>2023-02-01 19:01:06 -0500
commitda8a9571131de8161eb2cccbb5d4ba23b1f5d85e (patch)
treebb0723e426e1d62c487badba9ff1e18f029f7280
parentAllow enabling the asyncio reactor in complement (#14858) (diff)
downloadsynapse-da8a9571131de8161eb2cccbb5d4ba23b1f5d85e.tar.xz
Make extension-module optional, but default. (#14965)
-rw-r--r--changelog.d/14965.misc1
-rw-r--r--rust/Cargo.toml6
2 files changed, 6 insertions, 1 deletions
diff --git a/changelog.d/14965.misc b/changelog.d/14965.misc
new file mode 100644
index 0000000000..3ae0537d96
--- /dev/null
+++ b/changelog.d/14965.misc
@@ -0,0 +1 @@
+Allow running `cargo` without the `extension-module` option.
diff --git a/rust/Cargo.toml b/rust/Cargo.toml
index cffaa5b51b..09e2bba5e5 100644
--- a/rust/Cargo.toml
+++ b/rust/Cargo.toml
@@ -23,13 +23,17 @@ name = "synapse.synapse_rust"
 anyhow = "1.0.63"
 lazy_static = "1.4.0"
 log = "0.4.17"
-pyo3 = { version = "0.17.1", features = ["extension-module", "macros", "anyhow", "abi3", "abi3-py37"] }
+pyo3 = { version = "0.17.1", features = ["macros", "anyhow", "abi3", "abi3-py37"] }
 pyo3-log = "0.7.0"
 pythonize = "0.17.0"
 regex = "1.6.0"
 serde = { version = "1.0.144", features = ["derive"] }
 serde_json = "1.0.85"
 
+[features]
+extension-module = ["pyo3/extension-module"]
+default = ["extension-module"]
+
 [build-dependencies]
 blake2 = "0.10.4"
 hex = "0.4.3"