public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* [PATCH v2 0/3] Add helper and documentation for rust packaging
@ 2026-03-31  8:10 'Quirin Gylstorff' via isar-users
  2026-03-31  8:10 ` [PATCH v2 1/3] Add script to generate a recipe for cargo.io crates 'Quirin Gylstorff' via isar-users
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: 'Quirin Gylstorff' via isar-users @ 2026-03-31  8:10 UTC (permalink / raw)
  To: isar-users

From: Quirin Gylstorff <quirin.gylstorff@siemens.com>


This adds based on https://rust-team.pages.debian.net/book/ some
documentation add a generator to package rust crates.

The generator is the same as used by Debian but we don't use the
approach from debcargo-conf as `debcargo cargo` executes the following
steps add once:
- fetch source
- generate orig tarball
- generate debian folder

As this is not compatible with the concepts of bitbake recipes we use
the http fetcher and the by `debcargo` generated debian folder. This
approach is intended to build crates stored in a registry(e.g. crates.io).

The crates package generated by this script should be package upstream
to avoid maintaining them forever.

Crates not in a registry need to manually packaged.

Changes v2:
 - add MIT-0 license to generated rust recipes
 - use BPN instead of PN in rust-hello-isar
 - add line for cargo-debstatus to check already packaged dpendencies

Quirin Gylstorff (3):
  Add script to generate a recipe for cargo.io crates
  Add example of a rust hello world as isar recipe
  user_manual: add rust section

 doc/user_manual.md                            | 68 ++++++++++++++
 .../recipes-app/rust-hello-isar/files/rules   | 27 ++++++
 .../files/rust-hello-isar/Cargo.toml          |  6 ++
 .../files/rust-hello-isar/src/main.rs         |  3 +
 .../rust-hello-isar/rust-hello-isar_0.1.bb    | 22 +++++
 scripts/generate_cargo_crate.sh               | 88 +++++++++++++++++++
 6 files changed, 214 insertions(+)
 create mode 100755 meta-isar/recipes-app/rust-hello-isar/files/rules
 create mode 100644 meta-isar/recipes-app/rust-hello-isar/files/rust-hello-isar/Cargo.toml
 create mode 100644 meta-isar/recipes-app/rust-hello-isar/files/rust-hello-isar/src/main.rs
 create mode 100644 meta-isar/recipes-app/rust-hello-isar/rust-hello-isar_0.1.bb
 create mode 100755 scripts/generate_cargo_crate.sh

-- 
2.53.0

-- 
You received this message because you are subscribed to the Google Groups "isar-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to isar-users+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/isar-users/20260331081019.32111-1-Quirin.Gylstorff%40siemens.com.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-03-31  8:10 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-03-31  8:10 [PATCH v2 0/3] Add helper and documentation for rust packaging 'Quirin Gylstorff' via isar-users
2026-03-31  8:10 ` [PATCH v2 1/3] Add script to generate a recipe for cargo.io crates 'Quirin Gylstorff' via isar-users
2026-03-31  8:10 ` [PATCH v2 2/3] Add example of a rust hello world as isar recipe 'Quirin Gylstorff' via isar-users
2026-03-31  8:10 ` [PATCH v2 3/3] user_manual: add rust section 'Quirin Gylstorff' via isar-users

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox