Wrong feature flag name
This commit is contained in:
parent
1ffb0fdb9d
commit
31f3d6854f
2
Cargo.lock
generated
2
Cargo.lock
generated
@ -1093,7 +1093,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "kon"
|
||||
version = "0.6.3"
|
||||
version = "0.6.4"
|
||||
dependencies = [
|
||||
"kon_cmds",
|
||||
"kon_libs",
|
||||
|
@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "kon"
|
||||
version = "0.6.3"
|
||||
version = "0.6.4"
|
||||
edition = "2024"
|
||||
|
||||
[workspace]
|
||||
|
@ -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();
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user