Skip to content

Commit a45a6c3

Browse files
committed
Add an empty ctest crate
A bit of a quirk of `release-plz` seems to be that it uses the latest published stable Cargo.toml as the workspace root, which makes publishing `ctest` a problem because it doesn't exist (and so isn't in the workspace) with our published `libc`, instead only existing on `main`. Work around this by creating an empty crate named `ctest` so the `libc-0.2` version of `Cargo.toml` lists it as a workspace member. Link: release-plz/release-plz#2163
1 parent 5f6db4c commit a45a6c3

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

Cargo.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,4 +151,7 @@ align = []
151151
use_std = ['std']
152152

153153
[workspace]
154-
members = ["libc-test"]
154+
members = [
155+
"ctest",
156+
"libc-test",
157+
]

ctest/Cargo.toml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# This is a dummy package so the published stable `libc` can have `ctest` in
2+
# the workspace, which works around <https://github.com/release-plz/release-plz/issues/2163>.
3+
4+
[package]
5+
name = "ctest"
6+
version = "0.1.0"
7+
edition = "2021"
8+
publish = false
9+
10+
[dependencies]

ctest/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

0 commit comments

Comments
 (0)