Skip to content

Commit

Permalink
chore: Update maturin config
Browse files Browse the repository at this point in the history
  • Loading branch information
sondrelg committed Oct 14, 2022
1 parent 25cfc1a commit 0b507ad
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "self-limiters"
version = "0.0.0" # This is set on release in the release workflow
edition = "2021"
include = ["/src"]
include = ["/src", "pyproject.toml"]

[lib]
name = "self_limiters"
Expand All @@ -19,3 +19,7 @@ redis = { version=">=0.21.5", features = ["tokio-comp"] }
[dev-dependencies]
cargo-llvm-cov = { version = ">=0.4.1" }
clippy = { version = ">=0.0.302" }

[profile.release]
opt-level = "s"
overflow-checks = true
6 changes: 6 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ classifiers = [
'Intended Audience :: Developers',
]

[tool.maturin]
bindings = "pyo3"
profile = "release"
strip = true
frozen = true

[project.urls]
releases = "https://github.com/sondrelg/self-limiters/releases"

Expand Down

0 comments on commit 0b507ad

Please sign in to comment.