From 29ce54635b5cffc80699f0e278d009e353213c46 Mon Sep 17 00:00:00 2001 From: bunnie Date: Mon, 3 Oct 2022 00:03:10 +0800 Subject: [PATCH] actually, make hosted the default implementation for crates.io --- services/log-server/src/main.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/services/log-server/src/main.rs b/services/log-server/src/main.rs index cb20b4b54..d2a99fbdc 100644 --- a/services/log-server/src/main.rs +++ b/services/log-server/src/main.rs @@ -10,7 +10,9 @@ mod debug; use core::fmt::Write; use num_traits::FromPrimitive; -#[cfg(any(feature="hosted"))] +#[cfg(any(feature="hosted", + not(any(feature="precursor", feature="renode", feature="hosted")) // makes this the default implementation +))] mod implementation { use core::fmt::{Error, Write}; use std::sync::mpsc::{channel, Receiver, Sender}; @@ -110,9 +112,7 @@ mod implementation { } } -#[cfg(any(feature="precursor", feature="renode", - not(any(feature="precursor", feature="renode", feature="hosted")) // makes this the default implementation -))] +#[cfg(any(feature="precursor", feature="renode"))] mod implementation { use core::fmt::{Error, Write}; use utralib::generated::*;