How to compile have cargo build within a meta-layer

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to compile have cargo build within a meta-layer

Jump to solution
3,744 Views
cbugk-dannie
Contributor II

I was following this example on inheriting cargo.bbclass and compiling a simple project:
https://www.youtube.com/watch?v=aPsMuSU-Btw

However, I got following error:
```
NOTE: Executing Tasks
ERROR: my-test-0.1-r0 do_compile: ExecutionError('/opt/yocto/imx-6.6.3-1.0.0-build/build_fsl-imx-wayland/tmp/work/armv8a-poky-linux/my-test/0.1/temp/run.do_compile.24257', 101, None, None)
ERROR: Logfile of failure stored in: /opt/yocto/imx-6.6.3-1.0.0-build/build_fsl-imx-wayland/tmp/work/armv8a-poky-linux/my-test/0.1/temp/log.do_compile.24257
Log data follows:
| DEBUG: Executing shell function do_compile
| NOTE: Using rust targets from /opt/yocto/imx-6.6.3-1.0.0-build/build_fsl-imx-wayland/tmp/work/armv8a-poky-linux/my-test/0.1/rust-targets/
| NOTE: cargo = /opt/yocto/imx-6.6.3-1.0.0-build/build_fsl-imx-wayland/tmp/work/armv8a-poky-linux/my-test/0.1/recipe-sysroot-native/usr/bin/cargo
| NOTE: cargo build -v --frozen --target aarch64-poky-linux-gnu --release --manifest-path=/opt/yocto/imx-6.6.3-1.0.0-build/build_fsl-imx-wayland/tmp/work/armv8a-poky-linux/my-test/0.1/git//Cargo.toml
| error: the lock file /opt/yocto/imx-6.6.3-1.0.0-build/build_fsl-imx-wayland/tmp/work/armv8a-poky-linux/my-test/0.1/git/Cargo.lock needs to be updated but --frozen was passed to prevent this
| If you want to try to generate the lock file without accessing the network, remove the --frozen flag and use --offline instead.
| WARNING: /opt/yocto/imx-6.6.3-1.0.0-build/build_fsl-imx-wayland/tmp/work/armv8a-poky-linux/my-test/0.1/temp/run.do_compile.24257:185 exit 101 from '"cargo" build -v --frozen --target aarch64-poky-linux-gnu --release --manifest-path=/opt/yocto/imx-6.6.3-1.0.0-build/build_fsl-imx-wayland/tmp/work/armv8a-poky-linux/my-test/0.1/git//Cargo.toml "$@"'
| WARNING: Backtrace (BB generated script):
| #1: oe_cargo_build, /opt/yocto/imx-6.6.3-1.0.0-build/build_fsl-imx-wayland/tmp/work/armv8a-poky-linux/my-test/0.1/temp/run.do_compile.24257, line 185
| #2: cargo_do_compile, /opt/yocto/imx-6.6.3-1.0.0-build/build_fsl-imx-wayland/tmp/work/armv8a-poky-linux/my-test/0.1/temp/run.do_compile.24257, line 157
| #3: do_compile, /opt/yocto/imx-6.6.3-1.0.0-build/build_fsl-imx-wayland/tmp/work/armv8a-poky-linux/my-test/0.1/temp/run.do_compile.24257, line 152
| #4: main, /opt/yocto/imx-6.6.3-1.0.0-build/build_fsl-imx-wayland/tmp/work/armv8a-poky-linux/my-test/0.1/temp/run.do_compile.24257, line 198
ERROR: Task (/opt/yocto/imx-6.6.3-1.0.0-build/sources/meta-my-test/recipes-cargo/install/my-test_0.1.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 5745 tasks of which 5743 didn't need to be rerun and 1 failed.
```

I had run `bitbake -f my-test core-image-minimal`. BBLAYERS was appended as well.

Simply: How to compile and install a Rust program into iMX93EVK ?

Tags (1)
0 Kudos
Reply
1 Solution
3,696 Views
cbugk-dannie
Contributor II

I am a fool, more precisely a newbie. The repo I was referring to (https://gitlab.com/pbarker.dev/rust/print-rand) had no Cargo.lock file. I ran it manually on my machine copied file over and voila!

The path the repo was downloaded was `/opt/yocto/imx-6.6.3-1.0.0-build/build_fsl-imx-wayland/tmp/work/armv8a-poky-linux/my-test/0.1/git/` by default. Well I can override that somehow. This was a non-issue. Well hopefully helps other noobs out in the future.

Edit: Some other pitfalls:
* `IMAGE_INSTALL` did not work in my case, but `CORE_IMAGE_EXTRA_INSTALL` allowed me to add custom layer's bb files to `bitbake core-image-minimal` build. Recipe name is irrelevant for all I can tell.
* On first run, I encountered missing crate hashes. Luckily the fix is printed on. Adding those with a `.inc` file beside the `.bb` file was sufficient to get over it without modifying .bb file `cargo bitbake` command generates.

View solution in original post

0 Kudos
Reply
5 Replies
3,697 Views
cbugk-dannie
Contributor II

I am a fool, more precisely a newbie. The repo I was referring to (https://gitlab.com/pbarker.dev/rust/print-rand) had no Cargo.lock file. I ran it manually on my machine copied file over and voila!

The path the repo was downloaded was `/opt/yocto/imx-6.6.3-1.0.0-build/build_fsl-imx-wayland/tmp/work/armv8a-poky-linux/my-test/0.1/git/` by default. Well I can override that somehow. This was a non-issue. Well hopefully helps other noobs out in the future.

Edit: Some other pitfalls:
* `IMAGE_INSTALL` did not work in my case, but `CORE_IMAGE_EXTRA_INSTALL` allowed me to add custom layer's bb files to `bitbake core-image-minimal` build. Recipe name is irrelevant for all I can tell.
* On first run, I encountered missing crate hashes. Luckily the fix is printed on. Adding those with a `.inc` file beside the `.bb` file was sufficient to get over it without modifying .bb file `cargo bitbake` command generates.

0 Kudos
Reply
3,690 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Good

0 Kudos
Reply
3,726 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello,

Rust is not include in the default BSP, you have to add it to yocto.

https://interrupt.memfault.com/blog/rust-in-yocto

 

Regards

 

0 Kudos
Reply
3,699 Views
cbugk-dannie
Contributor II

cbugk-dannie
cbugk-dannie
Contributor I
BTW, this line in the original post tells me cargo itself is functional:
```
error: the lock file /opt/yocto/imx-6.6.3-1.0.0-build/build_fsl-imx-wayland/tmp/work/armv8a-poky-linux/my-test/0.1/git/Cargo.lock needs to be updated but --frozen was passed to prevent this
```
What I am missing is not knowing how to use the default Yocto behaviour of --frozen with an ordinary cargo project.

But I suppose this is outside of the scope of NXP. Still, ou guys commented on having scripts and all on some other posts on this forum. So thought worth a shot, would appreciate any such tips if any.

0 Kudos
Reply
3,707 Views
cbugk-dannie
Contributor II

Firstly, thanks.

I get following error when added `DEPENDS += " meta-rust "` to bb file. I thought `meta-rust` was absorbed into `oe-core`, so do I really need it on nanbield?

```
Loading cache: 100% |########################################################################################################################| Time: 0:00:00Loaded 5451 entries from dependency cache. NOTE: Resolving any missing task queue dependencies ERROR: Nothing PROVIDES 'meta-rust' (but /opt/yocto/imx-6.6.3-1.0.0-build/sources/meta-my-test/recipes-my/company/my-test_0.1.bb DEPENDS on or otherwise requires it) ERROR: Required build target 'my-test' has no buildable providers.
Missing or unbuildable dependency chain was: ['my-test', 'meta-rust'] Summary: There were 2 ERROR messages, returning a non-zero exit code.
```

Edit: I also added it as another echo of `BBLAYERS` in imx-setup-release.sh and to manifest of repo tool. However, nanbield is not compatible with this modus operandi:

```ERROR: Layer rust-layer is not compatible with the core layer which only supports these series: nanbield (layer is compatible with mickledore honister hardknott gatesgarth kirkstone)```

 

 

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-1861495%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EHow%20to%20compile%20have%20cargo%20build%20within%20a%20meta-layer%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1861495%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EI%20was%20following%20this%20example%20on%20inheriting%20cargo.bbclass%20and%20compiling%20a%20simple%20project%3A%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DaPsMuSU-Btw%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DaPsMuSU-Btw%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3EHowever%2C%20I%20got%20following%20error%3A%3CBR%20%2F%3E%60%60%60%3CBR%20%2F%3ENOTE%3A%20Executing%20Tasks%3CBR%20%2F%3EERROR%3A%20my-test-0.1-r0%20do_compile%3A%20ExecutionError('%2Fopt%2Fyocto%2Fimx-6.6.3-1.0.0-build%2Fbuild_fsl-imx-wayland%2Ftmp%2Fwork%2Farmv8a-poky-linux%2Fmy-test%2F0.1%2Ftemp%2Frun.do_compile.24257'%2C%20101%2C%20None%2C%20None)%3CBR%20%2F%3EERROR%3A%20Logfile%20of%20failure%20stored%20in%3A%20%2Fopt%2Fyocto%2Fimx-6.6.3-1.0.0-build%2Fbuild_fsl-imx-wayland%2Ftmp%2Fwork%2Farmv8a-poky-linux%2Fmy-test%2F0.1%2Ftemp%2Flog.do_compile.24257%3CBR%20%2F%3ELog%20data%20follows%3A%3CBR%20%2F%3E%7C%20DEBUG%3A%20Executing%20shell%20function%20do_compile%3CBR%20%2F%3E%7C%20NOTE%3A%20Using%20rust%20targets%20from%20%2Fopt%2Fyocto%2Fimx-6.6.3-1.0.0-build%2Fbuild_fsl-imx-wayland%2Ftmp%2Fwork%2Farmv8a-poky-linux%2Fmy-test%2F0.1%2Frust-targets%2F%3CBR%20%2F%3E%7C%20NOTE%3A%20cargo%20%3D%20%2Fopt%2Fyocto%2Fimx-6.6.3-1.0.0-build%2Fbuild_fsl-imx-wayland%2Ftmp%2Fwork%2Farmv8a-poky-linux%2Fmy-test%2F0.1%2Frecipe-sysroot-native%2Fusr%2Fbin%2Fcargo%3CBR%20%2F%3E%7C%20NOTE%3A%20cargo%20build%20-v%20--frozen%20--target%20aarch64-poky-linux-gnu%20--release%20--manifest-path%3D%2Fopt%2Fyocto%2Fimx-6.6.3-1.0.0-build%2Fbuild_fsl-imx-wayland%2Ftmp%2Fwork%2Farmv8a-poky-linux%2Fmy-test%2F0.1%2Fgit%2F%2FCargo.toml%3CBR%20%2F%3E%7C%20error%3A%20the%20lock%20file%20%2Fopt%2Fyocto%2Fimx-6.6.3-1.0.0-build%2Fbuild_fsl-imx-wayland%2Ftmp%2Fwork%2Farmv8a-poky-linux%2Fmy-test%2F0.1%2Fgit%2FCargo.lock%20needs%20to%20be%20updated%20but%20--frozen%20was%20passed%20to%20prevent%20this%3CBR%20%2F%3E%7C%20If%20you%20want%20to%20try%20to%20generate%20the%20lock%20file%20without%20accessing%20the%20network%2C%20remove%20the%20--frozen%20flag%20and%20use%20--offline%20instead.%3CBR%20%2F%3E%7C%20WARNING%3A%20%2Fopt%2Fyocto%2Fimx-6.6.3-1.0.0-build%2Fbuild_fsl-imx-wayland%2Ftmp%2Fwork%2Farmv8a-poky-linux%2Fmy-test%2F0.1%2Ftemp%2Frun.do_compile.24257%3A185%20exit%20101%20from%20'%22cargo%22%20build%20-v%20--frozen%20--target%20aarch64-poky-linux-gnu%20--release%20--manifest-path%3D%2Fopt%2Fyocto%2Fimx-6.6.3-1.0.0-build%2Fbuild_fsl-imx-wayland%2Ftmp%2Fwork%2Farmv8a-poky-linux%2Fmy-test%2F0.1%2Fgit%2F%2FCargo.toml%20%22%24%40%22'%3CBR%20%2F%3E%7C%20WARNING%3A%20Backtrace%20(BB%20generated%20script)%3A%3CBR%20%2F%3E%7C%20%231%3A%20oe_cargo_build%2C%20%2Fopt%2Fyocto%2Fimx-6.6.3-1.0.0-build%2Fbuild_fsl-imx-wayland%2Ftmp%2Fwork%2Farmv8a-poky-linux%2Fmy-test%2F0.1%2Ftemp%2Frun.do_compile.24257%2C%20line%20185%3CBR%20%2F%3E%7C%20%232%3A%20cargo_do_compile%2C%20%2Fopt%2Fyocto%2Fimx-6.6.3-1.0.0-build%2Fbuild_fsl-imx-wayland%2Ftmp%2Fwork%2Farmv8a-poky-linux%2Fmy-test%2F0.1%2Ftemp%2Frun.do_compile.24257%2C%20line%20157%3CBR%20%2F%3E%7C%20%233%3A%20do_compile%2C%20%2Fopt%2Fyocto%2Fimx-6.6.3-1.0.0-build%2Fbuild_fsl-imx-wayland%2Ftmp%2Fwork%2Farmv8a-poky-linux%2Fmy-test%2F0.1%2Ftemp%2Frun.do_compile.24257%2C%20line%20152%3CBR%20%2F%3E%7C%20%234%3A%20main%2C%20%2Fopt%2Fyocto%2Fimx-6.6.3-1.0.0-build%2Fbuild_fsl-imx-wayland%2Ftmp%2Fwork%2Farmv8a-poky-linux%2Fmy-test%2F0.1%2Ftemp%2Frun.do_compile.24257%2C%20line%20198%3CBR%20%2F%3EERROR%3A%20Task%20(%2Fopt%2Fyocto%2Fimx-6.6.3-1.0.0-build%2Fsources%2Fmeta-my-test%2Frecipes-cargo%2Finstall%2Fmy-test_0.1.bb%3Ado_compile)%20failed%20with%20exit%20code%20'1'%3CBR%20%2F%3ENOTE%3A%20Tasks%20Summary%3A%20Attempted%205745%20tasks%20of%20which%205743%20didn't%20need%20to%20be%20rerun%20and%201%20failed.%3CBR%20%2F%3E%60%60%60%3C%2FP%3E%3CP%3EI%20had%20run%20%60bitbake%20-f%20my-test%20core-image-minimal%60.%20BBLAYERS%20was%20appended%20as%20well.%3CBR%20%2F%3E%3CBR%20%2F%3ESimply%3A%20How%20to%20compile%20and%20install%20a%20Rust%20program%20into%20iMX93EVK%20%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1863493%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20How%20to%20compile%20have%20cargo%20build%20within%20a%20meta-layer%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1863493%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EGood%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1863448%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20How%20to%20compile%20have%20cargo%20build%20within%20a%20meta-layer%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1863448%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EI%20am%20a%20fool%2C%20more%20precisely%20a%20newbie.%20The%20repo%20I%20was%20referring%20to%20(%3CA%20href%3D%22https%3A%2F%2Fgitlab.com%2Fpbarker.dev%2Frust%2Fprint-rand%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttps%3A%2F%2Fgitlab.com%2Fpbarker.dev%2Frust%2Fprint-rand%3C%2FA%3E)%20had%20no%20Cargo.lock%20file.%20I%20ran%20it%20manually%20on%20my%20machine%20copied%20file%20over%20and%20voila!%3CBR%20%2F%3E%3CBR%20%2F%3EThe%20path%20the%20repo%20was%20downloaded%20was%20%60%2Fopt%2Fyocto%2Fimx-6.6.3-1.0.0-build%2Fbuild_fsl-imx-wayland%2Ftmp%2Fwork%2Farmv8a-poky-linux%2Fmy-test%2F0.1%2Fgit%2F%60%20by%20default.%20Well%20I%20can%20override%20that%20somehow.%20This%20was%20a%20non-issue.%20Well%20hopefully%20helps%20other%20noobs%20out%20in%20the%20future.%3CBR%20%2F%3E%3CBR%20%2F%3EEdit%3A%20Some%20other%20pitfalls%3A%3CBR%20%2F%3E*%20%60IMAGE_INSTALL%60%20did%20not%20work%20in%20my%20case%2C%20but%20%60CORE_IMAGE_EXTRA_INSTALL%60%20allowed%20me%20to%20add%20custom%20layer's%20bb%20files%20to%20%60bitbake%20core-image-minimal%60%20build.%20Recipe%20name%20is%20irrelevant%20for%20all%20I%20can%20tell.%3CBR%20%2F%3E*%20On%20first%20run%2C%20I%20encountered%20missing%20crate%20hashes.%20Luckily%20the%20fix%20is%20printed%20on.%20Adding%20those%20with%20a%20%60.inc%60%20file%20beside%20the%20%60.bb%60%20file%20was%20sufficient%20to%20get%20over%20it%20without%20modifying%20.bb%20file%20%60cargo%20bitbake%60%20command%20generates.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1863434%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20How%20to%20compile%20have%20cargo%20build%20within%20a%20meta-layer%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1863434%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CBR%20%2F%3Ecbugk-dannie%3CBR%20%2F%3Ecbugk-dannie%3CBR%20%2F%3EContributor%20I%3CBR%20%2F%3EBTW%2C%20this%20line%20in%20the%20original%20post%20tells%20me%20cargo%20itself%20is%20functional%3A%3CBR%20%2F%3E%60%60%60%3CBR%20%2F%3Eerror%3A%20the%20lock%20file%20%2Fopt%2Fyocto%2Fimx-6.6.3-1.0.0-build%2Fbuild_fsl-imx-wayland%2Ftmp%2Fwork%2Farmv8a-poky-linux%2Fmy-test%2F0.1%2Fgit%2FCargo.lock%20needs%20to%20be%20updated%20but%20--frozen%20was%20passed%20to%20prevent%20this%3CBR%20%2F%3E%60%60%60%3CBR%20%2F%3EWhat%20I%20am%20missing%20is%20not%20knowing%20how%20to%20use%20the%20default%20Yocto%20behaviour%20of%20--frozen%20with%20an%20ordinary%20cargo%20project.%3CBR%20%2F%3E%3CBR%20%2F%3EBut%20I%20suppose%20this%20is%20outside%20of%20the%20scope%20of%20NXP.%20Still%2C%20ou%20guys%20commented%20on%20having%20scripts%20and%20all%20on%20some%20other%20posts%20on%20this%20forum.%20So%20thought%20worth%20a%20shot%2C%20would%20appreciate%20any%20such%20tips%20if%20any.%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1863386%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20How%20to%20compile%20have%20cargo%20build%20within%20a%20meta-layer%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1863386%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EFirstly%2C%20thanks.%3CBR%20%2F%3E%3CBR%20%2F%3EI%20get%20following%20error%20when%20added%20%60DEPENDS%20%2B%3D%20%22%20meta-rust%20%22%60%20to%20bb%20file.%20I%20thought%20%60meta-rust%60%20was%20absorbed%20into%20%60oe-core%60%2C%20so%20do%20I%20really%20need%20it%20on%20nanbield%3F%3CBR%20%2F%3E%3CBR%20%2F%3E%60%60%60%3CBR%20%2F%3ELoading%20cache%3A%20100%25%20%7C%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%7C%20Time%3A%200%3A00%3A00Loaded%205451%20entries%20from%20dependency%20cache.%20NOTE%3A%20Resolving%20any%20missing%20task%20queue%20dependencies%20ERROR%3A%20Nothing%20PROVIDES%20'meta-rust'%20(but%20%2Fopt%2Fyocto%2Fimx-6.6.3-1.0.0-build%2Fsources%2Fmeta-my-test%2Frecipes-my%2Fcompany%2Fmy-test_0.1.bb%20DEPENDS%20on%20or%20otherwise%20requires%20it)%20ERROR%3A%20Required%20build%20target%20'my-test'%20has%20no%20buildable%20providers.%3CBR%20%2F%3EMissing%20or%20unbuildable%20dependency%20chain%20was%3A%20%5B'my-test'%2C%20'meta-rust'%5D%20Summary%3A%20There%20were%202%20ERROR%20messages%2C%20returning%20a%20non-zero%20exit%20code.%3CBR%20%2F%3E%60%60%60%3CBR%20%2F%3E%3CBR%20%2F%3EEdit%3A%20I%20also%20added%20it%20as%20another%20echo%20of%20%60BBLAYERS%60%20in%20imx-setup-release.sh%20and%20to%20manifest%20of%20repo%20tool.%20However%2C%20nanbield%20is%20not%20compatible%20with%20this%20modus%20operandi%3A%3C%2FP%3E%3CP%3E%60%60%60ERROR%3A%20Layer%20rust-layer%20is%20not%20compatible%20with%20the%20core%20layer%20which%20only%20supports%20these%20series%3A%20nanbield%20(layer%20is%20compatible%20with%20mickledore%20honister%20hardknott%20gatesgarth%20kirkstone)%60%60%60%3C%2FP%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1861552%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20How%20to%20compile%20have%20cargo%20build%20within%20a%20meta-layer%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1861552%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%3C%2FP%3E%0A%3CP%3ERust%20is%20not%20include%20in%20the%20default%20BSP%2C%20you%20have%20to%20add%20it%20to%20yocto.%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Finterrupt.memfault.com%2Fblog%2Frust-in-yocto%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Finterrupt.memfault.com%2Fblog%2Frust-in-yocto%3C%2FA%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3ERegards%3C%2FP%3E%0A%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E