[build] type = "cmake" [build.flags] configure = [ "-DHIDAPI_WITH_HIDRAW=OFF", "-DHIDAPI_WITH_LIBUSB=ON" ] [dependencies] build = [ "cmake", "libusb", ] runtime = ["glibc"] [package] description = "Simple library for communicating with USB and Bluetooth HID devices" homepage = "https://github.com/libusb/hidapi" license = [ "BSD-3-Clause", "GPL-3.0-or-Later", "HIDAPI", ] name = "hidapi" version = "0.15.0" [[source]] extract_dir = "$name-$version" sha256 = "5d84dec684c27b97b921d2f3b73218cb773cf4ea915caee317ac8fc73cef8136" url = "https://github.com/libusb/hidapi/archive/hidapi-$version.tar.gz"