Skip to content

Rustpkg should extract dependencies from extern mod statements. #5681

Closed
@graydon

Description

@graydon

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 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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    E-hardCall for participation: Hard difficulty. Experience needed to fix: A lot.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions