Skip to content

Commit

Permalink
Updates dependencies to use Cargo workspace
Browse files Browse the repository at this point in the history
Updates any common dependencies across the workspace to use the cargo workspaces dependency feature. Also uses the workspace rust edition feature.

Signed-off-by: Jess Bowers <58604+jessbowers@users.noreply.github.com>
  • Loading branch information
jessbowers committed Oct 26, 2023
1 parent a42555d commit b727aa6
Show file tree
Hide file tree
Showing 13 changed files with 66 additions and 54 deletions.
12 changes: 12 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,14 @@
[workspace.package]
version = "0.4.1"
edition = "2018"
authors = ["Ulysse Carion <ulysse@segment.com>"]

[workspace]
members = ["crates/*"]

[workspace.dependencies]
jtd = "0.2.1"
serde_json = "1.0"
lazy_static = "1.4.0"
jtd-codegen = { path = "./crates/core" }
jtd_codegen_test = { path = "./crates/test" }
12 changes: 6 additions & 6 deletions crates/cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
[package]
name = "jtd_codegen_cli"
version = "0.4.1"
authors = ["Ulysse Carion <ulysse@segment.com>"]
edition = "2018"
version.workspace = true
edition.workspace = true
authors.workspace = true

[[bin]]
name = "jtd-codegen"
path = "src/main.rs"

[dependencies]
jtd-codegen = { path = "../core" }
jtd-codegen.workspace = true
jtd_codegen_target_csharp_system_text = { path = "../target_csharp_system_text" }
jtd_codegen_target_go = { path = "../target_go" }
jtd_codegen_target_java_jackson = { path = "../target_java_jackson" }
Expand All @@ -19,8 +19,8 @@ jtd_codegen_target_ruby_sig = { path = "../target_ruby_sig" }
jtd_codegen_target_rust = { path = "../target_rust" }
jtd_codegen_target_typescript = { path = "../target_typescript" }
serde = "1.0"
serde_json = "1.0"
jtd = "0.2.1"
serde_json.workspace = true
jtd.workspace = true
clap = { version = "2.33.3", features = ["yaml"] }
colored = "2.0.0"
anyhow = "1.0"
6 changes: 3 additions & 3 deletions crates/core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
name = "jtd-codegen"
version = "0.1.0"
authors = ["Ulysse Carion <ulysse@segment.com>"]
edition = "2018"
edition.workspace = true
description = "A framework for generating code from JSON Typedef schemas"
license = "MIT"

[dependencies]
thiserror = "1.0.22"
teeter_inflector = { version = "0.11.4", package = "Inflector" }
jtd = "0.2.1"
serde_json = "1.0"
jtd.workspace = true
serde_json.workspace = true
textwrap = "0.13"
10 changes: 5 additions & 5 deletions crates/target_csharp_system_text/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
name = "jtd_codegen_target_csharp_system_text"
version = "0.2.1"
authors = ["Ulysse Carion <ulysse@segment.com>"]
edition = "2018"
edition.workspace = true

[dependencies]
jtd-codegen = { path = "../core" }
lazy_static = "1.4.0"
serde_json = "1.0"
jtd-codegen.workspace = true
lazy_static.workspace = true
serde_json.workspace = true

[dev-dependencies]
jtd_codegen_test = { path = "../test" }
jtd_codegen_test.workspace = true
10 changes: 5 additions & 5 deletions crates/target_go/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
name = "jtd_codegen_target_go"
version = "0.2.1"
authors = ["Ulysse Carion <ulysse@segment.com>"]
edition = "2018"
edition.workspace = true

[dependencies]
jtd-codegen = { path = "../core" }
lazy_static = "1.4.0"
serde_json = "1.0"
jtd-codegen.workspace = true
lazy_static.workspace = true
serde_json.workspace = true

[dev-dependencies]
jtd_codegen_test = { path = "../test" }
jtd_codegen_test.workspace = true
10 changes: 5 additions & 5 deletions crates/target_java_jackson/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
name = "jtd_codegen_target_java_jackson"
version = "0.2.1"
authors = ["Ulysse Carion <ulysse@segment.com>"]
edition = "2018"
edition.workspace = true

[dependencies]
jtd-codegen = { path = "../core" }
lazy_static = "1.4.0"
jtd-codegen.workspace = true
lazy_static.workspace = true
askama = "0.8"
serde_json = "1.0"
serde_json.workspace = true

[dev-dependencies]
jtd_codegen_test = { path = "../test" }
jtd_codegen_test.workspace = true
10 changes: 5 additions & 5 deletions crates/target_python/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
name = "jtd_codegen_target_python"
version = "0.3.1"
authors = ["Ulysse Carion <ulysse@segment.com>"]
edition = "2018"
edition.workspace = true

[dependencies]
jtd-codegen = { path = "../core" }
lazy_static = "1.4.0"
serde_json = "1.0"
jtd-codegen.workspace = true
lazy_static.workspace = true
serde_json.workspace = true

[dev-dependencies]
jtd_codegen_test = { path = "../test" }
jtd_codegen_test.workspace = true
10 changes: 5 additions & 5 deletions crates/target_ruby/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
name = "jtd_codegen_target_ruby"
version = "0.1.1"
authors = ["Ulysse Carion <ulysse@segment.com>"]
edition = "2018"
edition.workspace = true

[dependencies]
jtd-codegen = { path = "../core" }
lazy_static = "1.4.0"
serde_json = "1.0"
jtd-codegen.workspace = true
lazy_static.workspace = true
serde_json.workspace = true

[dev-dependencies]
jtd_codegen_test = { path = "../test" }
jtd_codegen_test.workspace = true
10 changes: 5 additions & 5 deletions crates/target_ruby_sig/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
name = "jtd_codegen_target_ruby_sig"
version = "0.1.1"
authors = ["Ulysse Carion <ulysse@segment.com>"]
edition = "2018"
edition.workspace = true

[dependencies]
jtd-codegen = { path = "../core" }
lazy_static = "1.4.0"
serde_json = "1.0"
jtd-codegen.workspace = true
lazy_static.workspace = true
serde_json.workspace = true

[dev-dependencies]
jtd_codegen_test = { path = "../test" }
jtd_codegen_test.workspace = true
10 changes: 5 additions & 5 deletions crates/target_rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
name = "jtd_codegen_target_rust"
version = "0.2.1"
authors = ["Ulysse Carion <ulysse@segment.com>"]
edition = "2018"
edition.workspace = true

[dependencies]
jtd-codegen = { path = "../core" }
lazy_static = "1.4.0"
serde_json = "1.0"
jtd-codegen.workspace = true
lazy_static.workspace = true
serde_json.workspace = true

[dev-dependencies]
jtd_codegen_test = { path = "../test" }
jtd_codegen_test.workspace = true
2 changes: 1 addition & 1 deletion crates/target_rust/docker/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "jtd_e2e_test"
version = "0.1.0"
authors = ["Ulysse Carion <ulysse@segment.com>"]
edition = "2018"
edition.workspace = true

[dependencies]
chrono = { version = "0.4", features = ["serde"] }
Expand Down
10 changes: 5 additions & 5 deletions crates/target_typescript/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
name = "jtd_codegen_target_typescript"
version = "0.2.1"
authors = ["Ulysse Carion <ulysse@segment.com>"]
edition = "2018"
edition.workspace = true

[dependencies]
jtd-codegen = { path = "../core" }
lazy_static = "1.4.0"
serde_json = "1.0"
jtd-codegen.workspace = true
lazy_static.workspace = true
serde_json.workspace = true
regex = "1"

[dev-dependencies]
jtd_codegen_test = { path = "../test" }
jtd_codegen_test.workspace = true
8 changes: 4 additions & 4 deletions crates/test/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
name = "jtd_codegen_test"
version = "0.1.0"
authors = ["Ulysse Carion <ulysse@segment.com>"]
edition = "2018"
edition.workspace = true

[dependencies]
jtd-codegen = { path = "../core" }
jtd = "0.2.1"
serde_json = "1.0"
jtd-codegen.workspace = true
jtd.workspace = true
serde_json.workspace = true
tempfile = "3"
jtd-fuzz = "0.1.21"
rand = "0.7"
Expand Down

0 comments on commit b727aa6

Please sign in to comment.