Private
Public Access
1
0

kordophoned sans kpcli building on macos

This commit is contained in:
James Magahern
2025-07-31 19:16:44 -07:00
parent 742703cb8e
commit 8115f94121
11 changed files with 120 additions and 27 deletions

View File

@@ -1,5 +1,35 @@
#[cfg(target_os = "linux")]
pub mod eds;
pub use eds::EDSContactResolverBackend;
pub mod generic;
// Convenient alias for the platform's default backend
#[cfg(target_os = "linux")]
pub type DefaultContactResolverBackend = eds::EDSContactResolverBackend;
#[cfg(not(target_os = "linux"))]
pub type DefaultContactResolverBackend = generic::GenericContactResolverBackend;
#[cfg(not(target_os = "linux"))]
#[derive(Clone)]
pub struct EDSContactResolverBackend;
#[cfg(not(target_os = "linux"))]
impl Default for EDSContactResolverBackend {
fn default() -> Self { EDSContactResolverBackend }
}
#[cfg(not(target_os = "linux"))]
impl ContactResolverBackend for EDSContactResolverBackend {
type ContactID = String;
fn resolve_contact_id(&self, _address: &str) -> Option<Self::ContactID> {
None
}
fn get_contact_display_name(&self, _contact_id: &Self::ContactID) -> Option<String> {
None
}
}
use std::collections::HashMap;