[rust-dev] Compiling Rust apps with Meson v2

Jussi Pakkanen jpakkane at gmail.com
Mon Jun 23 13:00:50 PDT 2014


Hi

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.

----

project('libproject', 'rust')

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:
https://github.com/rust-lang/rust/issues/15124

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
Creator:

http://sourceforge.net/p/meson/mailman/message/32335155/

Enjoy,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/rust-dev/attachments/20140623/ab144ba8/attachment.html>


More information about the Rust-dev mailing list