Struct cargo::util::config::Config [] [src]

pub struct Config {
    // some fields omitted
}

Methods

impl Config

fn new(shell: MultiShell, cwd: PathBuf, homedir: PathBuf) -> CargoResult<Config>

fn default() -> CargoResult<Config>

fn home(&self) -> &Path

fn git_db_path(&self) -> PathBuf

fn git_checkout_path(&self) -> PathBuf

fn registry_index_path(&self) -> PathBuf

fn registry_cache_path(&self) -> PathBuf

fn registry_source_path(&self) -> PathBuf

fn shell(&self) -> RefMut<MultiShell>

fn rustc(&self) -> &Path

fn rustdoc(&self) -> &Path

fn rustc_info(&self) -> &Rustc

fn values(&self) -> CargoResult<Ref<HashMap<String, ConfigValue>>>

fn cwd(&self) -> &Path

fn target_dir(&self, pkg: &Package) -> PathBuf

fn set_target_dir(&self, path: &Path)

fn get(&self, key: &str) -> CargoResult<Option<ConfigValue>>

fn get_string(&self, key: &str) -> CargoResult<Option<(String, PathBuf)>>

fn get_path(&self, key: &str) -> CargoResult<Option<PathBuf>>

fn get_list(&self, key: &str) -> CargoResult<Option<(Vec<(String, PathBuf)>, PathBuf)>>

fn get_table(&self, key: &str) -> CargoResult<Option<(HashMap<String, CV>, PathBuf)>>

fn get_i64(&self, key: &str) -> CargoResult<Option<(i64, PathBuf)>>

fn expected<T>(&self, ty: &str, key: &str, val: CV) -> CargoResult<T>