Skip to content

Commit db7ac77

Browse files
committed
fix: remove built-in echo tool
Signed-off-by: Akrm Al-Hakimi <alk9fh@bosch.com>
1 parent 58b0aee commit db7ac77

1 file changed

Lines changed: 0 additions & 12 deletions

File tree

host/src/main.rs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,6 @@ struct Args {
4242
#[arg(long, short = 'q')]
4343
quiet: bool,
4444

45-
/// Enable tool dispatch via __dispatch host function
46-
#[arg(long)]
47-
enable_tools: bool,
48-
4945
#[cfg(feature = "wasm-host-fns")]
5046
#[arg(
5147
long = "tool",
@@ -300,11 +296,6 @@ fn main() -> Result<()> {
300296
output_limit,
301297
)?;
302298
let tools = wasm_host_fns::WasmTool::load_all(&args.tool, &options)?;
303-
if args.enable_tools && tools.iter().any(|tool| tool.name() == "echo") {
304-
return Err(anyhow::anyhow!(
305-
"--tool echo=... conflicts with --enable-tools built-in echo"
306-
));
307-
}
308299
if !args.quiet {
309300
for tool in &tools {
310301
eprintln!("Tool: {} -> {}", tool.name(), tool.path().display());
@@ -330,9 +321,6 @@ fn main() -> Result<()> {
330321
if let Some(ports) = listen_ports {
331322
builder = builder.listen_ports(ports);
332323
}
333-
if args.enable_tools {
334-
builder = builder.tool("echo", Ok);
335-
}
336324
#[cfg(feature = "wasm-host-fns")]
337325
for tool in wasm_tools {
338326
let name = tool.name().to_string();

0 commit comments

Comments
 (0)