Skip to content

Commit

Permalink
Merge pull request #61 from ivmarkov/no_std
Browse files Browse the repository at this point in the history
Fix #60
  • Loading branch information
kedars authored Jul 1, 2023
2 parents b40a0af + 24cc92a commit aa6aa47
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions matter/src/mdns.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ use core::fmt::Write;

use crate::{data_model::cluster_basic_information::BasicInfoConfig, error::Error};

#[cfg(all(feature = "std", feature = "astro-dnssd"))]
#[cfg(all(feature = "std", target_os = "macos"))]
pub mod astro;
pub mod builtin;
pub mod proto;
Expand Down Expand Up @@ -55,16 +55,16 @@ where
}
}

#[cfg(all(feature = "std", feature = "astro-dnssd"))]
#[cfg(all(feature = "std", target_os = "macos"))]
pub type DefaultMdns<'a> = astro::Mdns<'a>;

#[cfg(all(feature = "std", feature = "astro-dnssd"))]
#[cfg(all(feature = "std", target_os = "macos"))]
pub type DefaultMdnsRunner<'a> = astro::MdnsRunner<'a>;

#[cfg(not(all(feature = "std", feature = "astro-dnssd")))]
#[cfg(not(all(feature = "std", target_os = "macos")))]
pub type DefaultMdns<'a> = builtin::Mdns<'a>;

#[cfg(not(all(feature = "std", feature = "astro-dnssd")))]
#[cfg(not(all(feature = "std", target_os = "macos")))]
pub type DefaultMdnsRunner<'a> = builtin::MdnsRunner<'a>;

pub struct DummyMdns;
Expand Down

0 comments on commit aa6aa47

Please sign in to comment.