Skip to content

Commit 31ae3ca

Browse files
committed
rust: Make workspace more convenient with default
Set the default-members in the top-level `Cargo.toml` file. This tells cargo what to do if it is invoked at the top level. Using this allows builds with the simulate to be done directly from the top level directory without having to manually cd to the sim directory. Combined with `bear`, this makes development with vscode much more handy. Signed-off-by: David Brown <david.brown@linaro.org>
1 parent 04e9bde commit 31ae3ca

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
members = ["sim"]
33
exclude = ["ptest"]
44
resolver = "2"
5+
default-members = ["sim"]
56

67
# The simulator runs very slowly without optimization. A value of 1
78
# compiles in about half the time, but runs about 5-6 times slower. 2

0 commit comments

Comments
 (0)