Skip to content

Commit 25cf518

Browse files
MaxGraeydcodeIO
authored andcommitted
Improve rust build of the n-body example (AssemblyScript#112)
1 parent 41289ac commit 25cf518

File tree

4 files changed

+5
-1
lines changed

4 files changed

+5
-1
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,3 @@ docs/
33
node_modules/
44
out/
55
raw/
6-
examples/n-body/rust/target/
1.12 KB
Binary file not shown.

examples/n-body/rust/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
target/

examples/n-body/rust/Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,7 @@ authors = ["MaxGraey <maxgraey@gmail.com>"]
66
[lib]
77
path = "src/lib.rs"
88
crate-type = ["cdylib"]
9+
10+
[profile.release]
11+
lto = true
12+
opt-level = 's'

0 commit comments

Comments
 (0)