Skip to content

Commit 7615017

Browse files
authored
Fix publishing (#84)
Fix publishing with cargo release 1. Fix version specifications for in-repo packages in workspace Cargo.toml 2. Don't release butane_test_helper 3. Don't specify version for butane_test_helper when referencing it. This allows butane_core to be published despite the circular dev-dependency. See rust-lang/cargo#7333
1 parent 0a2bde7 commit 7615017

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

Cargo.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,10 @@ members = [
1414
edition = "2021"
1515

1616
[workspace.dependencies]
17-
butane = { path = "butane" }
17+
butane = { version = "0.6", path = "butane" }
1818
butane_core = { version = "0.6", path = "butane_core" }
19-
butane_test_helper = { version = "0.6", path = "butane_test_helper" }
19+
butane_codegen = { version = "0.6", path = "butane_codegen" }
20+
butane_test_helper = { path = "butane_test_helper" }
2021
cfg-if = "^1.0"
2122
chrono = { version = "0.4", default-features = false, features = [
2223
"serde",

butane/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ tls = ["butane_core/tls"]
2727
uuid = ["butane_codegen/uuid", "butane_core/uuid"]
2828

2929
[dependencies]
30-
butane_codegen = { path = "../butane_codegen" }
30+
butane_codegen = { workspace = true }
3131
butane_core = { workspace = true }
3232

3333
[dev-dependencies]

butane_test_helper/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,6 @@ libc = "0.2"
1717
once_cell = { workspace = true }
1818
postgres = { features = ["with-geo-types-0_7"], workspace = true }
1919
uuid = { features = ["v4"], workspace = true }
20+
21+
[package.metadata.release]
22+
release = false

0 commit comments

Comments
 (0)