Skip to content

Commit

Permalink
chore: use workspace dependency for local crates
Browse files Browse the repository at this point in the history
Signed-off-by: azjezz <azjezz@protonmail.com>
  • Loading branch information
azjezz committed Dec 7, 2024
1 parent a2f6499 commit b1cb0d7
Show file tree
Hide file tree
Showing 23 changed files with 144 additions and 117 deletions.
29 changes: 28 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,34 @@ declare_interior_mutable_const = { level = "allow" }
large_enum_variant = { level = "allow" }

[workspace.dependencies]
mago-ast = { path = "crates/ast", version = "0.0.0" }
mago-ast-utils = { path = "crates/ast-utils", version = "0.0.0" }
mago-casing = { path = "crates/casing", version = "0.0.0" }
mago-cli = { path = "crates/cli", version = "0.0.0" }
mago-composer = { path = "crates/composer", version = "0.0.0" }
mago-docblock = { path = "crates/docblock", version = "0.0.0" }
mago-feedback = { path = "crates/feedback", version = "0.0.0" }
mago-fixer = { path = "crates/fixer", version = "0.0.0" }
mago-formatter = { path = "crates/formatter", version = "0.0.0" }
mago-interner = { path = "crates/interner", version = "0.0.0" }
mago-lexer = { path = "crates/lexer", version = "0.0.0" }
mago-linter = { path = "crates/linter", version = "0.0.0" }
mago-names = { path = "crates/names", version = "0.0.0" }
mago-parser = { path = "crates/parser", version = "0.0.0" }
mago-reflection = { path = "crates/reflection", version = "0.0.0" }
mago-reflector = { path = "crates/reflector", version = "0.0.0" }
mago-reporting = { path = "crates/reporting", version = "0.0.0" }
mago-semantics = { path = "crates/semantics", version = "0.0.0" }
mago-service = { path = "crates/service", version = "0.0.0" }
mago-source = { path = "crates/source", version = "0.0.0" }
mago-span = { path = "crates/span", version = "0.0.0" }
mago-symbol-table = { path = "crates/symbol-table", version = "0.0.0" }
mago-token = { path = "crates/token", version = "0.0.0" }
mago-traverser = { path = "crates/traverser", version = "0.0.0" }
mago-trinary = { path = "crates/trinary", version = "0.0.0" }
mago-typing = { path = "crates/typing", version = "0.0.0" }
mago-walker = { path = "crates/walker", version = "0.0.0" }
mago-wasm = { path = "crates/wasm", version = "0.0.0" }
dashmap = { version = "6.1.0" }
tracing = { version = "0.1.40" }
ahash = { version = "0.8.11" }
Expand Down Expand Up @@ -50,7 +78,6 @@ termtree = "0.5.1"
bitflags = "2.6.0"
wasm-bindgen = "0.2.97"
serde-wasm-bindgen = "0.4"

[dependencies]
mago-cli = { path = "crates/cli" }

Expand Down
2 changes: 1 addition & 1 deletion crates/ast-utils/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ license.workspace = true
workspace = true

[dependencies]
mago-ast = { path = "../ast" }
mago-ast = { workspace = true }
8 changes: 4 additions & 4 deletions crates/ast/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ license.workspace = true
workspace = true

[dependencies]
mago-source = { path = "../source" }
mago-span = { path = "../span" }
mago-token = { path = "../token" }
mago-interner = { path = "../interner" }
mago-source = { workspace = true }
mago-span = { workspace = true }
mago-token = { workspace = true }
mago-interner = { workspace = true }
serde = { workspace = true }
strum = { workspace = true }
ordered-float = { workspace = true, features = ["serde", "rand"] }
14 changes: 7 additions & 7 deletions crates/cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ license.workspace = true
workspace = true

[dependencies]
mago-ast = { path = "../ast" }
mago-reporting = { path = "../reporting" }
mago-interner = { path = "../interner" }
mago-source = { path = "../source" }
mago-fixer = { path = "../fixer" }
mago-service = { path = "../service" }
mago-feedback = { path = "../feedback" }
mago-ast = { workspace = true }
mago-reporting = { workspace = true }
mago-interner = { workspace = true }
mago-source = { workspace = true }
mago-fixer = { workspace = true }
mago-service = { workspace = true }
mago-feedback = { workspace = true }
serde = { workspace = true }
tokio = { workspace = true , features = ["rt", "rt-multi-thread", "time"] }
clap = { workspace = true }
Expand Down
6 changes: 3 additions & 3 deletions crates/docblock/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ license.workspace = true
workspace = true

[dependencies]
mago-ast = { path = "../ast" }
mago-span = { path = "../span" }
mago-interner = { path = "../interner" }
mago-ast = { workspace = true }
mago-span = { workspace = true }
mago-interner = { workspace = true }
tracing = { workspace = true }
serde = { workspace = true }
10 changes: 5 additions & 5 deletions crates/formatter/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ license.workspace = true
workspace = true

[dependencies]
mago-ast = { workspace = true }
mago-source = { workspace = true }
mago-span = { workspace = true }
mago-token = { workspace = true }
mago-interner = { workspace = true }
ahash = { workspace = true }
strum = { workspace = true }
serde = { workspace = true }
tracing = { workspace = true }
bitflags = { workspace = true }
mago-ast = { path = "../ast" }
mago-source = { path = "../source" }
mago-span = { path = "../span" }
mago-token = { path = "../token" }
mago-interner = { path = "../interner" }
10 changes: 5 additions & 5 deletions crates/lexer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ license.workspace = true
workspace = true

[dependencies]
mago-source = { path = "../source" }
mago-span = { path = "../span" }
mago-token = { path = "../token" }
mago-reporting = { path = "../reporting" }
mago-interner = { path = "../interner" }
mago-source = { workspace = true }
mago-span = { workspace = true }
mago-token = { workspace = true }
mago-reporting = { workspace = true }
mago-interner = { workspace = true }
serde = { workspace = true }
strum = { workspace = true }

Expand Down
26 changes: 13 additions & 13 deletions crates/linter/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,19 @@ license.workspace = true
workspace = true

[dependencies]
mago-fixer = { path = "../fixer" }
mago-semantics = { path = "../semantics" }
mago-reporting = { path = "../reporting" }
mago-docblock = { path = "../docblock" }
mago-interner = { path = "../interner" }
mago-span = { path = "../span" }
mago-ast = { path = "../ast" }
mago-ast-utils = { path = "../ast-utils" }
mago-names = { path = "../names" }
mago-source = { path = "../source" }
mago-symbol-table = { path = "../symbol-table" }
mago-walker = { path = "../walker" }
mago-casing = { path = "../casing" }
mago-fixer = { workspace = true }
mago-semantics = { workspace = true }
mago-reporting = { workspace = true }
mago-docblock = { workspace = true }
mago-interner = { workspace = true }
mago-span = { workspace = true }
mago-ast = { workspace = true }
mago-ast-utils = { workspace = true }
mago-names = { workspace = true }
mago-source = { workspace = true }
mago-symbol-table = { workspace = true }
mago-walker = { workspace = true }
mago-casing = { workspace = true }
ahash = { workspace = true }
serde = { workspace = true }
tracing = { workspace = true }
Expand Down
8 changes: 4 additions & 4 deletions crates/names/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ license.workspace = true
workspace = true

[dependencies]
mago-interner = { path = "../interner" }
mago-walker = { path = "../walker" }
mago-span = { path = "../span" }
mago-ast = { path = "../ast" }
mago-interner = { workspace = true }
mago-walker = { workspace = true }
mago-span = { workspace = true }
mago-ast = { workspace = true }
serde = { workspace = true }
strum = { workspace = true }
ahash = { workspace = true }
16 changes: 8 additions & 8 deletions crates/parser/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ license.workspace = true
workspace = true

[dependencies]
mago-source = { path = "../source" }
mago-span = { path = "../span" }
mago-feedback = { path = "../feedback" }
mago-reporting = { path = "../reporting" }
mago-ast = { path = "../ast" }
mago-token = { path = "../token" }
mago-interner = { path = "../interner" }
mago-lexer = { path = "../lexer" }
mago-source = { workspace = true }
mago-span = { workspace = true }
mago-feedback = { workspace = true }
mago-reporting = { workspace = true }
mago-ast = { workspace = true }
mago-token = { workspace = true }
mago-interner = { workspace = true }
mago-lexer = { workspace = true }
ordered-float = { workspace = true, features = ["serde", "rand"] }
either = { workspace = true }
serde = { workspace = true }
Expand Down
8 changes: 4 additions & 4 deletions crates/reflection/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ license.workspace = true
workspace = true

[dependencies]
mago-interner = { path = "../interner" }
mago-span = { path = "../span" }
mago-source = { path = "../source" }
mago-trinary = { path = "../trinary" }
mago-interner = { workspace = true }
mago-span = { workspace = true }
mago-source = { workspace = true }
mago-trinary = { workspace = true }
ahash = { workspace = true }
serde = { workspace = true }
ordered-float = { workspace = true }
18 changes: 9 additions & 9 deletions crates/reflector/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ license.workspace = true
workspace = true

[dependencies]
mago-interner = { path = "../interner" }
mago-span = { path = "../span" }
mago-ast = { path = "../ast" }
mago-ast-utils = { path = "../ast-utils" }
mago-walker = { path = "../walker" }
mago-source = { path = "../source" }
mago-semantics = { path = "../semantics" }
mago-typing = { path = "../typing" }
mago-reflection = { path = "../reflection" }
mago-interner = { workspace = true }
mago-span = { workspace = true }
mago-ast = { workspace = true }
mago-ast-utils = { workspace = true }
mago-walker = { workspace = true }
mago-source = { workspace = true }
mago-semantics = { workspace = true }
mago-typing = { workspace = true }
mago-reflection = { workspace = true }
ahash = { workspace = true }
6 changes: 3 additions & 3 deletions crates/reporting/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ license.workspace = true
workspace = true

[dependencies]
mago-span = { workspace = true }
mago-source = { workspace = true }
mago-fixer = { workspace = true }
ahash = { workspace = true }
serde = { workspace = true }
codespan-reporting = { workspace = true }
mago-span = { path = "../span" }
mago-source = { path = "../source" }
mago-fixer = { path = "../fixer" }
22 changes: 11 additions & 11 deletions crates/semantics/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ license.workspace = true
workspace = true

[dependencies]
mago-fixer = { path = "../fixer" }
mago-reporting = { path = "../reporting" }
mago-interner = { path = "../interner" }
mago-parser = { path = "../parser" }
mago-walker = { path = "../walker" }
mago-span = { path = "../span" }
mago-ast = { path = "../ast" }
mago-ast-utils = { path = "../ast-utils" }
mago-names = { path = "../names" }
mago-source = { path = "../source" }
mago-symbol-table = { path = "../symbol-table" }
mago-fixer = { workspace = true }
mago-reporting = { workspace = true }
mago-interner = { workspace = true }
mago-parser = { workspace = true }
mago-walker = { workspace = true }
mago-span = { workspace = true }
mago-ast = { workspace = true }
mago-ast-utils = { workspace = true }
mago-names = { workspace = true }
mago-source = { workspace = true }
mago-symbol-table = { workspace = true }
serde = { workspace = true }
24 changes: 12 additions & 12 deletions crates/service/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,18 @@ license.workspace = true
workspace = true

[dependencies]
mago-interner = { path = "../interner" }
mago-source = { path = "../source" }
mago-reporting = { path = "../reporting" }
mago-semantics = { path = "../semantics" }
mago-linter = { path = "../linter" }
mago-reflection = { path = "../reflection" }
mago-reflector = { path = "../reflector" }
mago-span = { path = "../span" }
mago-feedback = { path = "../feedback" }
mago-formatter = { path = "../formatter" }
mago-ast = { path = "../ast" }
mago-parser = { path = "../parser" }
mago-interner = { workspace = true }
mago-source = { workspace = true }
mago-reporting = { workspace = true }
mago-semantics = { workspace = true }
mago-linter = { workspace = true }
mago-reflection = { workspace = true }
mago-reflector = { workspace = true }
mago-span = { workspace = true }
mago-feedback = { workspace = true }
mago-formatter = { workspace = true }
mago-ast = { workspace = true }
mago-parser = { workspace = true }
tokio = { workspace = true }
serde = { workspace = true }
ahash = { workspace = true }
Expand Down
2 changes: 1 addition & 1 deletion crates/source/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ license.workspace = true
workspace = true

[dependencies]
mago-interner = { path = "../interner" }
mago-interner = { workspace = true }
codespan-reporting = { workspace = true }
serde = { workspace = true }
tracing = { workspace = true }
Expand Down
2 changes: 1 addition & 1 deletion crates/span/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ version.workspace = true
workspace = true

[dependencies]
mago-source = { path = "../source" }
mago-source = { workspace = true }
serde = { workspace = true }
10 changes: 5 additions & 5 deletions crates/symbol-table/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ license.workspace = true
workspace = true

[dependencies]
mago-interner = { path = "../interner" }
mago-span = { path = "../span" }
mago-ast = { path = "../ast" }
mago-walker = { path = "../walker" }
mago-source = { path = "../source" }
mago-interner = { workspace = true }
mago-span = { workspace = true }
mago-ast = { workspace = true }
mago-walker = { workspace = true }
mago-source = { workspace = true }
serde = { workspace = true }
strum = { workspace = true }
4 changes: 2 additions & 2 deletions crates/token/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ license.workspace = true
workspace = true

[dependencies]
mago-span = { path = "../span" }
mago-interner = { path = "../interner" }
mago-span = { workspace = true }
mago-interner = { workspace = true }
serde = { workspace = true }
strum = { workspace = true }
2 changes: 1 addition & 1 deletion crates/traverser/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ license.workspace = true
workspace = true

[dependencies]
mago-ast = { path = "../ast" }
mago-ast = { workspace = true }
14 changes: 7 additions & 7 deletions crates/typing/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ license.workspace = true
workspace = true

[dependencies]
mago-ast = { workspace = true }
mago-reflection = { workspace = true }
mago-span = { workspace = true }
mago-semantics = { workspace = true }
mago-names = { workspace = true }
mago-interner = { workspace = true }
mago-trinary = { workspace = true }
ahash = { workspace = true }
mago-reflection = { path = "../reflection" }
mago-span = { path = "../span" }
mago-semantics = { path = "../semantics" }
mago-names = { path = "../names" }
mago-interner = { path = "../interner" }
mago-trinary = { path = "../trinary" }
mago-ast = { path = "../ast" }
ordered-float = { workspace = true }
2 changes: 1 addition & 1 deletion crates/walker/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ license.workspace = true
workspace = true

[dependencies]
mago-ast = { path = "../ast" }
mago-ast = { workspace = true }
paste = { workspace = true }
Loading

0 comments on commit b1cb0d7

Please sign in to comment.