I’m a new Caddy user, configured a server of mine to use it, and I find it very very convenient!
I read on Caddy’s internal docs that Caddy is both a core library AND a CLI project that’s built using the core + the modules, but I did not find (or didn’t search long enough) a guide to compile Caddy only as a library (
.so file, or
.dll for Windows).
The goal is to embed this library in a Rust program and use FFI (or other interfaces, I guess you might know better than me on all this) to make sure my Rust program doesn’t have to suffer the maintenance burden of reimplementing tons of HTTP-related stuff (which I do using Warp and Hyper Rust libraries).
Any guide or idea on how to achieve this?