浏览代码

fix: #2781[,#2781]: added clarity regarding lockfile (#2784)

Co-authored-by: fack <fack>
facklambda 3 年之前
父节点
当前提交
80ffa87edb
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      docs/usage/development/development.md

+ 1 - 1
docs/usage/development/development.md

@@ -22,5 +22,5 @@ The first time you run this command, it will take several minutes for the Rust p
 Once Rust has finished building, the webview will open and it should display your web app. You can make changes to your web app, and if your tooling enables it, the webview should update automatically just like a browser. When you make changes to your Rust files, they will be rebuilt automatically and your app will restart.
 Once Rust has finished building, the webview will open and it should display your web app. You can make changes to your web app, and if your tooling enables it, the webview should update automatically just like a browser. When you make changes to your Rust files, they will be rebuilt automatically and your app will restart.
 
 
 <Alert title="A note about Cargo.toml and Source Control" icon="info-alt">
 <Alert title="A note about Cargo.toml and Source Control" icon="info-alt">
-  In your project repository, you SHOULD commit the "src-tauri/Cargo.toml" to git because you want it to be deterministic. You SHOULD NOT commit the "src-tauri/target" folder or any of its contents.
+  In your project repository, you SHOULD commit the "src-tauri/Cargo.lock" along with the "src-tauri/Cargo.toml" to git because Cargo uses the lockfile to provide deterministic builds. As a result, it is recommended that all applications check in their Cargo.lock. You SHOULD NOT commit the "src-tauri/target" folder or any of its contents.
 </Alert>
 </Alert>