Hi Ximin, Sylvestre, Fabian, all,
In Rust for Linux, we are considering using host-only/userspace Rust >libraries (e.g. `syn`), and we were asked to check whether it would be >possible to just pick them from the distribution (since, in principle,
they don't require kernel-specific changes).
What is the policy in Debian for those? I was told about
`debcargo-conf` by Zixing Liu, and indeed I can see e.g. `syn` there
in `librust-syn-dev`, which places the sources at >`/usr/share/cargo/registry/`, which is great for what we need. Is that >correct? This would be useful for kernel developers that do not trust >third-party repositories (not even Rust's/crates.io/the upstream
repository).
By the way, is there a way to query where the sources are (i.e. that
path) in a "standard" way (e.g. like `pkg-config`)? Or, at least, can
we assume it should be stable? (e.g. for automated detection and/or >instructions we may want to provide).
On Fri, Apr 19, 2024 at 8:13 PM Fabian Grünbichler ><debian@fabian.gruenbichler.email> wrote:bundled C code and similar things, which is done via orig tarball repacking) are also shipped there, so the delta is easily reviewable. The whole directory structure can be used as (partial) drop-in for crates.io by configuring cargo accordingly (in
Yes, all crates packaged by the Rust team (and most packaged for consumption by other packages/as build-deps by people outside of the team) ship their (patched for distro use) sources in a subdir there. The patches (except for wholesale exclusions of
Thanks for the quick reply!
I see -- in principle, we only need the sources, i.e. we would not
compile the crates using Cargo. Are the patches applied to the sources >already, or are they applied by that cargo wrapper you mention at
build time? (Well, assuming users should use the patched versions).
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 546 |
Nodes: | 16 (0 / 16) |
Uptime: | 159:12:11 |
Calls: | 10,384 |
Calls today: | 1 |
Files: | 14,056 |
Messages: | 6,416,491 |