You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 for extern 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)
Sub-bug of #5677
Rustpkg currently parses
pkg.rsto figure out dependencies between packages. This has to change:pkg.rsfiles. It needs to find dependencies by inference by default. This means reading the source files and looking forextern modstatements (post-syntax-expansion and post-cfg-filtering).extern modstatements 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)