Cargo-Wrap
This crate is basically just Rust bindings for cargo. For now supports the following flags and features:
Features
- Verbose logging (
--verbose) - Release or Debug build modes (
--release) - Custom job counts (
--jobs N) - Custom target output directories (
CARGO_TARGET_DIR) - Specify build targets (
--target X) - Feature listing and activation (
--features X,--no-default-features) - Binary/Library build selection (
--bin X,--lib X) - Extra
rustcflags (RUSTFLAGS)
Installation
cargo add cargo_wrap
= "0.1.5"
Examples
Basic Build
use ;
use io;
Enable Features
use ;
use io;
Changelog
0.1.0
- Initial commit
0.1.1
- Added additional
rustcflag support
0.1.2
- Added
#[derive(Clone)]support for theProjectSettingsstruct
0.1.3
- Added support for manually setting build targets
- Added support for manually setting the output path
0.1.4
- Added support for manually setting the project path
0.1.5
- Fixed feature bug
License
MIT