chore: refactored lib.rs to move commands into separate folder
This commit is contained in:
15
src-tauri/src/commands/sprite.rs
Normal file
15
src-tauri/src/commands/sprite.rs
Normal file
@@ -0,0 +1,15 @@
|
||||
use crate::services::sprite_recolor;
|
||||
|
||||
#[tauri::command]
|
||||
pub fn recolor_gif_base64(
|
||||
white_color_hex: String,
|
||||
black_color_hex: String,
|
||||
apply_texture: bool,
|
||||
) -> Result<String, String> {
|
||||
sprite_recolor::recolor_gif_base64(
|
||||
white_color_hex.as_str(),
|
||||
black_color_hex.as_str(),
|
||||
apply_texture,
|
||||
)
|
||||
.map_err(|e: Box<dyn std::error::Error>| e.to_string())
|
||||
}
|
||||
Reference in New Issue
Block a user