Skip to content

Instantly share code, notes, and snippets.

@jmwample
jmwample / Cargo.toml
Created February 12, 2025 16:45
Axum Json compression Example
[package]
name = "axum"
version = "0.1.0"
edition = "2021"
[dependencies]
axum = "0.8.1"
tower-http = { version="0.6.2", features = ["cors", "trace", "compression-br", "compression-deflate", "compression-gzip", "compression-zstd"] }
tokio = { version = "1.43.0", features = ["full"]}
serde = { version = "1.0.217", features = ["serde_derive"]}

Keybase proof

I hereby claim:

  • I am jmwample on github.
  • I am jmwample (https://keybase.io/jmwample) on keybase.
  • I have a public key ASCah0FiYpteto022uj0a4ZrDkFMMvpzy6e_msHAjH-XMAo

To claim this, I am signing this object: