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.
I'm not sure I understand your problem. Procedural macros are executed at compile time on the host machine. I don't see how this influences how musl is linked to your Rust binaries.
Edit: I think I found what you mean:
I didn't know you can't compile proc-macros on a musl host.