The dmx crate supports DMX512 transmission in Rust through a trait, although transmission via UART on Linux is currently the only implementation available.
dmx
See the documentation for details.