diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1f20c37..a36b892 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -61,7 +61,7 @@ jobs: extension: zip - os: ubuntu-latest - # linux-packages: libudev-dev + linux-packages: libudev-dev executable: sc64deployer name: sc64-deployer-linux options: -czf diff --git a/sw/deployer/Cargo.lock b/sw/deployer/Cargo.lock index 713d36f..686903a 100644 --- a/sw/deployer/Cargo.lock +++ b/sw/deployer/Cargo.lock @@ -654,6 +654,26 @@ dependencies = [ "rle-decode-fast", ] +[[package]] +name = "libudev" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "78b324152da65df7bb95acfcaab55e3097ceaab02fb19b228a9eb74d55f135e0" +dependencies = [ + "libc", + "libudev-sys", +] + +[[package]] +name = "libudev-sys" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3c8469b4a23b962c1396b9b451dda50ef5b283e8dd309d69033475fa9b334324" +dependencies = [ + "libc", + "pkg-config", +] + [[package]] name = "link-cplusplus" version = "1.0.8" @@ -856,6 +876,12 @@ dependencies = [ "syn", ] +[[package]] +name = "pkg-config" +version = "0.3.26" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ac9a59f73473f1b8d852421e59e64809f025994837ef743615c6d0c5b305160" + [[package]] name = "png" version = "0.17.7" @@ -1045,6 +1071,7 @@ dependencies = [ "IOKit-sys", "bitflags", "cfg-if", + "libudev", "mach 0.3.2", "nix 0.24.3", "regex", diff --git a/sw/deployer/Cargo.toml b/sw/deployer/Cargo.toml index 1e8f005..a08ec17 100644 --- a/sw/deployer/Cargo.toml +++ b/sw/deployer/Cargo.toml @@ -21,7 +21,7 @@ md5 = "0.7.0" panic-message = "0.3.0" rust-ini = "0.18.0" serial2 = "0.1.7" -serialport = { version = "4.2.0", default-features = false } +serialport = "4.2.0" [profile.release] lto = true