Skip to content

Commit

Permalink
Set project-wide deps in workspace Cargo.toml.
Browse files Browse the repository at this point in the history
  • Loading branch information
rneswold committed Apr 18, 2024
1 parent 411103d commit 4d2bdd9
Show file tree
Hide file tree
Showing 6 changed files with 55 additions and 32 deletions.
19 changes: 19 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,22 @@ lto = true
debug-assertions = false
codegen-units = 1
panic = 'unwind'

[workspace.dependencies]
bincode = "1.2"
cactus = "1.0"
filetime = "0.2"
fnv = "1.0"
getopts = "0.2"
lazy_static = "1.4"
indexmap = "2"
num-traits = "0.2"
packedvec = "1.2"
quote = "1.0"
regex = "1.3"
regex-syntax = "0.7"
serde = "1.0"
sparsevec = "0.2"
static_assertions = "1.1"
unicode-width = "0.1.11"
vob = ">=3.0.2"
12 changes: 6 additions & 6 deletions cfgrammar/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ name = "cfgrammar"
path = "src/lib/mod.rs"

[dependencies]
lazy_static = "1.0"
indexmap = "2"
num-traits = "0.2"
regex = "1"
serde = { version="1.0", features=["derive"], optional=true }
vob = { version="3.0", features=["serde"] }
lazy_static.workspace = true
indexmap.workspace = true
num-traits.workspace = true
regex.workspace = true
serde = { workspace = true, features = ["derive"], optional = true }
vob = { workspace = true, features = ["serde"] }
15 changes: 8 additions & 7 deletions lrlex/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,12 @@ vergen = { version = "8", default-features = false, features = ["build"] }

[dependencies]
cfgrammar = { path = "../cfgrammar", version = "0.13" }
getopts = "0.2" # only needed for src/main.rs
lazy_static = "1.4"
lrpar = { path = "../lrpar", version = "0.13" }
regex = "1"
regex-syntax = "0.7"
num-traits = "0.2"
quote = "1.0"
serde = "1.0"

getopts.workspace = true
lazy_static.workspace = true
regex.workspace = true
regex-syntax.workspace = true
num-traits.workspace = true
quote.workspace = true
serde.workspace = true
23 changes: 12 additions & 11 deletions lrpar/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,20 @@ _unsealed_unstable_traits = ["_unstable_api"]
vergen = { version = "8", default-features = false, features = ["build"] }

[dependencies]
bincode = "1.2"
cactus = "1.0"
cfgrammar = { path="../cfgrammar", version = "0.13", features=["serde"] }
filetime = "0.2"
indexmap = "2"
lazy_static = "1.4"
lrtable = { path="../lrtable", version = "0.13", features=["serde"] }
num-traits = "0.2"
packedvec = "1.2"
serde = { version="1.0", features=["derive"] }
static_assertions = "1.1"
vob = "3.0"
regex = "1.3"

bincode.workspace = true
cactus.workspace = true
filetime.workspace = true
indexmap.workspace = true
lazy_static.workspace = true
num-traits.workspace = true
packedvec.workspace = true
serde = { workspace = true, features = ["derive"] }
static_assertions.workspace = true
vob.workspace = true
regex.workspace = true

[dev-dependencies]
tempfile = "3.0"
11 changes: 6 additions & 5 deletions lrtable/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@ name = "lrtable"
path = "src/lib/mod.rs"

[dependencies]
fnv = "1.0"
num-traits = "0.2"
cfgrammar = { path="../cfgrammar", version = "0.13", features=["serde"] }
serde = { version="1.0", features=["derive"], optional=true }
vob = { version=">=3.0.2", features=["serde"] }
sparsevec = { version="0.2", features=["serde"] }

fnv.workspace = true
num-traits.workspace = true
serde = { workspace = true, features = ["derive"], optional = true }
vob = { workspace = true, features = ["serde"] }
sparsevec = { workspace = true, features = ["serde"] }
7 changes: 4 additions & 3 deletions nimbleparse/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@ name = "nimbleparse"

[dependencies]
cfgrammar = { path="../cfgrammar", version="0.13" }
getopts = "0.2"
lrlex = { path="../lrlex", version="0.13" }
lrpar = { path="../lrpar", version="0.13" }
lrtable = { path="../lrtable", version="0.13" }
num-traits = "0.2"
unicode-width = "0.1.11"

getopts.workspace = true
num-traits.workspace = true
unicode-width.workspace = true

0 comments on commit 4d2bdd9

Please sign in to comment.