Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
benesch committed May 6, 2020
1 parent 6a8d681 commit 1bf9a2b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 7 deletions.
16 changes: 10 additions & 6 deletions rdkafka-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -166,17 +166,21 @@ fn build_librdkafka() {
run_command_or_fail(&out_dir, "./configure", configure_flags.as_slice());

println!("Compiling librdkafka");
env::set_var("MAKEFLAGS", env::var_os("CARGO_MAKEFLAGS").expect("CARGO_MAKEFLAGS env var missing"));
env::set_var(
"MAKEFLAGS",
env::var_os("CARGO_MAKEFLAGS").expect("CARGO_MAKEFLAGS env var missing"),
);
run_command_or_fail(
&out_dir,
if cfg!(target_os = "freebsd") { "gmake" } else { "make" },
if cfg!(target_os = "freebsd") {
"gmake"
} else {
"make"
},
&["libs"],
);

println!(
"cargo:rustc-link-search=native={}/src",
out_dir,
);
println!("cargo:rustc-link-search=native={}/src", out_dir);
println!("cargo:rustc-link-lib=static=rdkafka");
println!("cargo:root={}", out_dir);
}
Expand Down
7 changes: 6 additions & 1 deletion rdkafka-sys/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,12 @@ extern crate zstd_sys;
#[cfg(feature = "lz4-sys")]
extern crate lz4_sys;

#[allow(non_camel_case_types, non_upper_case_globals, non_snake_case, clippy::all)]
#[allow(
non_camel_case_types,
non_upper_case_globals,
non_snake_case,
clippy::all
)]
pub mod bindings;
pub mod helpers;
pub mod types;
Expand Down

0 comments on commit 1bf9a2b

Please sign in to comment.