Skip to content

Commit

Permalink
Fixed build.rs for older rustc versions
Browse files Browse the repository at this point in the history
  • Loading branch information
ruabmbua committed Aug 7, 2024
1 parent f36aaa1 commit ef8ee38
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "hidapi"
version = "2.6.2"
version = "2.6.3"
authors = [
"Roland Ruckerbauer <[email protected]>",
"Osspial <[email protected]>",
Expand Down
4 changes: 2 additions & 2 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ use std::env;
fn main() {
let target = env::var("TARGET").unwrap();

println!("cargo::rustc-check-cfg=cfg(hidapi)");
println!("cargo::rustc-check-cfg=cfg(libusb)");
println!("cargo:rustc-check-cfg=cfg(hidapi)");
println!("cargo:rustc-check-cfg=cfg(libusb)");

if target.contains("linux") {
compile_linux();
Expand Down

0 comments on commit ef8ee38

Please sign in to comment.