Hi Tomas,

Tomas Volf <[email protected]> writes:

> Hello,
>
> I am trying to package cbindgen-0.29.2 for certain Guix channel, but it

First of all recently there have been some work from Ian, here
<https://codeberg.org/guix/guix/pulls/4804/commits/0ab7d68d0534c02c9c7f633330378a68afa4c9c2>,
packaging cbindgen 0.29. So you could also just use that if you wanted.

> is first time trying to use the new approach to the rust-based
> application, so I am unsure is this supposed to be done "correctly".

I would say the correct intended way is to let this all get handled
by the importer, the same way when you're creating a package, updating
the package etc. Really there shouldn't be much need to deal
with Cargo dependencies by hand. The only unsupported scenario is
workspace git dependencies, where you indeed do have to do something manually.

Use the etc/teams/rust/rust-crates.tmpl from Guix for rust crates file
in your channel and then follow the
https://guix.gnu.org/cookbook/en/html_node/Common-Workflow-for-Rust-Packaging.html>
rust packaging workflow, replacing the bits with your own rust crates
file and the package you desire. lookup-cargo-inputs accepts a module to
use for the rust crates.

Regards
Rutherther

Reply via email to