Skip to content

Commit 1151bed

Browse files
committed
Use custom cargo profile in the hello-world example
1 parent bf0777a commit 1151bed

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

examples/hello-world/Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,7 @@ edition = "2018"
66
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
77

88
[dependencies]
9+
10+
[profile.release-lto]
11+
inherits = "release"
12+
lto = true

examples/hello-world/setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
{"hello-world": "hello_world.hello-world"},
1111
binding=Binding.Exec,
1212
script=True,
13+
args=["--profile", "release-lto"],
1314
)
1415
],
1516
# rust extensions are not zip safe, just like C-extensions.

0 commit comments

Comments
 (0)