mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-14 04:37:00 +00:00
Disable tokio-console for Axum dependency conflicts.
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
1 parent
ceb0f8f933
commit
dc8bab9bcd
4 files changed
+29
-226
No files matched your search
+2
-2
@@ -117,7 +117,7 @@ pub(crate) fn init(
|
||||
// compile-time and runtime conditions to elide it, each of those changing the
|
||||
// subscriber's type.
|
||||
let (console_enabled, console_disabled_reason) = tokio_console_enabled(config);
|
||||
#[cfg(all(feature = "tokio_console", tokio_unstable))]
|
||||
#[cfg(all(feature = "tokio_console", tokio_unstable, tuwunel_disable))]
|
||||
if console_enabled {
|
||||
let console_layer = console_subscriber::ConsoleLayer::builder()
|
||||
.with_default_env()
|
||||
@@ -139,7 +139,7 @@ pub(crate) fn init(
|
||||
}
|
||||
|
||||
fn tokio_console_enabled(config: &Config) -> (bool, &'static str) {
|
||||
if !cfg!(all(feature = "tokio_console", tokio_unstable)) {
|
||||
if !cfg!(all(feature = "tokio_console", tokio_unstable, tuwunel_disable)) {
|
||||
return (false, "");
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user