v0.18.0
Added
-
Added
--mod-path <MODULE_PATH>option. (#159)+ --mod-path <MODULE_PATH> Expand the libraries to the module [default: crate::__cargo_equip] -
Added
--mine <DOMAIN_AND_USERNAME>...option. (#169)+ --mine <DOMAIN_AND_USERNAME>... + Do not include license and copyright notices for the users. + + Supported formats: + * github.com/{username} + * gitlab.com/{username}
Changed
-
Enabled running for a
libcrate. (#156)Now you can easily produce standalone Rust source files like
my_library.rs.❯ cargo metadata --format-version 1 | jq -r .resolve.root | awk '{ print $1, $2 }' proconio 0.4.3 ❯ cargo equip --minify libs --remove docs -o ./proconio.rs
-
Changed potition of the generated doc comment. (#161)
-//! # Bundled libraries -//! ⋮ use __cargo_equip::prelude::*; fn main() {} +/// # Bundled libraries +/// ⋮ #[allow(unused)] mod __cargo_equip { // ⋮ }
-
cargo-equip no longer uses
package.authorsto skip Copyright and License Notices. (#164)Instead, add
--mine github.com/your-usernameto the arguments. -
Now uses rust-analyzer
2021-07-12for Rust 1.47 and2021-08-09for Rust 1.48+. (#163)
Fixed
-
#[macro_export]ed macros will remain in textual scope. (#170)#[macro_export] -macro_rules! hello { +macro_rules! /*hello*/__cargo_equip_macro_lib_hello { () => { ::std::println!("Hello!") }; } +macro_rules!hello{($($tt:tt)*)=>(crate::__cargo_equip_macro_lib_hello!{$($tt)*})}
-
Improved the minification function. (#153, #157)
-let _=| |(); +let _=||();
-
(also applied to the previous versions unless
--locked) Updated syn to v1.0.74. (#155) -
Enabled reading license files from
git/pathpackage sources. (#156)Previously cargo-equip reaches a
todo!. -
Now handles
pathdependencies correctly when checking an output. (#156, #166)