Release Manager
A tool to manage releasing crates with cross-compiled binaries.
In order to cross compile rust, you'll need to make sure you have targets added through rustup, and a native toolchain to handle compiling C dependencies and linking the binaries. Getting these tools set up is outside the scope of this project. See rust-cross for information about cross-compiling rust projects.
Release Manager currently handles the following targets:
x86_64-pc-windows-gnuconfigured as[config.Windows.amd64]i686-pc-windows-gnuconfigured as[config.Windows.i686]x86_64-apple-darwinconfigured as[config.Apple.amd64]x86_64-unknown-linux-gnuconfigured as[config.Linux.amd64]arm-unknown-linux-gnueabihfconfigured as[config.Linux.armh]armv7-unknown-linux-gnueabihfconfigured as[config.Linux.armv7haarch64-unknown-linux-gnuconfigured as[config.Linux.aarch64]
Once you have your cross compile targets set up, create a Release.toml. By default, release-manager expects the release toml to be in your crate's directory. If you wish to keep this file somewhere else, you can pass the -r option to release-manager with a path to the config.
= "/home/asonix/Development/rust/releases"
= "LICENSE"
= "README.md"
[]
= ["/usr/aarch64-linux-gnu/lib", "/home/asonix/Development/aarch64/lib"]
= { = "/home/asonix/Development/aarch64", = "1" }
[]
= ["/usr/arm-linux-gnueabihf/lib", "/home/asonix/Development/armeabi/lib"]
= { = "/home/asonix/Development/armeabi", = "1" }
[]
= ["/usr/arm-linux-gnueabihf/lib", "/home/asonix/Development/armeabi/lib"]
= { = "/home/asonix/Development/armeabi", = "1" }
[]
= []
= {}
[]
= ["/usr/x86_64-w64-mingw32/lib"]
= { = "1" }
The help menu
$ release-manager
release-manager 0.1.0
Riley Trautman <asonix@tamu.edu>
A utility for creating release binaries for multiple platforms
USAGE:
release-manager [FLAGS] [OPTIONS]
FLAGS:
-f, --force Force recompiling of succeeded builds
-h, --help Prints help information
-p, --publish Publish to crates.io on succesfull build
-V, --version Prints version information
OPTIONS:
-r, --release-config <release_config> Provide an alternative path for the release config
-s, --status-file <status_file> Provide an alternative path for the status file
When running release-manager, it will create a Status.toml file in your project's directory. If you wish to put this somewhere else, you can pass the -s option to release-manager. The status file is used to keep track of which builds have succeeded for which versions of the crate, and whether a crate has been published for this version.
License
Release Manager is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
Release Manager is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. This file is part of Release Manager
You should have received a copy of the GNU General Public License along with Release Manager If not, see http://www.gnu.org/licenses/.