use migration_helpers::common_migrations::AddPrefixesMigration; use migration_helpers::{migrate, Result}; use std::process; /// We added a set of settings for configuring service network behavior and their associated /// configuration file. Remove the whole `settings.network`, `configuration-files.proxy-env` prefix /// if we downgrade. fn run() -> Result<()> { migrate(AddPrefixesMigration(vec![ "settings.network", "configuration-files.proxy-env", ])) } // Returning a Result from main makes it print a Debug representation of the error, but with Snafu // we have nice Display representations of the error, so we wrap "main" (run) and print any error. // https://github.com/shepmaster/snafu/issues/110 fn main() { if let Err(e) = run() { eprintln!("{}", e); process::exit(1); } }