Refactor imports in various modules to streamline code and remove unused dependencies
This commit is contained in:
parent
ae885f3780
commit
1ebb16c15f
@ -1,4 +1,4 @@
|
||||
use serde::{Deserialize, Serialize}; // Added Serialize for potential use, Deserialize is essential
|
||||
use serde::Deserialize; // Added Serialize for potential use, Deserialize is essential
|
||||
use std::error::Error;
|
||||
use std::path::Path;
|
||||
use crate::{HttpClient};
|
||||
@ -6,7 +6,7 @@ use crate::models::repository::{RepositoryPlugin, RepositorySource};
|
||||
use urlencoding;
|
||||
use async_trait::async_trait;
|
||||
use std::sync::Arc;
|
||||
use std::time::{SystemTime, UNIX_EPOCH}; // For converting timestamp
|
||||
use std::time::SystemTime; // For converting timestamp
|
||||
use base64::{Engine as _, engine::general_purpose::STANDARD}; // Correct import with Engine trait
|
||||
use serde_json::Value; // Import Value
|
||||
use crate::crawlers::Repository; // Use the correct trait import
|
||||
|
@ -1,19 +1,12 @@
|
||||
// Learn more about Tauri commands at https://tauri.app/develop/calling-rust/
|
||||
|
||||
// Standard library imports
|
||||
use std::error::Error;
|
||||
use std::fs::{self, File};
|
||||
use std::io::{Read, Seek, Write};
|
||||
use std::path::{Path, PathBuf};
|
||||
use std::path::Path;
|
||||
use std::env;
|
||||
use std::sync::Arc;
|
||||
use std::time::Duration;
|
||||
|
||||
// Serde for serialization/deserialization
|
||||
use serde::{Serialize, Deserialize};
|
||||
|
||||
// Tauri related imports
|
||||
use tauri::{command, Emitter, AppHandle, Manager, State, Window};
|
||||
|
||||
// Internal modules
|
||||
pub mod models;
|
||||
|
@ -7,7 +7,7 @@ use std::ffi::OsStr;
|
||||
use std::io::Read;
|
||||
|
||||
use crate::models::server::{ServerType, ServerInfo, ScanResult, ScanProgress};
|
||||
use crate::models::plugin::{Plugin, PluginMeta};
|
||||
use crate::models::plugin::Plugin;
|
||||
use super::metadata_extractor::extract_plugin_metadata;
|
||||
|
||||
/// Scan a server directory and emit progress events
|
||||
|
@ -1,7 +1,5 @@
|
||||
use tauri::{AppHandle, Emitter};
|
||||
use std::error::Error;
|
||||
use futures::{future, stream::StreamExt};
|
||||
use tauri::async_runtime::spawn;
|
||||
use futures::stream::StreamExt;
|
||||
|
||||
use crate::models::plugin::Plugin;
|
||||
use crate::models::repository::{RepositorySource, RepositoryPlugin, BulkUpdateProgress, SingleUpdateResult};
|
||||
|
Loading…
Reference in New Issue
Block a user