Request: proc-macro for static targets
⚓ Rust 📅 2026-01-05 👤 surdeus 👁️ 3Hi,
I am interested in building fully static musl binaries for my Rust applications, as this makes Docker image distribution much easier, compared to having to manage a multiplicity of per-distro, per-glibc version images.
However, many crates rely on proc-macro, breaking this pattern. As rustc does not currently support proc-macro in static application contexts.
When can we expect proc-macro's to become available for statically compiled applications?
Meanwhile, using Go, which supports static compilation out of the box.
2 posts - 2 participants
🏷️ Rust_feed