File tree 1 file changed +18
-0
lines changed
1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -115,6 +115,7 @@ Each new feature described below should explain how to use it.
115
115
* Other
116
116
* [ gitoxide] ( #gitoxide ) --- Use ` gitoxide ` instead of ` git2 ` for a set of operations.
117
117
* [ script] ( #script ) --- Enable support for single-file ` .rs ` packages.
118
+ * [ lockfile-path] ( #lockfile-path ) --- Allows to specify a path to lockfile other than the default path ` <workspace_root>/Cargo.lock ` .
118
119
119
120
## allow-features
120
121
@@ -1625,6 +1626,23 @@ will prefer the value in the configuration. The allows Cargo to add new built-in
1625
1626
path bases without compatibility issues (as existing uses will shadow the
1626
1627
built-in name).
1627
1628
1629
+ ## lockfile-path
1630
+ * Original Issue: [ #5707 ] ( https://github.com/rust-lang/cargo/issues/5707 )
1631
+ * Tracking Issue: [ #14421 ] ( https://github.com/rust-lang/cargo/issues/14421 )
1632
+
1633
+ This feature allows you to specify the path of lockfile Cargo.lock.
1634
+ By default, lockfile is written into ` <workspace_root>/Cargo.lock ` .
1635
+ However, when sources are stored in read-only directory, most of the cargo commands
1636
+ would fail, trying to write a lockfile. The ` --lockfile-path `
1637
+ flag makes it easier to work with readonly sources.
1638
+ Note, that currently path must end with ` Cargo.lock ` . Meaning, if you want to use
1639
+ this feature in multiple projects, lockfiles should be stored in different directories.
1640
+ Example:
1641
+
1642
+ ``` sh
1643
+ cargo +nightly metadata --lockfile-path=$LOCKFILES_ROOT /my-project/Cargo.lock -Z unstable-options
1644
+ ```
1645
+
1628
1646
# Stabilized and removed features
1629
1647
1630
1648
## Compile progress
You can’t perform that action at this time.
0 commit comments