@@ -15,7 +15,7 @@ use hydro_deploy::custom_service::CustomClientPort;
1515use hydro_deploy:: rust_crate:: RustCrateService ;
1616use hydro_deploy:: rust_crate:: ports:: { DemuxSink , RustCrateSink , RustCrateSource , TaggedSource } ;
1717use hydro_deploy:: rust_crate:: tracing_options:: TracingOptions ;
18- use hydro_deploy:: { CustomService , Deployment , Host , RustCrate , TracingResults } ;
18+ use hydro_deploy:: { CustomService , Deployment , Host , HostTargetType , RustCrate , TracingResults } ;
1919use hydro_deploy_integration:: { ConnectedSink , ConnectedSource } ;
2020use nameof:: name_of;
2121use proc_macro2:: Span ;
@@ -1043,6 +1043,7 @@ fn create_trybuild_service(
10431043 features : & Option < Vec < String > > ,
10441044 bin_name : & str ,
10451045) -> RustCrate {
1046+ let target_type = trybuild. host . target_type ( ) ;
10461047 let mut ret = RustCrate :: new ( dir, trybuild. host )
10471048 . target_dir ( target_dir)
10481049 . example ( bin_name)
@@ -1084,6 +1085,10 @@ fn create_trybuild_service(
10841085 . chain ( trybuild. features ) ,
10851086 ) ;
10861087
1088+ if target_type != HostTargetType :: Local {
1089+ ret = ret. features ( [ "hydro___feature_runtime_mimalloc" . to_string ( ) ] ) ;
1090+ }
1091+
10871092 for ( key, value) in trybuild. build_envs {
10881093 ret = ret. build_env ( key, value) ;
10891094 }
0 commit comments