Skip to content
Snippets Groups Projects
Verified Commit cbf4e8f2 authored by Vincent Lafeychine's avatar Vincent Lafeychine
Browse files

chore(cargo): Use workspace for member paths

parent ee8f6714
No related branches found
No related tags found
1 merge request!16Resolve duplicate dependencies
Pipeline #96682 canceled
This commit is part of merge request !16. Comments created here will be created in the context of that merge request.
[workspace] [workspace]
members = [ members = [
"analysis", "analysis",
"translation",
"rr_rustc_interface",
"annotations", "annotations",
"attribute_parse", "attribute_parse",
"radium", "radium",
"refinedrust_frontend",
"rr_rustc_interface",
"rrconfig", "rrconfig",
"refinedrust_frontend" "translation"
] ]
[workspace.dependencies]
analysis.path = "analysis"
attribute_parse.path = "attribute_parse"
radium.path = "radium"
rr_rustc_interface.path = "rr_rustc_interface"
rrconfig.path = "rrconfig"
translation.path = "translation"
...@@ -5,13 +5,14 @@ authors = ["Federico Poli <federpoli@gmail.com>"] ...@@ -5,13 +5,14 @@ authors = ["Federico Poli <federpoli@gmail.com>"]
edition = "2021" edition = "2021"
[dependencies] [dependencies]
rr_rustc_interface.workspace = true
log = { version = "0.4", features = ["release_max_level_info"] } log = { version = "0.4", features = ["release_max_level_info"] }
serde = { version = "1", features = ["derive"] } serde = { version = "1", features = ["derive"] }
serde_json = "1" serde_json = "1"
env_logger = "0.11" env_logger = "0.11"
syn = { version = "2", features = [ "full", "parsing" ] } syn = { version = "2", features = [ "full", "parsing" ] }
derive_more = { version = "1.0.0-beta.6", features = [ "full" ] } derive_more = { version = "1.0.0-beta.6", features = [ "full" ] }
rr_rustc_interface = { path = "../rr_rustc_interface" }
[dev-dependencies] [dev-dependencies]
compiletest_rs = "0.10" compiletest_rs = "0.10"
......
...@@ -6,6 +6,7 @@ edition = "2021" ...@@ -6,6 +6,7 @@ edition = "2021"
# 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]
rrconfig.workspace = true
log = "0.4" log = "0.4"
rrconfig = { path = "../rrconfig" }
indent_write = "2" indent_write = "2"
...@@ -16,14 +16,13 @@ doctest=false ...@@ -16,14 +16,13 @@ doctest=false
# 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]
rr_rustc_interface.workspace = true
rrconfig.workspace = true
translation.workspace = true
log = "0.4" log = "0.4"
env_logger = "0.11" env_logger = "0.11"
fs_extra = "1" fs_extra = "1"
translation = { path = "../translation" }
rr_rustc_interface = { path = "../rr_rustc_interface" }
rrconfig = { path = "../rrconfig" }
[package.metadata.rust-analyzer] [package.metadata.rust-analyzer]
rustc_private=true rustc_private=true
...@@ -5,6 +5,12 @@ edition = "2018" ...@@ -5,6 +5,12 @@ edition = "2018"
# 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]
analysis.workspace = true
attribute_parse.workspace = true
radium.workspace = true
rr_rustc_interface.workspace = true
rrconfig.workspace = true
log = "0.4" log = "0.4"
datafrog = "2" datafrog = "2"
regex = "1" regex = "1"
...@@ -16,12 +22,5 @@ serde_json = "1" ...@@ -16,12 +22,5 @@ serde_json = "1"
serde = {version = "1", features = ["derive"]} serde = {version = "1", features = ["derive"]}
topological-sort = "0.2" topological-sort = "0.2"
analysis = { path = "../analysis" }
radium = { path = "../radium" }
rr_rustc_interface = { path = "../rr_rustc_interface" }
attribute_parse = { path = "../attribute_parse" }
rrconfig = { path = "../rrconfig" }
[package.metadata.rust-analyzer] [package.metadata.rust-analyzer]
rustc_private=true rustc_private=true
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment