promoting Rust to first class citizen in oe-core
Alexander Kanavin
Hello all, I just read this article, called "Supporting Linux kernel development in Rust" and it looks like the future is set, and particularly the Yocto project should prepare for it. Thoughts? Alex |
|
Otavio Salvador
Em qui., 10 de set. de 2020 às 16:51, Alexander Kanavin
<alex.kanavin@...> escreveu: I just read this article, called "Supporting Linux kernel development in Rust"I support this for sure. I've been using Rust with Yocto Project for a while now and it does fit well to be in OE-Core. -- Otavio Salvador O.S. Systems http://www.ossystems.com.br http://code.ossystems.com.br Mobile: +55 (53) 9 9981-7854 Mobile: +1 (347) 903-9750 |
|
Andreas Müller
On Thu, Sep 10, 2020 at 9:52 PM Alexander Kanavin
<alex.kanavin@...> wrote: As a gnome in Yocto 'enthusiast' there is not much to say but: yes yes yes. We have all these rust blockers as librsvg, mozjs. -> gnome-shell/mutter Andreas |
|
Richard Purdie
On Thu, 2020-09-10 at 22:03 +0200, Andreas Müller wrote:
On Thu, Sep 10, 2020 at 9:52 PM Alexander KanavinThis 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'm all in favour too, as long as it really is sorted to be a first class citizen. Cheers, Richard |
|
Alexander Kanavin
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 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. Alex |
|
On Sat, Sep 12, 2020 at 12:07 PM Alexander Kanavin
<alex.kanavin@...> wrote: 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. 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. Alex |
|
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: https://github.com/meta-rust/cargo-bitbake It certainly lists all the crates in the generated recipe's
SRC_URI 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 the target: $ cargo build --target TRIPLE and 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
poky-contrib The latest error when doing 'bitbake librsvg' on the newer librsvg is: ERROR: librsvg-2.49.5-r0 do_compile: Execution of
'/ala-lpggp31/rmacleod/src/distro/yocto/b/rust-sep-5/tmp-glibc/work/core2-64-oe-linux/librsvg/2.49.5-r0/temp/run.do_co: but bitbake rust-hello-world or bitbake ripgrep works fine.
After I (we?) get librsvg to build again, I believe there were ../Randy Alex
-- # Randy MacLeod # Wind River Linux |
|
Added Jan from Pengutronix since
Richard said he might be interested
in the rust in oe-core work. See below if you want to kick the tires
using my poky-contrib branch.
On 2020-09-14 12:24 p.m., Randy MacLeod
wrote:
Well, it's not in 'better order' but it builds and runs rust-hello-world and ripgrep. I've pushed what I have to poky-contrib in case anyone wants to
debug the librsvg build over the weekend! :) http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/log/?h=rmacleod/rust-wip-sept-5 ../Randy
-- # Randy MacLeod # Wind River Linux |
|