From 829bd872fd3cb57759428b98fb244ef76744f404 Mon Sep 17 00:00:00 2001 From: John Doty Date: Sun, 2 Jul 2023 09:32:31 -0700 Subject: [PATCH] [oden] Tracing should be optional really But `cargo run -F tracing` will enable it. --- Cargo.toml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 6f619b61..ef771535 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,6 +4,9 @@ version = "0.1.0" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html +[features] +default = [] +tracing = ["tracy-client/enable"] [dependencies] anyhow = "1.0" @@ -19,6 +22,6 @@ swc_ecma_parser = "0.136.7" swc_ecma_transforms_base = "0.129.13" swc_ecma_transforms_typescript = "0.179.18" swc_ecma_visit = "0.92.5" -tracy-client = { version = "0.15.2", features = ["enable"] } # TODO: Make conditional +tracy-client = { version = "0.15.2", default-features = false } wgpu = "0.16" winit = "0.28"