Skip to content

v0.18.0

Choose a tag to compare

@github-actions github-actions released this 07 Sep 15:57
· 49 commits to master since this release
8258627

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 lib crate. (#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.3cargo 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.authors to skip Copyright and License Notices. (#164)

    Instead, add --mine github.com/your-username to the arguments.

  • Now uses rust-analyzer 2021-07-12 for Rust 1.47 and 2021-08-09 for 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)

    Now accepts dyn for<'a> Trait<'a>.

  • Enabled reading license files from git/path package sources. (#156)

    Previously cargo-equip reaches a todo!.

  • Now handles path dependencies correctly when checking an output. (#156, #166)