rdist 0.0.0

Automatically distribute updates to Rust binaries
Documentation
#[derive(Default, Debug)]
pub struct App {
    pub bin_src: String,
    pub current_version: String,
    pub version_src: String,
}

impl App {
    pub fn new() -> Self {
        App {
            ..Default::default()
        }
    }

    /// Sets the remote source from which to download the updated package.
    pub fn bin_src(mut self, src: String) -> Self {
        // TODO: validate web address
        self.bin_src = src;
        self
    }

    /// Sets the current binary version.
    pub fn current_version(mut self, version: String) -> Self {
        // TODO: validate semver
        self.current_version = version;
        self
    }

    /// Sets the location from which to parse the latest binary version.
    pub fn version_src(mut self, src: String) -> Self {
        self.version_src = src;
        self
    }
}