Skip to content

Commit

Permalink
Fix target build
Browse files Browse the repository at this point in the history
  • Loading branch information
ztroop committed Mar 19, 2024
1 parent efcb1af commit c730ee1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ chrono = "0.4"
uuid = "1.6"
lazy_static = "1.4.0"

[target.'cfg(linux)'.dependencies]
[target.'cfg(target_os = "linux")'.dependencies]
bluez-async = "0.7"
3 changes: 3 additions & 0 deletions src/scan.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,12 @@ use btleplug::api::{
use btleplug::platform::{Manager, PeripheralId};
use futures::StreamExt;
use std::error::Error;
#[cfg(target_os = "linux")]
use std::str::FromStr;
use std::sync::atomic::{AtomicBool, Ordering};
use std::sync::Arc;
use tokio::sync::mpsc;
#[cfg(target_os = "macos")]
use uuid::Uuid;

use crate::structs::{Characteristic, DeviceInfo};
Expand Down

0 comments on commit c730ee1

Please sign in to comment.