pub struct ProjectScanner { /* private fields */ }Implementations§
Source§impl ProjectScanner
impl ProjectScanner
pub fn new() -> Self
pub fn with_current_dir<P: AsRef<Path>>(path: P) -> Self
Sourcepub fn detect_project(&self) -> Result<Option<ProjectInfo>, ScanError>
pub fn detect_project(&self) -> Result<Option<ProjectInfo>, ScanError>
Detect if we’re in a Tauri project and gather project information
Sourcepub fn discover_rust_files(
&self,
project_info: &ProjectInfo,
) -> Result<Vec<PathBuf>, ScanError>
pub fn discover_rust_files( &self, project_info: &ProjectInfo, ) -> Result<Vec<PathBuf>, ScanError>
Discover all Rust source files in the project
Sourcepub fn has_frontend(&self, project_info: &ProjectInfo) -> bool
pub fn has_frontend(&self, project_info: &ProjectInfo) -> bool
Check if the project has package.json (indicates frontend project)
Sourcepub fn get_recommended_output_path(&self, project_info: &ProjectInfo) -> String
pub fn get_recommended_output_path(&self, project_info: &ProjectInfo) -> String
Get the recommended output path based on project structure
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ProjectScanner
impl RefUnwindSafe for ProjectScanner
impl Send for ProjectScanner
impl Sync for ProjectScanner
impl Unpin for ProjectScanner
impl UnwindSafe for ProjectScanner
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more