Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit c690fd1

Browse files
authored
Use modern config for maturin. (#16394)
This allows maturin >= 0.15 to build the properly named shared library object. For now the old configuration is also kept to allow for older maturin installs to be used.
1 parent 11c6cc1 commit c690fd1

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

changelog.d/16394.misc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Update maturin configuration.

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ skip_gitignore = true
9292

9393
[tool.maturin]
9494
manifest-path = "rust/Cargo.toml"
95+
module-name = "synapse.synapse_rust"
9596

9697
[tool.poetry]
9798
name = "matrix-synapse"

rust/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ name = "synapse"
1515
# tests/benchmarks.
1616
crate-type = ["lib", "cdylib"]
1717

18+
# This is deprecated, see tool.maturin in pyproject.toml.
19+
# It is left here for compatibilty with maturin < 0.15.
1820
[package.metadata.maturin]
1921
# This is where we tell maturin where to place the built library.
2022
name = "synapse.synapse_rust"

0 commit comments

Comments
 (0)