From e19df9b3e89148e2b5317b9ade6c0612c88dd0d4 Mon Sep 17 00:00:00 2001 From: PukNgae Cryolitia Date: Wed, 9 Oct 2024 10:18:07 +0800 Subject: [PATCH] fix riscv64 build --- Cargo.toml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index d7ca294f..580498b6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -53,6 +53,11 @@ udevrs = { version = "^0.3.0", optional = true } udevlib = { package = "udev", version = "^0.8.0", optional = true } rusb = "0.9.4" +[target.riscv64gc-unknown-linux-gnu.dependencies] +udevrs = { version = "^0.3.0", optional = true } +udevlib = { package = "udev", version = "^0.8.0", optional = true } +rusb = "0.9.4" + [features] libusb = ["dep:rusb"] udev = ["libusb", "dep:udevrs"]