Remove the puffin http dependency

This commit is contained in:
Clément Renault 2023-09-21 16:21:21 +02:00 committed by Kerollmops
parent 0913373a5e
commit c5f7893fbb
No known key found for this signature in database
GPG key ID: F250A4C4E3AE5F5F
3 changed files with 2 additions and 19 deletions

View file

@ -30,9 +30,7 @@ fn setup(opt: &Opt) -> anyhow::Result<()> {
async fn main() -> anyhow::Result<()> {
let (opt, config_read_from) = Opt::try_build()?;
#[cfg(feature = "profile-with-puffin")]
let _server = puffin_http::Server::new(&format!("0.0.0.0:{}", puffin_http::DEFAULT_PORT))?;
puffin::set_scopes_on(cfg!(feature = "profile-with-puffin"));
puffin::set_scopes_on(opt.experimental_profile_with_puffin);
anyhow::ensure!(
!(cfg!(windows) && opt.experimental_reduce_indexing_memory_usage),