From 0b507add1f7eb7c3999b013a161e3c90c4b1d133 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sondre=20Lilleb=C3=B8=20Gundersen?= Date: Fri, 14 Oct 2022 08:50:03 +0200 Subject: [PATCH] chore: Update maturin config --- Cargo.toml | 6 +++++- pyproject.toml | 6 ++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 6fb5c23..f6ea4c9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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" @@ -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 diff --git a/pyproject.toml b/pyproject.toml index 114066b..b285b4b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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"