11use std:: path:: PathBuf ;
22
3- #[ cfg( any( target_os = "linux" , target_os = "windows" ) ) ]
43pub mod config;
5- #[ cfg( target_os = "windows" ) ]
64pub mod exec;
7- #[ cfg( any( target_os = "linux" , target_os = "windows" ) ) ]
85pub mod file;
96pub mod fleet_control_api;
10- #[ cfg( any( target_os = "linux" , target_os = "windows" ) ) ]
117pub mod logs;
12- #[ cfg( any( target_os = "linux" , target_os = "windows" ) ) ]
138pub mod nrql;
14- #[ cfg( any( target_os = "linux" , target_os = "windows" ) ) ]
159pub mod on_drop;
1610pub mod test;
1711
@@ -103,18 +97,15 @@ pub struct FleetControlApiArgs {
10397}
10498
10599/// Data to set up installation
106- #[ cfg( any( target_os = "linux" , target_os = "windows" ) ) ]
107100pub struct RecipeData {
108101 pub args : InstallationArgs ,
109102 pub fleet_id : String ,
110103 pub fleet_enabled : bool ,
111104 pub recipe_list : String ,
112105 pub proxy_url : String ,
113- #[ cfg( target_os = "linux" ) ]
114106 pub monitoring_source : String ,
115107}
116108
117- #[ cfg( any( target_os = "linux" , target_os = "windows" ) ) ]
118109impl Default for RecipeData {
119110 fn default ( ) -> Self {
120111 Self {
@@ -123,7 +114,6 @@ impl Default for RecipeData {
123114 proxy_url : Default :: default ( ) ,
124115 fleet_enabled : false ,
125116 recipe_list : "agent-control" . to_string ( ) ,
126- #[ cfg( target_os = "linux" ) ]
127117 monitoring_source : "infra-agent" . to_string ( ) ,
128118 }
129119 }
0 commit comments