Skip to main content

Source

Trait Source 

Source
pub trait Source {
    // Required methods
    fn list_files(&self) -> Result<Vec<String>>;
    fn read(&self, path: &str) -> Result<Vec<u8>>;
}
Expand description

Lists and reads files of a repository snapshot. Paths are repo-relative, /-separated, and sorted. Symlinks are not included. Paths under .git, target, .miwa, .worktrees, node_modules, obj, and dist are excluded (directory names at any depth; files with those names are not). Further directory names can be excluded via exclude in the config, which is applied in build_graph.

Required Methods§

Source

fn list_files(&self) -> Result<Vec<String>>

Source

fn read(&self, path: &str) -> Result<Vec<u8>>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§