Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Package workspaces #13947

Merged
merged 3 commits into from
Jul 26, 2024
Merged

Package workspaces #13947

merged 3 commits into from
Jul 26, 2024

Commits on Jul 24, 2024

  1. Factor out a function for building a NewCrate.

    Co-Authored-By: Tor Hovland <55164+torhovland@users.noreply.github.com>
    jneem and torhovland committed Jul 24, 2024
    Configuration menu
    Copy the full SHA
    8771230 View commit details
    Browse the repository at this point in the history
  2. Add tests showing incorrect workspace packaging.

    Co-Authored-By: Tor Hovland <55164+torhovland@users.noreply.github.com>
    jneem and torhovland committed Jul 24, 2024
    Configuration menu
    Copy the full SHA
    cbc836d View commit details
    Browse the repository at this point in the history
  3. Adds support for packaging workspaces.

    Takes local dependencies into account when packaging a workspace. Builds
    a temporary package registry to provide local dependencies, and overlays
    it on the upstream registry.
    
    This adds `--registry` and `--index` flags to `cargo package`. They act
    much like the same arguments to `cargo publish`, except that of course
    we are not actually publishing to the specified registry. Instead, these
    arguments affect lock-file generation for intra-workspace dependencies:
    when simultaneously packaging a crate and one of its dependencies, the
    lock-file will be generated under the assumption that the dependency
    will be published to the specified registry.
    
    Co-Authored-By: Tor Hovland <55164+torhovland@users.noreply.github.com>
    jneem and torhovland committed Jul 24, 2024
    Configuration menu
    Copy the full SHA
    a2f0a9e View commit details
    Browse the repository at this point in the history