mirror of
https://github.com/maplibre/maplibre-rs.git
synced 2025-12-08 19:05:57 +00:00
Fix tracy by using re-export (#213)
This commit is contained in:
parent
4e761fd7a2
commit
193b06a49d
@ -15,7 +15,7 @@ authors.workspace = true
|
||||
default = []
|
||||
web-webgl = ["wgpu/webgl"]
|
||||
# Enable tracing using tracy on desktop/mobile and the chrome profiler on web
|
||||
trace = ["tracing-subscriber", "tracing-tracy", "tracy-client"]
|
||||
trace = ["tracing-subscriber", "tracing-tracy"]
|
||||
thread-safe-futures = []
|
||||
embed-static-tiles = ["maplibre-build-tools/sqlite"]
|
||||
headless = ["png"]
|
||||
@ -29,7 +29,6 @@ reqwest = { version = "0.11.11", default-features = false, features = ["rustls-t
|
||||
reqwest-middleware-cache = "0.1.1" # FIXME: Untrusted dependency
|
||||
reqwest-middleware = "0.1.6" # FIXME: Untrusted dependency
|
||||
tracing-tracy = { version = "0.10", optional = true }
|
||||
tracy-client = { version = "0.14", optional = true }
|
||||
|
||||
[target.'cfg(target_os = "android")'.dependencies]
|
||||
# Use rusttls on android because cross compiling is difficult
|
||||
|
||||
@ -13,7 +13,7 @@ pub fn run_multithreaded<F: Future>(future: F) -> F::Output {
|
||||
.enable_time()
|
||||
.on_thread_start(|| {
|
||||
#[cfg(feature = "trace")]
|
||||
tracy_client::set_thread_name!("tokio-runtime-worker");
|
||||
tracing_tracy::client::set_thread_name!("tokio-runtime-worker");
|
||||
})
|
||||
.build()
|
||||
.unwrap()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user