pub trait IndustryFileAdapter: Send + Sync {
// Required methods
fn name(&self) -> &'static str;
fn can_handle(&self, project_root: &Path) -> bool;
fn read_config(&self, project_root: &Path) -> StorageResult<Config>;
// Provided method
fn priority(&self) -> u32 { ... }
}Expand description
Trait for adapting industry-standard configuration files to RiceCoder format
Required Methods§
Sourcefn name(&self) -> &'static str
fn name(&self) -> &'static str
Get the name of this adapter (e.g., “cursor”, “claude”, “windsurf”)
Sourcefn can_handle(&self, project_root: &Path) -> bool
fn can_handle(&self, project_root: &Path) -> bool
Check if this adapter can handle files in the given directory
Sourcefn read_config(&self, project_root: &Path) -> StorageResult<Config>
fn read_config(&self, project_root: &Path) -> StorageResult<Config>
Read and convert industry-standard config to RiceCoder Config