On this page:
5.1 Rust’s Cargo
ebuild-cargo%
new
8.2

5 Ebuild Templates

 (require ebuild-templates) package: ebuild

5.1 Rust’s Cargo

 (require ebuild-templates/cargo) package: ebuild

class

ebuild-cargo% : class?

  superclass: ebuild%

Pre-made class extending ebuild% for writing ebuilds using the cargo.eclass.

When creating a ebuild-cargo% object following values are automatically added to fields:
  • "cargo" to "inherit"ed eclasses

  • "$(cargo_crate_uris ${CRATES})" to SRC_URI

  • CRATES to a CRATES variable

constructor

(new ebuild-cargo% [CRATES CRATES])  (is-a?/c ebuild-cargo%)

  CRATES : (listof string?)