Skip to content

rustpkg Initialize BuildContext/WorkCache later in the build process #11474

Closed
@nielsle

Description

@nielsle

The BuildContext mainly consists of WorkCache, and that is not needed for commands like "rustpkg init". Therefore it would be nice to initialize BuildContext later in the build process.

Right now "rustpkg init" calls a method on the trait CtxMethods which is implemented by BuildContext, so you cannot run "rustpkg init" without initializing BuildContexts, so we should start out replacing the methods of CtxMethods with functions.

This issue keeps track of the work and resulting cleanups.

PS: I started out trying to do everything in one pull request, but it became a little too long so I retracted it again #11379

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions