#io #name #reserve #tool #cargo-subcommand #helper #publish

app cargo-squatty

帮助您在 https://crates.io 上为您的软件包预留名称的工具

3 个版本 (1 个稳定版本)

1.0.0 2023 年 9 月 9 日
0.1.0 2023 年 9 月 8 日
0.0.0-reserved2023 年 9 月 8 日

#251 in Cargo 插件

MIT 许可证

8KB
107

cargo-squatty GitHub Crates.io GitHub Workflow Status (with event)

cargo-squatty 帮助您在 crates.io 上为您的软件包预留名称。

安装

$ cargo install cargo-squatty

使用

$ cargo squatty --help
Helper tool to reserve names for your crates on https://crates.io

Usage: cargo squatty [OPTIONS] --crate-name <CRATE_NAME>

Options:
      --crate-name <CRATE_NAME>
          Name of the crate to publish
      --crate-description <CRATE_DESCRIPTION>
          Description of the crate to publish. Defaults to the crate name
  -y, --yes
          Skip the confirmation prompt
  -o, --cargo-publish-opts <CARGO_PUBLISH_OPTS>
          Options to pass along to `cargo publish` e.g. `--dry-run`
  -h, --help
          Print help
  -V, --version
          Print version

$ cargo squatty --crate-name test-empty-crate-foobar
Do you want to publish the crate? [y/N] y
    Updating crates.io index
warning: manifest has no documentation, homepage or repository.
See https://doc.rust-lang.net.cn/cargo/reference/manifest.html#package-metadata for more info.
   Packaging test-empty-crate-foobar v0.0.0-reserved (/tmp/.tmpzULWEW)
   Verifying test-empty-crate-foobar v0.0.0-reserved (/tmp/.tmpzULWEW)
   Compiling test-empty-crate-foobar v0.0.0-reserved (/tmp/.tmpzULWEW/target/package/test-empty-crate-foobar-0.0.0-reserved)
    Finished dev [unoptimized + debuginfo] target(s) in 0.17s
    Packaged 4 files, 783.0B (614.0B compressed)
   Uploading test-empty-crate-foobar v0.0.0-reserved (/tmp/.tmpzULWEW)

滥用

我强烈反对使用此工具来霸占您无意使用的软件包名称。请负责任地使用此工具。

cargo-squattyMIT 许可证 下授权。

依赖项

~3–12MB
~137K SLoC