Closed
Description
Sub-bug of #5677
Rustpkg currently parses pkg.rs
to figure out dependencies between packages. This has to change:
- As discussed in Rustpkg should infer crates to build #5680 rustpkg should usually operate without any
pkg.rs
files. It needs to find dependencies by inference by default. This means reading the source files and looking forextern mod
statements (post-syntax-expansion and post-cfg-filtering). - As discussed in Rustpkg should operate on a URL-like pkgid #5679 the strings found in
extern mod
statements should be pkgids, which should be enough to find and install a package through a variety of mechanisms (RUST_PATH search order, falling back to local binary package management and/or fetching source from a URL)