From 9fa8180e416acb6bde8d5485a4e2736d3daa7c02 Mon Sep 17 00:00:00 2001 From: Denis Gorbachev <829578+DenisGorbachev@users.noreply.github.com> Date: Sat, 24 Aug 2024 16:11:03 +0700 Subject: [PATCH] chore: sort deps --- Cargo.toml | 4 ++-- README.md | 2 +- README.ts | 2 +- install.sh | 3 ++- lefthook.yml | 2 ++ rustfmt.toml | 1 + 6 files changed, 9 insertions(+), 5 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 70086ab..5c7e111 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,8 +1,8 @@ [package] name = "create-rust-github-repo" -description = "`create-rust-github-repo` is a CLI program that creates a new repository on GitHub, clones it locally, initializes a Rust project, copies the configs from a pre-existing directory." version = "0.5.3" edition = "2021" +description = "`create-rust-github-repo` is a CLI program that creates a new repository on GitHub, clones it locally, initializes a Rust project, copies the configs from a pre-existing directory." license = "Apache-2.0 OR MIT" homepage = "https://github.com/DenisGorbachev/create-rust-github-repo" repository = "https://github.com/DenisGorbachev/create-rust-github-repo" @@ -19,6 +19,6 @@ announcement = "" [dependencies] anyhow = "1.0.86" clap = { version = "4.3.24", features = ["derive", "env"] } -derive_setters = "0.1.6" derive-new = "0.6.0" +derive_setters = "0.1.6" fs_extra = "1.3.0" diff --git a/README.md b/README.md index 8ae938b..b70c65e 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,7 @@ create-rust-github-repo --name my-new-project --project-init-cmd "cargo init --l ## Installation ```shell -cargo install create-rust-github-repo +cargo install --locked create-rust-github-repo ``` ## Usage diff --git a/README.ts b/README.ts index 7c4721c..6addd0d 100755 --- a/README.ts +++ b/README.ts @@ -80,7 +80,7 @@ ${doc.stdout.trim()} ## Installation \`\`\`shell -cargo install ${name} +cargo install --locked ${name} \`\`\` ## Usage diff --git a/install.sh b/install.sh index ef25b62..8ebc110 100755 --- a/install.sh +++ b/install.sh @@ -10,8 +10,9 @@ npm install --global \ @commitlint/types@19.0.3 cargo install --git https://github.com/DenisGorbachev/cargo-doc2readme --branch dev -cargo install cargo-machete +cargo install cargo-machete --locked cargo install cargo-hack --locked +cargo install cargo-sort --locked # Install yj curl -L https://github.com/sclevine/yj/releases/download/v5.1.0/yj-linux-amd64 -o /tmp/yj diff --git a/lefthook.yml b/lefthook.yml index 7145cea..40482a4 100644 --- a/lefthook.yml +++ b/lefthook.yml @@ -19,6 +19,8 @@ pre-commit: run: remark --ignore-path .gitignore --quiet --frail --no-stdout . test-docs: run: cargo test --doc + sort-deps: + run: cargo sort lint-deps: run: cargo machete --with-metadata commit-msg: diff --git a/rustfmt.toml b/rustfmt.toml index 17c4930..58d45b5 100644 --- a/rustfmt.toml +++ b/rustfmt.toml @@ -2,3 +2,4 @@ max_width = 100500 chain_width = 60 array_width = 60 struct_lit_width = 0 +merge_derives = false