[Pkg-rust-maintainers] Comments regarding rust-miow_0.3.1-1_amd64.changes

Ximin Luo infinity0 at debian.org
Fri Aug 24 03:56:00 BST 2018


Angus Lees:
> [..]
> 
> Just anticipating your next question: Yes, the windows library is still
> required in Debian/unix.  It's possible for dependencies to be conditional
> on the target platform in cargo metadata, but this appears to be rarely
> used in practice (for a variety of reasons).  Most libraries instead just
> use conditional-compilation to compile down to no-ops on the wrong platform
> (ie: onus on the library author), rather than conditional cargo
> dependencies (ie: onus on the library consumer).
> 
> [..]

Just based on packaging the past ~200 crates I'd say I've seen more of the latter, which is why we have build failures for core-foundation, redox, and fuschia on unsupported platforms:

https://qa.debian.org/developer.php?login=pkg-rust-maintainers@alioth-lists.debian.net

I did experiment with generating dependencies like Build-Depends: librust-winapi+default-dev (>= 0.3) [windows-any] and got this working on the debcargo/dpkg side, but Cargo doesn't like it:

https://salsa.debian.org/rust-team/debcargo/issues/14
https://github.com/rust-lang/cargo/issues/5896

X

-- 
GPG: ed25519/56034877E1F87C35
GPG: rsa4096/1318EFAC5FBBDBCE
https://github.com/infinity0/pubkeys.git



More information about the Pkg-rust-maintainers mailing list