# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO # # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies # to registry (e.g., crates.io) dependencies. # # If you are reading this file be aware that the original Cargo.toml # will likely look very different (and much more reasonable). # See Cargo.toml.orig for the original contents. [package] edition = "2021" name = "cargo-gha" version = "1.0.2" authors = ["Dustin Blackman"] description = "Version lock, cache, and run binaries from any Github Release assets. Pull in external tools and keep the versions in sync across your team, and forget installing globally." homepage = "https://github.com/dustinblackman/cargo-gha" readme = "README.md" keywords = [ "dev-experiance", "developer-experiance", "bin", "cache", "cli", ] categories = [ "command-line-utilities", "development-tools::cargo-plugins", ] license = "MIT" repository = "https://github.com/dustinblackman/cargo-gha" [package.metadata.bin.cargo-binstall] version = "1.4.6" [package.metadata.bin.cargo-cmd] version = "0.3.1" [package.metadata.bin.cargo-deny] version = "0.13.5" [package.metadata.bin.cargo-xwin] version = "0.16.2" [package.metadata.bin.committed] version = "1.0.20" [package.metadata.bin.dprint] version = "0.40.2" [package.metadata.bin.git-cliff] version = "1.3.1" [package.metadata.commands] get-nightly-name = "echo cargogha-nightly" lint = """ set -e cargo cmd setup-nightly cargo +cargogha-nightly fmt -- --check cargo clippy cargo bin dprint check cargo deny check licenses -s """ lint-fix = """ set -e cargo cmd setup-nightly cargo clippy --fix --allow-dirty cargo fix --allow-dirty cargo +cargogha-nightly fmt cargo bin dprint fmt """ release = """ set -e export GHA_VERSION=$(cat Cargo.toml | grep version | head -n1 | awk -F '\"' '{print $2}') cargo check cargo bin git-cliff -o CHANGELOG.md --tag \"v$GHA_VERSION\" cargo bin dprint fmt git add . git commit -m \"feat: Release v$GHA_VERSION\" git tag -a \"v$GHA_VERSION\" -m \"v$GHA_VERSION\" git push git push --tags cargo publish cargo run gh release create \"v$GHA_VERSION\" --generate-notes cargo bin git-cliff --latest --strip header | cargo bin dprint fmt --stdin md | cargo run -- gh release edit \"v$GHA_VERSION\" --notes-file - """ setup-nightly = """ export NIGHTLY=nightly-2023-06-16 rustup toolchain list -v | grep -q \"$NIGHTLY\" || rustup toolchain install \"$NIGHTLY\" --force --component llvm-tools-preview rustfmt rustup toolchain link cargogha-nightly \"$(rustup toolchain list -v | grep $NIGHTLY | grep '^nightly-' | awk '{print $2}')\" """ [package.metadata.gha] targets = ["aarch64-apple-darwin"] [[package.metadata.gha.assets]] binaries = ["gh"] owner_repo = "cli/cli" tag = "v2.40.1" [package.metadata.gha.assets.target_archives] aarch64-apple-darwin = "gh_{NOVTAG}_macOS_arm64.zip" [profile.release] opt-level = 3 lto = "thin" strip = "symbols" [dependencies.anyhow] version = "1.0.75" [dependencies.async-compression] version = "0.4.1" features = [ "tokio", "gzip", "xz", ] [dependencies.clap] version = "4.3.23" [dependencies.ctrlc] version = "3.4.0" [dependencies.detect-targets] version = "0.1.10" [dependencies.dialoguer] version = "0.10.4" features = ["editor"] default-features = false [dependencies.octocrab] version = "0.29.3" features = [ "timeout", "retry", "rustls", ] default-features = false [dependencies.owo-colors] version = "3.5.0" [dependencies.reqwest] version = "0.11.18" features = [ "stream", "rustls-tls", "json", ] default-features = false [dependencies.serde] version = "1.0.185" features = ["derive"] [dependencies.tokio] version = "1.32.0" features = [ "macros", "rt-multi-thread", ] [dependencies.tokio-stream] version = "0.1.14" [dependencies.tokio-tar] version = "0.3.1" [dependencies.tokio-util] version = "0.7.8" [dependencies.toml] version = "0.7.6" [dependencies.toml_edit] version = "0.19.14" [dependencies.walkdir] version = "2.3.3" [dependencies.zip] version = "0.6.6" features = ["deflate"] default-features = false [dev-dependencies.cargo-husky] version = "1.5.0" features = ["user-hooks"] default-features = false