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

feat: Initial support for single-file packages #12245

Merged
merged 10 commits into from
Jun 12, 2023
Merged

Commits on Jun 9, 2023

  1. feat: Add -Zscript

    epage committed Jun 9, 2023
    Configuration menu
    Copy the full SHA
    87e128b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c0dd8ae View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    21736ed View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    b2b4d97 View commit details
    Browse the repository at this point in the history
  5. feat(cli): Define precedence among subcommands

    I decided to start things off fairly simple.  It either looks like the user is
    specifying a manifest or they aren't.  This is assuming we only need to
    handle `cargo foo.rs` and `cargo ./foo.rs` and not `cargo foo`.
    I think in most shebang cases, path multiple components will present which makes
    that a dead giveaway and likely to not overlap with aliases and
    subcommands.
    
    For reference, dlang's dub goes a lot further
    1. Checks for the subcommand name being `-`
    2. Checks if subcommand name ends with `.d`
    3. Checks if subcommand name is built-in
    4. Checks if a file with the subcommand name exists
    5. Checks if a file with the subcommand name + `.d` exists
    
    This would allow a `run.d` to override `dub-run` which doesn't seem
    good.
    epage committed Jun 9, 2023
    Configuration menu
    Copy the full SHA
    1a30fc8 View commit details
    Browse the repository at this point in the history

Commits on Jun 10, 2023

  1. fix(cli): Warn on stable for precedence changes

    This will give us a window to collect feedback on if this affects
    anyone.
    epage committed Jun 10, 2023
    Configuration menu
    Copy the full SHA
    3c15d24 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    2bd9f14 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    c421e0b View commit details
    Browse the repository at this point in the history
  4. feat(cli): Pull in cargo-script-mvs core logic

    This is no where near the implementation we want but I think we should
    develop incrementally on top of what we already have.
    
    See https://github.com/epage/cargo-script-mvs/tree/main
    epage committed Jun 10, 2023
    Configuration menu
    Copy the full SHA
    33c9d8e View commit details
    Browse the repository at this point in the history
  5. docs(unstable): Expand on manifest commands so far

    This is written to reflect the current implementation though some parts
    might read a little weird because I didn't want to write throw-away
    documentation for when we change this.  For example, single-file
    packages are currently only supported in `cargo <command>` and not as
    manifest paths but this will change.
    epage committed Jun 10, 2023
    Configuration menu
    Copy the full SHA
    6b0b5a8 View commit details
    Browse the repository at this point in the history