Skip to content

Commit

Permalink
feat: prepare for macos support
Browse files Browse the repository at this point in the history
  • Loading branch information
JurianOnderwater authored and Martichou committed Jul 3, 2024
1 parent 61d2516 commit 2e7857c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
4 changes: 3 additions & 1 deletion core_lib/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,13 @@ authors = ["martichou"]
name = "core_bin"
path = "src/bin.rs"

[target.'cfg(target_os = "linux")'.dependencies]
bluer = { version = "0.17", features = ["full"], optional = true }

[dependencies]
anyhow = "1.0"
arboard = "3.3"
base64 = "0.22"
bluer = { version = "0.17", features = ["full"], optional = true }
btleplug = "0.11"
bytes = "1.5"
directories = "5.0"
Expand Down
4 changes: 2 additions & 2 deletions core_lib/src/hdl/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ use crate::utils::RemoteDeviceInfo;

mod ble;
pub use ble::*;
#[cfg(feature = "experimental")]
#[cfg(all(feature = "experimental", target_os = "linux"))]
mod blea;
#[cfg(feature = "experimental")]
#[cfg(all(feature = "experimental", target_os = "linux"))]
pub use blea::*;
mod inbound;
pub use inbound::*;
Expand Down
4 changes: 2 additions & 2 deletions core_lib/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use std::sync::{Arc, Mutex, RwLock};

use anyhow::anyhow;
use channel::ChannelMessage;
#[cfg(feature = "experimental")]
#[cfg(all(feature = "experimental", target_os = "linux"))]
use hdl::BleAdvertiser;
use hdl::MDnsDiscovery;
use once_cell::sync::Lazy;
Expand Down Expand Up @@ -165,7 +165,7 @@ impl RQS {
let ctk = CancellationToken::new();
self.discovery_ctk = Some(ctk.clone());

#[cfg(feature = "experimental")]
#[cfg(all(feature = "experimental", target_os = "linux"))]
{
let ctk_blea = ctk.clone();
tracker.spawn(async move {
Expand Down

0 comments on commit 2e7857c

Please sign in to comment.