IndustryFileAdapter

Trait IndustryFileAdapter 

Source
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§

Source

fn name(&self) -> &'static str

Get the name of this adapter (e.g., “cursor”, “claude”, “windsurf”)

Source

fn can_handle(&self, project_root: &Path) -> bool

Check if this adapter can handle files in the given directory

Source

fn read_config(&self, project_root: &Path) -> StorageResult<Config>

Read and convert industry-standard config to RiceCoder Config

Provided Methods§

Source

fn priority(&self) -> u32

Get the priority of this adapter (higher = higher priority) Used when multiple adapters can handle the same directory

Implementors§