diff --git a/Cargo.toml b/Cargo.toml index 47edb8d3..31b5f51e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,3 +7,19 @@ members = [ "example-build", "example-macro", ] +default-members = [ + "typify", + "typify-impl", + "typify-macro", + "typify-test", +] + +[workspace.dependencies] +proc-macro2 = "1.0" +quote = "1.0" +regress = "0.4.1" +schemars = "0.8.10" +serde = "1.0" +serde_json = "1.0" +syn = "1.0" +typify = { path = "typify" } diff --git a/example-build/Cargo.toml b/example-build/Cargo.toml index 67c91028..25b77310 100644 --- a/example-build/Cargo.toml +++ b/example-build/Cargo.toml @@ -5,9 +5,9 @@ authors = ["Adam H. Leventhal "] edition = "2021" [dependencies] -serde = "1.0" +serde = { workspace = true } [build-dependencies] -schemars = "0.8" -serde_json = "1.0" -typify = { path = "../typify" } +schemars = { workspace = true } +serde_json = { workspace = true } +typify = { workspace = true } diff --git a/example-macro/Cargo.toml b/example-macro/Cargo.toml index c96730d9..5138cea9 100644 --- a/example-macro/Cargo.toml +++ b/example-macro/Cargo.toml @@ -5,6 +5,6 @@ authors = ["Adam H. Leventhal "] edition = "2021" [dependencies] -typify = { path = "../typify" } -serde = "1.0" -serde_json = "1.0" +typify = { workspace = true } +serde = { workspace = true } +serde_json = { workspace = true } diff --git a/rust-toolchain.toml b/rust-toolchain.toml new file mode 100644 index 00000000..a41a9d04 --- /dev/null +++ b/rust-toolchain.toml @@ -0,0 +1,8 @@ +# We use a specific toolchain revision to ensure our tests - which +# occasionally depend on specific compiler output - remain stable +# for all developers until the toolchain is explicitly advanced. +# The intent is to keep this updated as new stable versions are relased. + +[toolchain] +channel = "1.64.0" +profile = "default" diff --git a/typify-impl/Cargo.toml b/typify-impl/Cargo.toml index 6432cbc8..353c868c 100644 --- a/typify-impl/Cargo.toml +++ b/typify-impl/Cargo.toml @@ -11,13 +11,13 @@ readme = "../README.md" [dependencies] heck = "0.4.0" log = "0.4" -proc-macro2 = "1.0" -quote = "1.0" -regress = "0.4.1" +proc-macro2 = { workspace = true } +quote = { workspace = true } +regress = { workspace = true } rustfmt-wrapper = "0.2" -schemars = "0.8.11" -serde_json = "1.0" -syn = { version = "1.0", features = ["full"] } +schemars = { workspace = true } +serde_json = { workspace = true } +syn = { workspace = true, features = ["full"] } thiserror = "1.0" unicode-ident = "1.0.5" @@ -25,6 +25,6 @@ unicode-ident = "1.0.5" expectorate = "1.0" paste = "1.0" schema = "0.0.1" -schemars = { version = "0.8.11", features = ["uuid1"] } -serde = "1.0" -uuid = "1.2.1" +schemars = { workspace = true, features = ["uuid1"] } +serde = { workspace = true } +uuid = "1.1.2" \ No newline at end of file diff --git a/typify-macro/Cargo.toml b/typify-macro/Cargo.toml index 9c28f8c0..8f1e8d1e 100644 --- a/typify-macro/Cargo.toml +++ b/typify-macro/Cargo.toml @@ -9,13 +9,13 @@ repository = "https://github.com/oxidecomputer/typify" readme = "../README.md" [dependencies] -proc-macro2 = "1.0" -quote = "1.0" -schemars = "0.8.11" -serde = { version = "1.0", features = ["derive"] } -serde_json = "1.0" +proc-macro2 = { workspace = true } +quote = { workspace = true } +schemars = { workspace = true } +serde = { workspace = true, features = ["derive"] } +serde_json = { workspace = true } serde_tokenstream = "0.1.3" -syn = "1.0" +syn = { workspace = true } typify-impl = { version = "0.0.11-dev", path = "../typify-impl" } [lib]