[rust-dev] Compiling Rust apps with Meson v2

Robert Knight robertknight at gmail.com
Wed Jun 25 03:25:23 PDT 2014


Hi Jussi,

Thanks. meson looks like CMake with a somewhat more sane build config
language. Not directly related to Rust, but what is the tooling story
like with Qt Creator - eg. has any work been done on teaching Qt
Creator to understand meson projects?

On 23 June 2014 21:00, Jussi Pakkanen <jpakkane at gmail.com> wrote:
> 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,
>
>
>
> _______________________________________________
> Rust-dev mailing list
> Rust-dev at mozilla.org
> https://mail.mozilla.org/listinfo/rust-dev
>


More information about the Rust-dev mailing list