|
From: | Ivan Petkov |
Subject: | [bug#38408] [PATCH] WIP patches for the rust importer |
Date: | Tue, 3 Dec 2019 18:40:37 -0800 |
Hi Martin,
All rust libs should be source only imports, but each package definition should only declare dependencies on the crates it consumes directly and guix should figure out the rest (in other words, I’d expect there to be a one-to-one mapping between a Cargo.toml and a package definition). For example, if crate foo depends on crate bar which depends on crate baz, I’d expect the definitions to look like: (define-public rust-foo (package (name “rust-foo") (source-input `((“bar” ,bar))))) (define-public rust-bar (package (name “rust-bar") (source-input `((“baz” ,baz))))) (define-public rust-baz (package (name “rust-baz"))) But while building foo (assuming it is some kind of application), guix would ensure that bar and baz are available in the build environment. IMO this direction would be the most maintainable in the long term. —Ivan |
[Prev in Thread] | Current Thread | [Next in Thread] |