Browse Source

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.
tags/v1.94.0rc1
Patrick Cloke 7 months ago
committed by GitHub
parent
commit
c690fd16c4
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 0 deletions
  1. +1
    -0
      changelog.d/16394.misc
  2. +1
    -0
      pyproject.toml
  3. +2
    -0
      rust/Cargo.toml

+ 1
- 0
changelog.d/16394.misc View File

@@ -0,0 +1 @@
Update maturin configuration.

+ 1
- 0
pyproject.toml View File

@@ -92,6 +92,7 @@ skip_gitignore = true

[tool.maturin]
manifest-path = "rust/Cargo.toml"
module-name = "synapse.synapse_rust"

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


+ 2
- 0
rust/Cargo.toml View File

@@ -15,6 +15,8 @@ name = "synapse"
# tests/benchmarks.
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]
# This is where we tell maturin where to place the built library.
name = "synapse.synapse_rust"


Loading…
Cancel
Save