Skip to content

Commit

Permalink
Replace 'binaries' with 'bins' in pyproject.toml config
Browse files Browse the repository at this point in the history
  • Loading branch information
abravalheri committed Aug 7, 2023
1 parent 103993f commit 1f58338
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/hello-world-pyprojecttoml/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ py-limited-api = "auto" # Default value, can be omitted
binding = "PyO3" # Default value, can be omitted
# See reference for RustExtension in https://setuptools-rust.readthedocs.io/en/latest/reference.html

[[tool.setuptools-rust.binaries]]
[[tool.setuptools-rust.bins]]
# Rust executable to be installed in `$venv/bin`
target = "print-hello" # Needs to match bin.name in Cargo.toml
args = ["--profile", "release-lto"] # Extra args for Cargo
Expand Down
2 changes: 1 addition & 1 deletion setuptools_rust/setuptools_ext.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ def pyprojecttoml_config(dist: Distribution) -> None:

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

Expand Down

0 comments on commit 1f58338

Please sign in to comment.