# 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" rust-version = "1.70.0" name = "cargo-run-bin" version = "1.7.4" authors = ["Dustin Blackman"] exclude = [ ".cargo-husky", "tests/", "cliff.toml", "deny.toml", "rust-toolchain.toml", ] description = "Build, cache, and run binaries scoped in Cargo.toml rather than installing globally. This acts similarly to npm run and gomodrun, and allows your teams to always be running the same tooling versions." homepage = "https://github.com/dustinblackman/cargo-run-bin" 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-run-bin" [package.metadata.bin.cargo-cmd] locked = true version = "0.3.1" [package.metadata.bin.cargo-deny] locked = true version = "0.13.5" [package.metadata.bin.cargo-gha] locked = true version = "1.0.2" [package.metadata.bin.cargo-insta] locked = true version = "1.31.0" [package.metadata.bin.cargo-llvm-cov] locked = true version = "0.5.25" [package.metadata.bin.cargo-nextest] locked = true version = "0.9.57" [package.metadata.bin.cargo-watch] locked = true version = "8.4.0" [package.metadata.bin.committed] locked = true version = "1.0.20" [package.metadata.bin.dustinblackman-hello-world] bins = [ "hello-world-first", "hello-world-second", ] git = "https://github.com/dustinblackman/rust-hello-world" version = "0.2.1" [package.metadata.bin.git-cliff] locked = true version = "1.3.1" [package.metadata.commands] get-nightly-name = "echo runbin-nightly" lint = """ set -e cargo cmd setup-nightly cargo +runbin-nightly fmt -- --check cargo clippy cargo deny check licenses -s """ lint-fix = """ set -e cargo cmd setup-nightly cargo clippy --fix --allow-dirty cargo fix --allow-dirty cargo +runbin-nightly fmt """ release = """ set -e export RB_VERSION=$(cat Cargo.toml | grep version | head -n1 | awk -F '\"' '{print $2}') cargo check cargo bin git-cliff -o CHANGELOG.md --tag \"v$RB_VERSION\" git add . git commit -m \"feat: Release v$RB_VERSION\" git tag -a \"v$RB_VERSION\" -m \"v$RB_VERSION\" git push git push --tags cargo publish cargo gha gh release create \"v$RB_VERSION\" --generate-notes cargo bin git-cliff --latest --strip header | cargo gha gh release edit \"v$RB_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 runbin-nightly \"$(rustup toolchain list -v | grep $NIGHTLY | grep '^nightly-' | awk '{print $2}')\" """ test = """ set -e rm -rf .tmp cargo build cargo nextest run -j 1 """ test-coverage = """ set -e rm -rf .tmp cargo build cargo llvm-cov nextest -j 1 --ignore-filename-regex='_test.rs' """ test-coverage-html = """ set -e rm -rf .tmp cargo build cargo llvm-cov nextest -j 1 --open --ignore-filename-regex='_test.rs' """ test-coverage-lcov = """ set -e rm -rf .tmp cargo build rm -f lcov.info cargo llvm-cov nextest -j 1 --lcov --output-path lcov.info --ignore-filename-regex='_test.rs' """ test-watch = """ set -e cargo watch -i .cargo -x 'cmd test' """ [package.metadata.docs.rs] all-features = false features = [] [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.dev.package.insta] opt-level = 3 [profile.dev.package.similar] opt-level = 3 [profile.dist] inherits = "release" [profile.release] opt-level = 3 lto = "thin" strip = "symbols" [[bin]] name = "cargo-bin" path = "src/main.rs" required-features = ["cli"] [dependencies.anyhow] version = "1.0.40" [dependencies.cfg-if] version = "1.0.0" [dependencies.clap] version = "4.3.19" optional = true [dependencies.rustversion] version = "1.0.14" [dependencies.serde] version = "1.0.149" features = ["derive"] [dependencies.toml] version = "0.5.9" [dependencies.toml_edit] version = "0.19.14" [dependencies.version_check] version = "0.9.3" [dependencies.which] version = "4.4.0" [dev-dependencies.assert_cmd] version = "2.0.12" [dev-dependencies.cargo-husky] version = "1.5.0" features = ["user-hooks"] default-features = false [dev-dependencies.insta] version = "1.31.0" features = ["yaml"] [features] cli = ["dep:clap"] default = ["cli"]