diff --git a/.gitignore b/.gitignore index b6c38b72..79f88211 100644 --- a/.gitignore +++ b/.gitignore @@ -3,4 +3,3 @@ docs/ node_modules/ out/ raw/ -examples/n-body/rust/target/ diff --git a/examples/n-body/build/rust.optimized.wasm b/examples/n-body/build/rust.optimized.wasm new file mode 100644 index 00000000..2e06fd9e Binary files /dev/null and b/examples/n-body/build/rust.optimized.wasm differ diff --git a/examples/n-body/rust/.gitignore b/examples/n-body/rust/.gitignore new file mode 100644 index 00000000..2f7896d1 --- /dev/null +++ b/examples/n-body/rust/.gitignore @@ -0,0 +1 @@ +target/ diff --git a/examples/n-body/rust/Cargo.toml b/examples/n-body/rust/Cargo.toml index 6cf30903..cb353311 100644 --- a/examples/n-body/rust/Cargo.toml +++ b/examples/n-body/rust/Cargo.toml @@ -6,3 +6,7 @@ authors = ["MaxGraey "] [lib] path = "src/lib.rs" crate-type = ["cdylib"] + +[profile.release] +lto = true +opt-level = 's'