diff --git a/examples/cache/src/main.rs b/examples/cache/src/main.rs index 38e87405..848964a4 100644 --- a/examples/cache/src/main.rs +++ b/examples/cache/src/main.rs @@ -6,6 +6,7 @@ use tardis::testcontainers::clients; use tardis::tokio; use tardis::tokio::time::sleep; use tardis::TardisFuns; +外部内容 #[tokio::main] async fn main() -> TardisResult<()> { diff --git a/tardis-macros/Cargo.toml b/tardis-macros/Cargo.toml index 46953537..c44afda2 100644 --- a/tardis-macros/Cargo.toml +++ b/tardis-macros/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "tardis-macros" -version = "0.1.0-alpha25" +version = "0.1.0-alpha26" authors = ["gudaoxuri "] description = "Elegant, clean Rust development framework" keywords = ["http", "database", "web", "redis", "mq"] diff --git a/tardis/Cargo.toml b/tardis/Cargo.toml index 3fdaa426..776b1809 100644 --- a/tardis/Cargo.toml +++ b/tardis/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "tardis" -version = "0.1.0-alpha25" +version = "0.1.0-alpha26" authors = ["gudaoxuri "] description = "Elegant, clean Rust development framework" keywords = ["http", "database", "web", "redis", "mq"] @@ -50,7 +50,6 @@ nanoid = { version = "0.4" } base64 = { version = "0.13" } hex = { version = "0.4" } lazy_static = { version = "1.4" } -log = { version = "0.4" } rand = { version = "0.8" } rand_core = { version = "0.6" } chrono = { version = "0.4" } @@ -59,9 +58,15 @@ config = { version = "0.13" } regex = { version = "1.5" } url = { version = "2.2" } openssl = { version = "0.10", features = ["vendored"] } +# Log +log = { version = "0.4" } +tracing = { version = "0.1"} +tracing-subscriber = { version = "0.3", features = ["env-filter"] } # macros -tardis-macros = { version = "0.1.0-alpha25", path = "../tardis-macros", optional = true } +tardis-macros = { version = "0.1.0-alpha26", path = "../tardis-macros", optional = true } + + # Tokio tokio = { version = "1.18", features = ["macros", "rt-multi-thread", "signal", "time"], optional = true } diff --git a/tardis/src/basic/logger.rs b/tardis/src/basic/logger.rs index be22a4ed..b9dd48d5 100644 --- a/tardis/src/basic/logger.rs +++ b/tardis/src/basic/logger.rs @@ -14,8 +14,6 @@ impl TardisLogger { if std::env::var_os("RUST_LOG").is_none() { std::env::set_var("RUST_LOG", "info"); } - - #[cfg(feature = "trace")] tracing_subscriber::fmt::init(); Ok(()) }