robertwayne / axum-htmx

A set of htmx extractors, responders, and request guards for axum.
Apache License 2.0
185 stars 9 forks source link

Use axum-core,async-trait,http instead of axum #8

Closed ItsEthra closed 12 months ago

ItsEthra commented 12 months ago

This pr uses axum-core, async-trait, http dependencies instead of axum to reduce dependency count and improve compile times.

Before:

$ time cargo build
________________________________________________________
Executed in   16.97 secs    fish           external
   usr time   42.60 secs    0.00 millis   42.60 secs
   sys time    3.55 secs    1.73 millis    3.55 secs

$ cargo tree | wc -l
67

After:

$ time cargo build
________________________________________________________
Executed in    9.81 secs    fish           external
   usr time   23.97 secs    0.00 millis   23.97 secs
   sys time    2.18 secs    1.36 millis    2.18 secs

$ cargo tree | wc -l
39
robertwayne commented 12 months ago

This also looks great, thank you!