Skip to content

Commit 6e2a37f

Browse files
committed
Add release profile config. Fix unused import warning.
1 parent 5c8352e commit 6e2a37f

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

src/rust/Cargo.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,11 @@ members = [
66
"sqlite-sys",
77
"sandbox"
88
]
9+
10+
[profile.release]
11+
opt-level = 3
12+
debug = false
13+
rpath = false
14+
lto = true
15+
debug-assertions = false
16+
panic = 'abort'

src/rust/blosc-sys/build.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
extern crate cmake;
22
extern crate bindgen;
33

4-
use std::env;
5-
64
fn main() {
75
// TODO deduplicate code, only MinGW line for Windows, check if on MSVC
86
if cfg!(windows) {
@@ -78,7 +76,7 @@ fn main() {
7876
// .expect("Unable to generate bindings");
7977

8078
// // Write the bindings to the $OUT_DIR/bindings.rs file.
81-
// let out_path = std::path::PathBuf::from(env::var("CARGO_MANIFEST_DIR").unwrap());
79+
// let out_path = std::path::PathBuf::from(std::env::var("CARGO_MANIFEST_DIR").unwrap());
8280
// bindings
8381
// .write_to_file(out_path.join("src/bindings.rs"))
8482
// .expect("Couldn't write bindings!");

0 commit comments

Comments
 (0)