diff --git a/Cargo.lock b/Cargo.lock index 7040a5d..a48a61a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1093,7 +1093,7 @@ dependencies = [ [[package]] name = "kon" -version = "0.6.3" +version = "0.6.4" dependencies = [ "kon_cmds", "kon_libs", diff --git a/Cargo.toml b/Cargo.toml index d34e1eb..996d588 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "kon" -version = "0.6.3" +version = "0.6.4" edition = "2024" [workspace] diff --git a/src/main.rs b/src/main.rs index 3eed6cc..fc9e680 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,7 +1,7 @@ // https://cdn.toast-server.net/RustFSHiearchy.png // Using the new filesystem hierarchy -#[cfg(feature = "production")] +#[cfg(feature = "rss")] use { kon_tasks::{ rss, @@ -74,7 +74,7 @@ async fn event_processor( framework: PoiseFwCtx<'_>, event: &FullEvent ) -> KonResult<()> { - #[cfg(feature = "production")] + #[cfg(feature = "rss")] if let FullEvent::Ready { .. } = event { let thread_id = format!("{:?}", current().id()); let thread_num: String = thread_id.chars().filter(|c| c.is_ascii_digit()).collect(); diff --git a/tasks/src/lib.rs b/tasks/src/lib.rs index c493a11..edb2c98 100644 --- a/tasks/src/lib.rs +++ b/tasks/src/lib.rs @@ -1,7 +1,7 @@ -#[cfg(feature = "production")] +#[cfg(feature = "rss")] mod rss; -#[cfg(feature = "production")] +#[cfg(feature = "rss")] pub use rss::rss; use { @@ -20,7 +20,7 @@ use { tokio::task::spawn }; -#[cfg(feature = "production")] +#[cfg(feature = "rss")] fn task_info( name: &str, message: &str @@ -28,7 +28,7 @@ fn task_info( println!("TaskScheduler[{name}]: {message}") } -#[cfg(feature = "production")] +#[cfg(feature = "rss")] fn task_err( name: &str, message: &str