[rust-dev] Compiling Rust apps with Meson v2
jpakkane at gmail.com
Mon Jun 23 13:00:50 PDT 2014
I finished basic Rust support for the Meson build system. It now supports
shared and static libraries with full install support and all that. Here's
the entire build definition for a library and two executables that use it.
corelib = shared_library('core', 'core.rs')
executable('someapp', 'someapp.rs', link_with : corelib)
executable('otherapp', 'otherapp.rs', link_with : corelib)
To try it get Meson trunk: https://github.com/jpakkane/meson
If you try to run the Rust unit tests, note that dependency tracking fails
because rustc creates invalid dependency files. I filed a bug on that:
Other random tidbits and questions I was asked:
Could Meson build Rust itself? Possibly, though it probably needs some help
from Rust specialists. If someone wants to try this, I'll be glad to help.
Can Meson handle complex setups? The most complex thus far has been Qt
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Rust-dev