Skip to content

Commit

Permalink
try to optimize for size
Browse files Browse the repository at this point in the history
  • Loading branch information
BaptisteFoy committed Jan 22, 2025
1 parent 2f917ed commit fddf037
Show file tree
Hide file tree
Showing 3 changed files with 111 additions and 42 deletions.
4 changes: 3 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

import cmake
from setuptools_rust import Binding
from setuptools_rust import RustExtension
from setuptools_rust import RustExtension, Strip


from setuptools import Extension, find_packages, setup # isort: skip
Expand Down Expand Up @@ -665,13 +665,15 @@ def get_exts_for(name):
py_limited_api="auto",
binding=Binding.PyO3,
debug=os.getenv("_DD_RUSTC_DEBUG") == "1",
strip=Strip.All,
),
RustExtension(
"ddtrace.internal.config._config",
path="src/config/Cargo.toml",
py_limited_api="auto",
binding=Binding.PyO3,
debug=os.getenv("_DD_RUSTC_DEBUG") == "1",
strip=Strip.All,
),
],
)
145 changes: 106 additions & 39 deletions src/config/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/config/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ edition = "2021"
[profile.release]
lto = true
strip = "debuginfo"
opt-level = 3
opt-level = "z"

[dependencies]
pyo3 = { version = "0.22.3", features = ["extension-module"] }
datadog-library-config = { git = "https://github.com/DataDog/libdatadog", tag = "v15.0.0" }
datadog-library-config = { git = "https://github.com/DataDog/libdatadog", rev = "a86eefa0807abc8d3437bf5e9359b8a730825e78", default-features = false }

[build-dependencies]
pyo3-build-config = "0.21.2"
Expand Down

0 comments on commit fddf037

Please sign in to comment.