Skip to content
Permalink
Browse files

Add release profile config. Fix unused import warning.

  • Loading branch information...
buybackoff committed Jul 14, 2019
1 parent 5c8352e commit 6e2a37f27c1b99a1ce9250f2eb9c6252a6ad8f99
Showing with 9 additions and 3 deletions.
  1. +8 −0 src/rust/Cargo.toml
  2. +1 −3 src/rust/blosc-sys/build.rs
@@ -6,3 +6,11 @@ members = [
"sqlite-sys",
"sandbox"
]

[profile.release]
opt-level = 3
debug = false
rpath = false
lto = true
debug-assertions = false
panic = 'abort'
@@ -1,8 +1,6 @@
extern crate cmake;
extern crate bindgen;

use std::env;

fn main() {
// TODO deduplicate code, only MinGW line for Windows, check if on MSVC
if cfg!(windows) {
@@ -78,7 +76,7 @@ fn main() {
// .expect("Unable to generate bindings");

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

0 comments on commit 6e2a37f

Please sign in to comment.
You can’t perform that action at this time.