From aed06a6e6e43553e3481c0eb841a80bc4aabc391 Mon Sep 17 00:00:00 2001 From: Barsik Date: Mon, 25 Mar 2024 10:49:37 +0200 Subject: [PATCH] Add details about `Cargo.lock` in PUBLISH_IGNORE_LIST This commit adds a description for `Cargo.lock` in the constant array `PUBLISH_IGNORE_LIST`. It provides an understanding that, `Cargo.lock` is an auto-generated file by Cargo having versions of dependencies which doesn't impact functionality. --- module/move/willbe/src/entity/diff.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/module/move/willbe/src/entity/diff.rs b/module/move/willbe/src/entity/diff.rs index cb218122dd..49ef63b29a 100644 --- a/module/move/willbe/src/entity/diff.rs +++ b/module/move/willbe/src/entity/diff.rs @@ -19,6 +19,7 @@ mod private /// /// - `.cargo_vcs_info.json` - contains the git sha1 hash that varies between different commits /// - `Cargo.toml` - can be safely modified because it is used to generate the `Cargo.toml` file automatically, and the `Cargo.toml` file is sufficient to check for changes + /// - `Cargo.lock` - this file is generated automatically by Cargo. It contains the exact versions of dependencies that your project is using. Changes in this file do not affect the functionality pub const PUBLISH_IGNORE_LIST : [ &str; 3 ] = [ ".cargo_vcs_info.json", "Cargo.toml", "Cargo.lock" ];