Skip to content

Commit 8a0e578

Browse files
committed
fix: remove features to workaround cargo-dist bug
1 parent 79871bd commit 8a0e578

File tree

3 files changed

+13
-27
lines changed

3 files changed

+13
-27
lines changed

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ ci = ["github"]
4242
installers = []
4343
# Target platforms to build apps for (Rust target-triple syntax)
4444
targets = ["x86_64-unknown-linux-musl", "aarch64-unknown-linux-musl"]
45-
features = ["pubsys", "testsys"]
4645

4746
[workspace.metadata.cross.build]
4847
pre-build = [

twoliter/Cargo.toml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ zstd.workspace = true
4545
twoliter-tool-buildsys.workspace = true
4646
twoliter-tool-embedded-bundle.workspace = true
4747
twoliter-tool-pipesys.workspace = true
48-
twoliter-tool-pubsys = { workspace = true, optional = true }
49-
twoliter-tool-pubsys-setup = { workspace = true, optional = true }
50-
twoliter-tool-testsys = { workspace = true, optional = true }
48+
twoliter-tool-pubsys.workspace = true
49+
twoliter-tool-pubsys-setup.workspace = true
50+
twoliter-tool-testsys.workspace = true
5151
twoliter-tool-tuftool.workspace = true
5252
twoliter-tool-unplug.workspace = true
5353

@@ -60,10 +60,8 @@ tar.workspace = true
6060
test-case.workspace = true
6161

6262
[features]
63-
default = ["integ-tests", "pubsys", "testsys"]
63+
default = ["integ-tests"]
6464
integ-tests = []
65-
pubsys = ["dep:twoliter-tool-pubsys", "dep:twoliter-tool-pubsys-setup"]
66-
testsys = ["dep:twoliter-tool-testsys"]
6765

6866
[lints]
6967
workspace = true

twoliter/src/tools.rs

Lines changed: 9 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ pub(crate) async fn install_tools(tools_dir: impl AsRef<Path>) -> Result<()> {
3434
.context("Unable to get Dockerfile metadata")?;
3535
let mtime = FileTime::from_last_modification_time(&metadata);
3636

37-
let mut write_tasks = vec![
37+
let write_tasks = vec![
3838
write_bin(
3939
"buildsys",
4040
twoliter_tool_buildsys::BUILDSYS.reader(),
@@ -55,31 +55,20 @@ pub(crate) async fn install_tools(tools_dir: impl AsRef<Path>) -> Result<()> {
5555
),
5656
write_bin("unplug", twoliter_tool_unplug::UNPLUG.reader(), &dir, mtime),
5757
write_bin("krane", krane_bundle::KRANE_BIN.reader(), &dir, mtime),
58-
];
59-
60-
#[cfg(feature = "pubsys")]
61-
{
62-
write_tasks.push(write_bin(
58+
write_bin(
6359
"pubsys-setup",
6460
twoliter_tool_pubsys_setup::PUBSYS_SETUP.reader(),
6561
&dir,
6662
mtime,
67-
));
68-
write_tasks.push(write_bin(
69-
"pubsys",
70-
twoliter_tool_pubsys::PUBSYS.reader(),
63+
),
64+
write_bin("pubsys", twoliter_tool_pubsys::PUBSYS.reader(), &dir, mtime),
65+
write_bin(
66+
"testsys",
67+
twoliter_tool_testsys::TESTSYS.reader(),
7168
&dir,
7269
mtime,
73-
));
74-
}
75-
76-
#[cfg(feature = "testsys")]
77-
write_tasks.push(write_bin(
78-
"testsys",
79-
twoliter_tool_testsys::TESTSYS.reader(),
80-
&dir,
81-
mtime,
82-
));
70+
),
71+
];
8372

8473
try_join_all(write_tasks.into_iter()).await?;
8574

0 commit comments

Comments
 (0)