π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Clear cached N-API type definitions
laurenspriemdc51bd23191a
diff --git a/rust/apps/codegen/src/main.rs b/rust/apps/codegen/src/main.rsindex 095fdef922..f30120f19a 100644--- a/rust/apps/codegen/src/main.rs+++ b/rust/apps/codegen/src/main.rs@@ -227,6 +227,13 @@ fn generate_napi() -> Result<(), DynError> {.set_modified(SystemTime::now())?;let type_def_dir = target_dir()?.join("napi-type-defs");+ match fs::remove_dir_all(&type_def_dir) {+ Ok(()) => {}+ Err(error) if error.kind() == std::io::ErrorKind::NotFound => {}+ Err(error) => {+ return Err(format!("failed to clear {}: {error}", type_def_dir.display()).into());+ }+ }fs::create_dir_all(&type_def_dir)?;run_command(Command::new("cargo")