rust-hello-world is actually used in test images to verify that toolchains produce working binaries.
For zvariant I guess meta-skeleton would work best, if the recipe comes with a README explaining why is it there, and how to handle maintenance of similar recipes. Alex On Mon, 27 Mar 2023 at 10:58, Peter Bergin <[email protected]> wrote: > > > On 2023-03-26 16:56, Frederic Martinsons wrote: > > From: Frederic Martinsons <[email protected]> > > > > This recipe is for showing a "real world" example of > > a crate that depends on some git repositories. > > > > Usually, this kind of crate is built within a global > > workspace (here it is the zbus project) and so > > doesn't need a Cargo.lock on its own. > > > > For the sake of the demonstration, I had to add > > a patch for providing a Cargo.lock and modifying > > zvariant_derive to get it from crates.io instead > > of pulling locally with a relative path. > > > > The use case where the crate had some git repository > > in dependency is very common for "private" crate that > > are not aimed to be published on crates.io. > > When the project grow bigger, it is common to have > > a bin and multiple lib developped in parallel, and these > > libs are surely on a git repostitory. > > > > Hence the need of this support in oe-core. > > > > Signed-off-by: Frederic Martinsons <[email protected]> > > --- > > .../rust-example/zvariant-crates.inc | 140 ++ > > .../0001-Tweak-zvariant-cargo-config.patch | 1249 +++++++++++++++++ > > .../rust-example/zvariant_3.12.0.bb | 20 + > > 3 files changed, 1409 insertions(+) > > create mode 100644 meta/recipes-extended/rust-example/zvariant-crates.inc > > create mode 100644 > > meta/recipes-extended/rust-example/zvariant/0001-Tweak-zvariant-cargo-config.patch > > create mode 100644 meta/recipes-extended/rust-example/zvariant_3.12.0.bb > > Why not use meta-skeleton for the examples? I know and have seen before > that for some reason the rust-example is placed in oe-core/meta, but > think rust-example should have its home in meta-skeleton as it is the > place for example recipes. Just a suggestion to move this now before > filling up more example recipes among the core recipes. > > /Peter > > > > >
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#179151): https://lists.openembedded.org/g/openembedded-core/message/179151 Mute This Topic: https://lists.openembedded.org/mt/97862976/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
