Skip to content

Commit 6bfca19

Browse files
committed
Disable dart output deletion in build.rs
1 parent deb74a9 commit 6bfca19

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

rust/build.rs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
// Copyright (c) 2023-2024 Rust Nostr Developers
33
// Distributed under the MIT software license
44

5-
use std::fs;
6-
use std::path::PathBuf;
5+
// use std::fs;
6+
// use std::path::PathBuf;
77
use std::process::{Command, Stdio};
88

99
use lib_flutter_rust_bridge_codegen::codegen;
@@ -25,16 +25,16 @@ fn main() {
2525
.unwrap()
2626
.unwrap();
2727

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+
// }
3838

3939
// Execute code generator with auto-detected config
4040
codegen::generate(config, Default::default()).unwrap();

0 commit comments

Comments
 (0)