From ef8ee38edf81d8e48267e6c4f79cda57d8ca225a Mon Sep 17 00:00:00 2001 From: Roland Ruckerbauer Date: Wed, 7 Aug 2024 20:16:49 +0200 Subject: [PATCH] Fixed build.rs for older rustc versions --- Cargo.toml | 2 +- build.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 256d91b..9ab217d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "hidapi" -version = "2.6.2" +version = "2.6.3" authors = [ "Roland Ruckerbauer ", "Osspial ", diff --git a/build.rs b/build.rs index 7c7df8e..99e8711 100644 --- a/build.rs +++ b/build.rs @@ -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();