mirror of
				https://github.com/AppFlowy-IO/AppFlowy.git
				synced 2025-10-31 10:03:18 +00:00 
			
		
		
		
	
		
			
	
	
		
			20 lines
		
	
	
		
			493 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
		
		
			
		
	
	
			20 lines
		
	
	
		
			493 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
|   | #[cfg(feature = "tauri_ts")]
 | ||
|  | use flowy_codegen::Project;
 | ||
|  | 
 | ||
|  | fn main() {
 | ||
|  |   #[cfg(any(feature = "dart", feature = "tauri_ts"))]
 | ||
|  |   let crate_name = env!("CARGO_PKG_NAME");
 | ||
|  | 
 | ||
|  |   #[cfg(feature = "dart")]
 | ||
|  |   {
 | ||
|  |     flowy_codegen::protobuf_file::dart_gen(crate_name);
 | ||
|  |     flowy_codegen::dart_event::gen(crate_name);
 | ||
|  |   }
 | ||
|  | 
 | ||
|  |   #[cfg(feature = "tauri_ts")]
 | ||
|  |   {
 | ||
|  |     flowy_codegen::protobuf_file::ts_gen(crate_name, crate_name, Project::Tauri);
 | ||
|  |     flowy_codegen::ts_event::gen(crate_name, Project::Tauri);
 | ||
|  |   }
 | ||
|  | }
 |