Re: promoting Rust to first class citizen in oe-core
My filters hide this email in a folder even though I was CCed. Updated now.
On 2020-09-12 10:19 p.m., Khem Raj wrote:
I was stuck on the librsvg build error for a while soOn Sat, Sep 12, 2020 at 12:07 PM Alexander Kanavin <alex.kanavin@...> wrote:On Thu, 10 Sep 2020 at 22:24, Richard Purdie <richard.purdie@...> wrote:This has been talked about a lot but there is work to be done to get this into core. Not many people seem willing to step up and do that work so progress has been slow. The hardest part may be getting the crate fetcher into bitbake in an acceptable form.
I haven't yet looked into how the cargo fetcher works.
The cargo bitbake tool can generate bitbake recipes from a toml file:
It certainly lists all the crates in the generated recipe's
I'm all in favour too, as long as it really is sorted to be a first class citizen.That's why I specifically CCd Randy: he's done some work towards this, so I was hoping for some kind of current update or maybe remaining items where help is needed.
Yes, I've been mulling that over as well.Rust and to a certain extent go has a bit different dynamics, where the language tools are pretty much inherently cross compilers. they provide easy installers and updaters for tools and they release very often, they also have their own package management systems, the programs are quite standalone in the ( like static programs) so there is not much need for them from system. end-users update compilers very often than not they are using the latest compilers due to the above reasons. these are real concerns when you consider timed releases schedules like yocto and now we have LTS too.
Please could do app development using their
distro's rust or the 'rustup' toolchain by specifying
$ cargo build --target TRIPLEand then for production releases, use bitbake.
I agree with Richard's sentiment that we need robust fetcher integration as a starting point and perhaps full knowledge of dependency management to offer a compelling solution. I would like to see it used when in core and we need answers for the above topics, currently, meta-rust e.g. follows a release cadence of its own which is good fit for developers, maybe not as much for release engineering.
After months of neglect, I did update the merge of
d3d419e11b (HEAD -> rust-wip-sept-5) librsvg: update to 2.49.5
I'll get things in somewhat better order and push what I have to
The latest error when doing 'bitbake librsvg' on the newer librsvg is:
ERROR: librsvg-2.49.5-r0 do_compile: Execution of
but bitbake rust-hello-world or bitbake ripgrep works fine.
After I (we?) get librsvg to build again, I believe there were
-- # Randy MacLeod # Wind River Linux