guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem building rust application


From: David Elsing
Subject: Re: Problem building rust application
Date: Tue, 26 Nov 2024 12:21:23 +0000

Hi,

Andreas Enge <andreas@enge.fr> writes:

> Is it a mistake in our build system that it does not realise we are not
> on macos? Apart from that, there are other specific macos and windows
> dependencies that could probably be dropped.

That is a known issue with Cargo [1], optional dependencies which are
not used need to present anyway. It is also the reason why there are
many Guix packages that are only useful for macOS or Windows IIUC.
kanata is not a library, so removing the lines in Cargo.toml like Efraim
suggested is probably easier (otherwise it would have to be done as a
snippet or patch). I didn't manage to do it with substitute* though,
because that does the replacements line by line.

I also noticed that version 1.7.0-prerelease-2 depends on Rust 1.79,
where the behavior of temporary lifetimes in `if` and `match`
expressions was changed [2]. With version 1.7.0-prelease-1 (the packages
are attached), the build was however sucessful with the default Rust
version in Guix (1.77). The kanata-* crates do not follow semver, so I
had to match their versions.

David

[1] https://github.com/rust-lang/cargo/issues/11352
[2] https://releases.rs/docs/1.79.0/

Attachment: kanata.scm
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]