@@ -30,7 +30,7 @@ relative paths (which makes refactoring and moving sub-projects very difficult)
30
30
and don't work at all if the mono-repo requires publishing and consuming from an
31
31
intermediate directory (as this may very per host, or per target being built).
32
32
33
- This RFC proposes a mechanism to specify path bases in ` Config .toml` or
33
+ This RFC proposes a mechanism to specify path bases in ` config .toml` or
34
34
` Cargo.toml ` files which can be used to prepend ` path ` dependencies. This allows
35
35
mono-repos to specify dependencies relative to their root directory, which
36
36
allows the consuming project to be moved freely (no relative paths to update)
@@ -69,7 +69,7 @@ drive for performance reasons).
69
69
path (e.g., ` ../../../other_layer/foo ` and ` ../foo ` ) and may be error prone if
70
70
there is some other sub-project in directory with the same name.
71
71
72
- Instead, if we could specify these common paths as path bases in a ` Config .toml`
72
+ Instead, if we could specify these common paths as path bases in a ` config .toml`
73
73
(which may be generated by an external build system which in turn invokes Cargo):
74
74
75
75
``` toml
@@ -90,7 +90,8 @@ baz = { path = "this_layer/baz", base = "sources" }
90
90
Which resolves the issues we previously had:
91
91
92
92
* The current project can be moved without modifying the ` Cargo.toml ` at all.
93
- * ` bar_with_generated ` works for all targets (assuming the ` Config.toml ` is
93
+ * ` bar_with_generated ` works for all targets (assuming the ` config.toml ` is
94
+
94
95
generated).
95
96
* The ` intermediates ` directory can be placed anywhere.
96
97
* Moving ` foo ` or ` baz ` only requires searching for the canonical form relative
@@ -101,7 +102,7 @@ to the path base.
101
102
The ability to use path bases for ` path ` dependencies is convenient for
102
103
developers who are using a large number of ` path ` dependencies within the same
103
104
root directory. Instead of repeating the same path fragment many times in their
104
- ` Cargo.toml ` , they can instead specify it once in a ` Config .toml` as a path
105
+ ` Cargo.toml ` , they can instead specify it once in a ` config .toml` as a path
105
106
base, then use that path base in each of their ` path ` dependencies.
106
107
107
108
Cargo can also provide built-in base paths, for example ` workspace ` to point to
0 commit comments