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.pull/16401/head
parent
11c6cc1115
commit
c690fd16c4
|
@ -0,0 +1 @@
|
||||||
|
Update maturin configuration.
|
|
@ -92,6 +92,7 @@ skip_gitignore = true
|
||||||
|
|
||||||
[tool.maturin]
|
[tool.maturin]
|
||||||
manifest-path = "rust/Cargo.toml"
|
manifest-path = "rust/Cargo.toml"
|
||||||
|
module-name = "synapse.synapse_rust"
|
||||||
|
|
||||||
[tool.poetry]
|
[tool.poetry]
|
||||||
name = "matrix-synapse"
|
name = "matrix-synapse"
|
||||||
|
|
|
@ -15,6 +15,8 @@ name = "synapse"
|
||||||
# tests/benchmarks.
|
# tests/benchmarks.
|
||||||
crate-type = ["lib", "cdylib"]
|
crate-type = ["lib", "cdylib"]
|
||||||
|
|
||||||
|
# This is deprecated, see tool.maturin in pyproject.toml.
|
||||||
|
# It is left here for compatibilty with maturin < 0.15.
|
||||||
[package.metadata.maturin]
|
[package.metadata.maturin]
|
||||||
# This is where we tell maturin where to place the built library.
|
# This is where we tell maturin where to place the built library.
|
||||||
name = "synapse.synapse_rust"
|
name = "synapse.synapse_rust"
|
||||||
|
|
Loading…
Reference in New Issue