File tree Expand file tree Collapse file tree 4 files changed +13
-2
lines changed
examples/hello-world-script Expand file tree Collapse file tree 4 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -10,3 +10,15 @@ edition = "2018"
1010[profile .release-lto ]
1111inherits = " release"
1212lto = true
13+
14+ [[bin ]]
15+ name = " hello-world-script"
16+ path = " rust/main.rs"
17+ # See https://doc.rust-lang.org/cargo/reference/cargo-targets.html#binaries
18+ #
19+ # If [[bin]] is not specified, but the file ``src/main.rs`` exists,
20+ # you can also rely on an implicit definition which will behave similarly to:
21+ #
22+ # [[bin]]
23+ # name = <package.name>
24+ # path = "src/main.rs"
Original file line number Diff line number Diff line change 11include Cargo.toml
2- recursive-include src *
2+ recursive-include rust *
33recursive-include python *
Original file line number Diff line number Diff line change @@ -13,6 +13,5 @@ find = { where = ["python"] }
1313[[tool .setuptools-rust .bins ]]
1414# Private Rust extension module to be nested into Python package
1515target = " hello-world-script" # Matches bin.name in Cargo.toml
16- # (or package.name if [[bin]] is missing and src/main.rs exists)
1716args = [" --profile" , " release-lto" ] # Extra args for Cargo
1817# See reference for RustBin in https://setuptools-rust.readthedocs.io/en/latest/reference.html
File renamed without changes.
You can’t perform that action at this time.
0 commit comments