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

#115 in Profiling

Download history 25744/week @ 2025-12-17 13882/week @ 2025-12-24 14905/week @ 2025-12-31 31460/week @ 2026-01-07 29475/week @ 2026-01-14 31304/week @ 2026-01-21 31334/week @ 2026-01-28 31723/week @ 2026-02-04 27989/week @ 2026-02-11 23236/week @ 2026-02-18 25236/week @ 2026-02-25 32345/week @ 2026-03-04 31677/week @ 2026-03-11 33125/week @ 2026-03-18 37741/week @ 2026-03-25 27944/week @ 2026-04-01

135,677 downloads per month
Used in 48 crates (26 directly)

MIT/Apache

155KB
2.5K SLoC

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.7–2.6MB
~52K SLoC