@@ -27,7 +27,7 @@ use tauri_bundler::{
2727} ;
2828use tauri_utils:: config:: { parse:: is_configuration_file, DeepLinkProtocol , RunnerConfig , Updater } ;
2929
30- use super :: { AppSettings , DevProcess , ExitReason , Interface } ;
30+ use super :: { AppSettings , DevProcess , ExitReason } ;
3131use crate :: {
3232 error:: { Context , Error , ErrorExt } ,
3333 helpers:: {
@@ -134,10 +134,8 @@ pub struct Rust {
134134 main_binary_name : Option < String > ,
135135}
136136
137- impl Interface for Rust {
138- type AppSettings = RustAppSettings ;
139-
140- fn new ( config : & Config , target : Option < String > , tauri_dir : & Path ) -> crate :: Result < Self > {
137+ impl Rust {
138+ pub fn new ( config : & Config , target : Option < String > , tauri_dir : & Path ) -> crate :: Result < Self > {
141139 let manifest = {
142140 let ( tx, rx) = sync_channel ( 1 ) ;
143141 let mut watcher = new_debouncer ( Duration :: from_secs ( 1 ) , None , move |r| {
@@ -177,11 +175,11 @@ impl Interface for Rust {
177175 } )
178176 }
179177
180- fn app_settings ( & self ) -> Arc < Self :: AppSettings > {
178+ pub fn app_settings ( & self ) -> Arc < RustAppSettings > {
181179 self . app_settings . clone ( )
182180 }
183181
184- fn build ( & mut self , options : Options , dirs : & Dirs ) -> crate :: Result < PathBuf > {
182+ pub fn build ( & mut self , options : Options , dirs : & Dirs ) -> crate :: Result < PathBuf > {
185183 desktop:: build (
186184 options,
187185 & self . app_settings ,
@@ -192,7 +190,7 @@ impl Interface for Rust {
192190 )
193191 }
194192
195- fn dev < F : Fn ( Option < i32 > , ExitReason ) + Send + Sync + ' static > (
193+ pub fn dev < F : Fn ( Option < i32 > , ExitReason ) + Send + Sync + ' static > (
196194 & mut self ,
197195 config : & mut ConfigMetadata ,
198196 mut options : Options ,
@@ -236,7 +234,7 @@ impl Interface for Rust {
236234 }
237235 }
238236
239- fn mobile_dev <
237+ pub fn mobile_dev <
240238 R : Fn ( MobileOptions , & ConfigMetadata ) -> crate :: Result < Box < dyn DevProcess + Send > > ,
241239 > (
242240 & mut self ,
@@ -270,7 +268,7 @@ impl Interface for Rust {
270268 }
271269 }
272270
273- fn watch < R : Fn ( & ConfigMetadata ) -> crate :: Result < Box < dyn DevProcess + Send > > > (
271+ pub fn watch < R : Fn ( & ConfigMetadata ) -> crate :: Result < Box < dyn DevProcess + Send > > > (
274272 & mut self ,
275273 config : & mut ConfigMetadata ,
276274 options : WatcherOptions ,
@@ -287,7 +285,7 @@ impl Interface for Rust {
287285 )
288286 }
289287
290- fn env ( & self ) -> HashMap < & str , String > {
288+ pub fn env ( & self ) -> HashMap < & str , String > {
291289 let mut env = HashMap :: new ( ) ;
292290 env. insert (
293291 "TAURI_ENV_TARGET_TRIPLE" ,
0 commit comments