File tree Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Original file line number Diff line number Diff line change 2
2
// Copyright (c) 2023-2024 Rust Nostr Developers
3
3
// Distributed under the MIT software license
4
4
5
- use std:: fs;
6
- use std:: path:: PathBuf ;
5
+ // use std::fs;
6
+ // use std::path::PathBuf;
7
7
use std:: process:: { Command , Stdio } ;
8
8
9
9
use lib_flutter_rust_bridge_codegen:: codegen;
@@ -25,16 +25,16 @@ fn main() {
25
25
. unwrap ( )
26
26
. unwrap ( ) ;
27
27
28
- // Delete previously generated dart code
29
- if let Some ( path) = & config. dart_output {
30
- let dir: PathBuf = PathBuf :: from ( ".." ) . join ( path) ;
31
- if dir. exists ( ) {
32
- println ! ( "Deleting {}" , dir. display( ) ) ;
33
- fs:: remove_dir_all ( & dir) . unwrap ( ) ;
34
- }
35
-
36
- fs:: create_dir_all ( dir) . unwrap ( ) ;
37
- }
28
+ // // Delete previously generated dart code
29
+ // if let Some(path) = &config.dart_output {
30
+ // let dir: PathBuf = PathBuf::from("..").join(path);
31
+ // if dir.exists() {
32
+ // println!("Deleting {}", dir.display());
33
+ // fs::remove_dir_all(&dir).unwrap();
34
+ // }
35
+ //
36
+ // fs::create_dir_all(dir).unwrap();
37
+ // }
38
38
39
39
// Execute code generator with auto-detected config
40
40
codegen:: generate ( config, Default :: default ( ) ) . unwrap ( ) ;
You can’t perform that action at this time.
0 commit comments