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]]
|
[[package]]
|
||||||
name = "kon"
|
name = "kon"
|
||||||
version = "0.6.3"
|
version = "0.6.4"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"kon_cmds",
|
"kon_cmds",
|
||||||
"kon_libs",
|
"kon_libs",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "kon"
|
name = "kon"
|
||||||
version = "0.6.3"
|
version = "0.6.4"
|
||||||
edition = "2024"
|
edition = "2024"
|
||||||
|
|
||||||
[workspace]
|
[workspace]
|
||||||
|
@ -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();
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user