|
|
@ -134,10 +134,7 @@ pub struct Config { |
|
|
|
const DEFAULT_OUTPUT_PATH: &str = "output"; |
|
|
|
const DEFAULT_OUTPUT_PATH: &str = "output"; |
|
|
|
const DEFAULT_USER_AGENT: &str = concat!("registry-backup/v", clap::crate_version!()); |
|
|
|
const DEFAULT_USER_AGENT: &str = concat!("registry-backup/v", clap::crate_version!()); |
|
|
|
|
|
|
|
|
|
|
|
// const DEFAULT_INDEX: &str = "https://github.com/rust-lang/crates.io-index.git";
|
|
|
|
//const CRATESIO_INDEX: &str = "https://github.com/rust-lang/crates.io-index.git";
|
|
|
|
// fn default_index() -> String {
|
|
|
|
|
|
|
|
// DEFAULT_INDEX.to_string()
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fn default_output_path() -> PathBuf { |
|
|
|
fn default_output_path() -> PathBuf { |
|
|
|
PathBuf::from(DEFAULT_OUTPUT_PATH) |
|
|
|
PathBuf::from(DEFAULT_OUTPUT_PATH) |
|
|
|