ok/jj
1
0
Fork 0
forked from mirrors/jj

Use { workspace = true } to appease VS Code's Cargo.toml parser

The VS Code "Better TOML" plugin (which I think most of our VS Code developers use?) doesn't support the `x.y = z` syntax at the top level, even though it's valid TOML. 

This is also useful if we ever want to add additional properties in different sub-crates (although unlikely for the near future).
This commit is contained in:
Waleed Khan 2023-08-22 09:41:42 -07:00
parent 30c2a21a14
commit 1633eccdca
4 changed files with 110 additions and 110 deletions

View file

@ -3,14 +3,14 @@ name = "jj-cli"
description = "Jujutsu - an experimental version control system" description = "Jujutsu - an experimental version control system"
default-run = "jj" default-run = "jj"
version.workspace = true version = { workspace = true }
edition.workspace = true edition = { workspace = true }
rust-version.workspace = true rust-version = { workspace = true }
license.workspace = true license = { workspace = true }
homepage.workspace = true homepage = { workspace = true }
repository.workspace = true repository = { workspace = true }
documentation.workspace = true documentation = { workspace = true }
keywords.workspace = true keywords = { workspace = true }
[[bin]] [[bin]]
name = "jj" name = "jj"
@ -25,51 +25,51 @@ name = "fake-diff-editor"
path = "testing/fake-diff-editor.rs" path = "testing/fake-diff-editor.rs"
[build-dependencies] [build-dependencies]
cargo_metadata.workspace = true cargo_metadata = { workspace = true }
[dependencies] [dependencies]
chrono.workspace = true chrono = { workspace = true }
clap.workspace = true clap = { workspace = true }
clap_complete.workspace = true clap_complete = { workspace = true }
clap_mangen.workspace = true clap_mangen = { workspace = true }
config.workspace = true config = { workspace = true }
criterion = { workspace = true, optional = true } criterion = { workspace = true, optional = true }
crossterm.workspace = true crossterm = { workspace = true }
dirs.workspace = true dirs = { workspace = true }
esl01-renderdag.workspace = true esl01-renderdag = { workspace = true }
git2.workspace = true git2 = { workspace = true }
glob.workspace = true glob = { workspace = true }
hex.workspace = true hex = { workspace = true }
indexmap.workspace = true indexmap = { workspace = true }
itertools.workspace = true itertools = { workspace = true }
jj-lib.workspace = true jj-lib = { workspace = true }
maplit.workspace = true maplit = { workspace = true }
once_cell.workspace = true once_cell = { workspace = true }
pest.workspace = true pest = { workspace = true }
pest_derive.workspace = true pest_derive = { workspace = true }
regex.workspace = true regex = { workspace = true }
rpassword.workspace = true rpassword = { workspace = true }
serde.workspace = true serde = { workspace = true }
slab.workspace = true slab = { workspace = true }
tempfile.workspace = true tempfile = { workspace = true }
textwrap.workspace = true textwrap = { workspace = true }
thiserror.workspace = true thiserror = { workspace = true }
timeago.workspace = true timeago = { workspace = true }
toml_edit.workspace = true toml_edit = { workspace = true }
tracing.workspace = true tracing = { workspace = true }
tracing-chrome.workspace = true tracing-chrome = { workspace = true }
tracing-subscriber.workspace = true tracing-subscriber = { workspace = true }
[target.'cfg(unix)'.dependencies] [target.'cfg(unix)'.dependencies]
libc.workspace = true libc = { workspace = true }
[dev-dependencies] [dev-dependencies]
anyhow.workspace = true anyhow = { workspace = true }
assert_cmd.workspace = true assert_cmd = { workspace = true }
assert_matches.workspace = true assert_matches = { workspace = true }
insta.workspace = true insta = { workspace = true }
test-case.workspace = true test-case = { workspace = true }
testutils.workspace = true testutils = { workspace = true }
[features] [features]
default = [] default = []

View file

@ -2,66 +2,66 @@
name = "jj-lib" name = "jj-lib"
description = "Library for Jujutsu - an experimental version control system" description = "Library for Jujutsu - an experimental version control system"
version.workspace = true version = { workspace = true }
edition.workspace = true edition = { workspace = true }
rust-version.workspace = true rust-version = { workspace = true }
license.workspace = true license = { workspace = true }
homepage.workspace = true homepage = { workspace = true }
repository.workspace = true repository = { workspace = true }
documentation.workspace = true documentation = { workspace = true }
readme.workspace = true readme = { workspace = true }
[[bench]] [[bench]]
name = "diff_bench" name = "diff_bench"
harness = false harness = false
[build-dependencies] [build-dependencies]
version_check.workspace = true version_check = { workspace = true }
[dependencies] [dependencies]
backoff.workspace = true backoff = { workspace = true }
blake2.workspace = true blake2 = { workspace = true }
byteorder.workspace = true byteorder = { workspace = true }
bytes.workspace = true bytes = { workspace = true }
chrono.workspace = true chrono = { workspace = true }
config.workspace = true config = { workspace = true }
digest.workspace = true digest = { workspace = true }
either.workspace = true either = { workspace = true }
git2.workspace = true git2 = { workspace = true }
hex.workspace = true hex = { workspace = true }
itertools.workspace = true itertools = { workspace = true }
maplit.workspace = true maplit = { workspace = true }
once_cell.workspace = true once_cell = { workspace = true }
pest.workspace = true pest = { workspace = true }
pest_derive.workspace = true pest_derive = { workspace = true }
prost.workspace = true prost = { workspace = true }
rand.workspace = true rand = { workspace = true }
rand_chacha.workspace = true rand_chacha = { workspace = true }
rayon.workspace = true rayon = { workspace = true }
regex.workspace = true regex = { workspace = true }
serde.workspace = true serde = { workspace = true }
serde_json.workspace = true serde_json = { workspace = true }
smallvec.workspace = true smallvec = { workspace = true }
strsim.workspace = true strsim = { workspace = true }
tempfile.workspace = true tempfile = { workspace = true }
thiserror.workspace = true thiserror = { workspace = true }
tokio = { workspace = true, optional = true } tokio = { workspace = true, optional = true }
tracing.workspace = true tracing = { workspace = true }
watchman_client = { workspace = true, optional = true } watchman_client = { workspace = true, optional = true }
whoami.workspace = true whoami = { workspace = true }
zstd.workspace = true zstd = { workspace = true }
[target.'cfg(unix)'.dependencies] [target.'cfg(unix)'.dependencies]
rustix.workspace = true rustix = { workspace = true }
[dev-dependencies] [dev-dependencies]
assert_matches.workspace = true assert_matches = { workspace = true }
criterion.workspace = true criterion = { workspace = true }
esl01-renderdag.workspace = true esl01-renderdag = { workspace = true }
insta.workspace = true insta = { workspace = true }
num_cpus.workspace = true num_cpus = { workspace = true }
test-case.workspace = true test-case = { workspace = true }
testutils.workspace = true testutils = { workspace = true }
[features] [features]
default = [] default = []

View file

@ -3,9 +3,9 @@ name = "gen-protos"
description = "Generate Protocol Buffers definitions for the jj-lib crate" description = "Generate Protocol Buffers definitions for the jj-lib crate"
publish = false publish = false
version.workspace = true version = { workspace = true }
edition.workspace = true edition = { workspace = true }
license.workspace = true license = { workspace = true }
[dependencies] [dependencies]
prost-build.workspace = true prost-build = { workspace = true }

View file

@ -3,21 +3,21 @@ name = "testutils"
description = "Integration test utils for the jj-lib crate" description = "Integration test utils for the jj-lib crate"
publish = false publish = false
version.workspace = true version = { workspace = true }
edition.workspace = true edition = { workspace = true }
rust-version.workspace = true rust-version = { workspace = true }
license.workspace = true license = { workspace = true }
homepage.workspace = true homepage = { workspace = true }
repository.workspace = true repository = { workspace = true }
documentation.workspace = true documentation = { workspace = true }
readme.workspace = true readme = { workspace = true }
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies] [dependencies]
config.workspace = true config = { workspace = true }
git2.workspace = true git2 = { workspace = true }
itertools.workspace = true itertools = { workspace = true }
jj-lib.workspace = true jj-lib = { workspace = true }
rand.workspace = true rand = { workspace = true }
tempfile.workspace = true tempfile = { workspace = true }