Wrong feature flag name
All checks were successful
Build and push Docker image / build (push) Successful in 6m13s
Build and push Docker image / deploy (push) Successful in 40s

This commit is contained in:
toast 2025-01-03 20:01:42 +11:00
parent 1ffb0fdb9d
commit 31f3d6854f
4 changed files with 8 additions and 8 deletions

2
Cargo.lock generated
View File

@ -1093,7 +1093,7 @@ dependencies = [
[[package]] [[package]]
name = "kon" name = "kon"
version = "0.6.3" version = "0.6.4"
dependencies = [ dependencies = [
"kon_cmds", "kon_cmds",
"kon_libs", "kon_libs",

View File

@ -1,6 +1,6 @@
[package] [package]
name = "kon" name = "kon"
version = "0.6.3" version = "0.6.4"
edition = "2024" edition = "2024"
[workspace] [workspace]

View File

@ -1,7 +1,7 @@
// https://cdn.toast-server.net/RustFSHiearchy.png // https://cdn.toast-server.net/RustFSHiearchy.png
// Using the new filesystem hierarchy // Using the new filesystem hierarchy
#[cfg(feature = "production")] #[cfg(feature = "rss")]
use { use {
kon_tasks::{ kon_tasks::{
rss, rss,
@ -74,7 +74,7 @@ async fn event_processor(
framework: PoiseFwCtx<'_>, framework: PoiseFwCtx<'_>,
event: &FullEvent event: &FullEvent
) -> KonResult<()> { ) -> KonResult<()> {
#[cfg(feature = "production")] #[cfg(feature = "rss")]
if let FullEvent::Ready { .. } = event { if let FullEvent::Ready { .. } = event {
let thread_id = format!("{:?}", current().id()); let thread_id = format!("{:?}", current().id());
let thread_num: String = thread_id.chars().filter(|c| c.is_ascii_digit()).collect(); let thread_num: String = thread_id.chars().filter(|c| c.is_ascii_digit()).collect();

View File

@ -1,7 +1,7 @@
#[cfg(feature = "production")] #[cfg(feature = "rss")]
mod rss; mod rss;
#[cfg(feature = "production")] #[cfg(feature = "rss")]
pub use rss::rss; pub use rss::rss;
use { use {
@ -20,7 +20,7 @@ use {
tokio::task::spawn tokio::task::spawn
}; };
#[cfg(feature = "production")] #[cfg(feature = "rss")]
fn task_info( fn task_info(
name: &str, name: &str,
message: &str message: &str
@ -28,7 +28,7 @@ fn task_info(
println!("TaskScheduler[{name}]: {message}") println!("TaskScheduler[{name}]: {message}")
} }
#[cfg(feature = "production")] #[cfg(feature = "rss")]
fn task_err( fn task_err(
name: &str, name: &str,
message: &str message: &str