25 releases (16 breaking)

Uses new Rust 2024

0.17.0 Mar 18, 2026
0.16.1 Jul 31, 2024
0.16.0 Jan 17, 2024
0.15.0 Nov 21, 2023
0.3.0 Jul 5, 2021

#9 in #instrumentation

Download history 4610/week @ 2026-03-03 31117/week @ 2026-03-10 31519/week @ 2026-03-17 37584/week @ 2026-03-24 30632/week @ 2026-03-31 30200/week @ 2026-04-07 28990/week @ 2026-04-14 29496/week @ 2026-04-21 29364/week @ 2026-04-28 28875/week @ 2026-05-05 36864/week @ 2026-05-12 36573/week @ 2026-05-19 37112/week @ 2026-05-26 36496/week @ 2026-06-02

151,553 downloads per month
Used in 51 crates (27 directly)

MIT/Apache

35KB
308 lines

puffin_http

Embark Embark Crates.io Docs

A HTTP server/client for communicating puffin profiling events.

You can view them using puffin_viewer.

How to use

Add a puffin_http Server to the profiled application When the server is started, puffin_viewer application can connect to it and display profiling information.

fn main() {
    let server_addr = format!("0.0.0.0:{}", puffin_http::DEFAULT_PORT);
    let _puffin_server = puffin_http::Server::new(&server_addr).unwrap();
    eprintln!("Serving demo profile data on {server_addr}. Run `puffin_viewer` to view it.");
    puffin::set_scopes_on(true);

    //
}

You can checkout the examples/server.rs for a more complete example.

Dependencies

~1.6–2.6MB
~50K SLoC