Skip to content

Commit 1f58338

Browse files
committed
Replace 'binaries' with 'bins' in pyproject.toml config
1 parent 103993f commit 1f58338

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/hello-world-pyprojecttoml/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ py-limited-api = "auto" # Default value, can be omitted
2323
binding = "PyO3" # Default value, can be omitted
2424
# See reference for RustExtension in https://setuptools-rust.readthedocs.io/en/latest/reference.html
2525

26-
[[tool.setuptools-rust.binaries]]
26+
[[tool.setuptools-rust.bins]]
2727
# Rust executable to be installed in `$venv/bin`
2828
target = "print-hello" # Needs to match bin.name in Cargo.toml
2929
args = ["--profile", "release-lto"] # Extra args for Cargo

setuptools_rust/setuptools_ext.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ def pyprojecttoml_config(dist: Distribution) -> None:
298298

299299
if cfg:
300300
modules = map(partial(_create, RustExtension), cfg.get("ext-modules", []))
301-
binaries = map(partial(_create, RustBin), cfg.get("binaries", []))
301+
binaries = map(partial(_create, RustBin), cfg.get("bins", []))
302302
dist.rust_extensions = [*modules, *binaries] # type: ignore[attr-defined]
303303
rust_extensions(dist, "rust_extensions", dist.rust_extensions) # type: ignore[attr-defined]
304304

0 commit comments

Comments
 (0)