On 25/3/22 18:05, Paul Alesius wrote: > Rust analyzer is a language server for the Rust programming language. > > I've tried to produce a patch for the latest version, and it has > probably hundreds of dependencies that need to be updated. [...] > I'd suggest that a Guix package for rust-analyzer is not needed, > especially due to the excessive time required to update its package > definition and all of the vendored dependency crates, and focus should > instead be on rust and rust-cargo. I understand how defeating it feels when looking at the countless hundreds of dependencies that get pulled in, however, I believe this can be solved by improving the importers in Guix.  I think it requires too much manual labour to maintain packages curretly, particularly when refresh -u will only update the package version and not dependencies. Therefore I'm working on making use of https://github.com/rust-lang/crates.io-index to fully import base definitions all required crates rather than pulling metadata from the internet with each refresh. Maintaining rust packages then becomes mostly 1. Refresh generated package definitions 2. In a separate file edit any hacks/fix needed argument fields etc 3. Edit cargo-build-system to account for the most common hacks like setting LIBCLANG_PATH. It should be easy for a guix user to get all the latest crates that they would get using cargo. I think importers can be taken to the next level by going beyond metadata and actually inspecting the contents of source files. For example grepping build files it can be determined if pkg-config is used and add it to inputs. an index of .pc files can automatically detect and add the inputs a package is most likely looking for. One complaint about Guix is that typically just running ./configure; make on a project will not work, but if a guix can have a Universal Importer where running guix wave-magic-wand in a directory can inspect files, determine the build system, required inputs etc and build a program, would that not be wonderful for programmers? Working on KDE made me feel like I was wasting too much time manually adding inputs and would be better of writing an importer. Using rust in a hypothetical, imagine if a rust developer that is otherwise uninterested in Guix, they just want to build their software and distribute actually chooses to use Guix not due to idealism but because it: A. Handles their rust dependecies at least as well as cargo. B. Handles their non-rust dependencies even better. C. Improved Guix pack/build can produce distributable packages, stripped of uneeded files that actually runs on other distributions. Would that not be awesome?