kordophoned sans kpcli building on macos
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user