File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ( ) ;
You can’t perform that action at this time.
0 commit comments