Releases: cargo-generate/cargo-generate
π 0.3.1
-
π€ Fixes
-
Fix messages related to rename behavior - xortive, pull/162
--force
would stopcargo-generate
renaming your project, but we would
still message that the rename was happening. Not anymore! -
Use Vendored OpenSSL for macOS - xortive, pull/169
Our prebuilt binaries for macOS were using dynamically linked OpenSSL,
and our CI was dynamically linking to a version of OpenSSL not installed
by default on most macs. Now, the macOS release build ofcargo-generate
will work out of the box utilizing staticly linked, vendored OpenSSL.
-
-
π― New Templates
-
π οΈ Maintenace
β 0.3.0
-
β¨ Features
-
Support case filters in templates - epage, issue/117 pull/140
Because we leverage
liquid
as a templating engine under the hood, we
can add some specific filters to our substitutions to add a little more
awesome. This feature adds 4 filters:capitalize
pascal_case
kebab_case
snake_case
Now we can tame any set of letters with any type of capitalization or
dash! Give them a try and let us know what other types of features you'd
like to see.
-
-
π€ Fixes
-
Windows releases on Appveyor - jaysonsantos, issue/145 pull/146
Thanks to a new tool,
wrangler
, that usescargo-generate
as a
dependency, it was discovered that we were shipping broken Windows
binaries. We've fixed that now!
-
-
π― New Templates
-
π οΈ Maintenance
π 0.2.2
-
π€ Fixes
-
fix relative paths to templates - DD5HT, issue/128 pull/129
When we previously merged the PR in 0.2.0 that leveraged
cargo
to clone the templates,
enabling folks to work with private repositories- we introduced aGitConfig::new
function
(replacing work done previously bylibgit2
). This function works great- but did not support
relative paths. We didn't catch this because we weren't testing the relative paths usecase!With this PR, DD5HT has restored the relative path functionality- and added a test to prevent
further regressions of this function!
-
-
π οΈ Maintenance
- cargo update/cargo fmt - ashleygwilliams, pull/134 pull/133
π 0.2.1
-
π€ Fixes
-
don't error on missing
.genignore
file - DD5HT, issue/116 pull/120With 0.2.0 we introduced the idea of a
.genignore
file, however, we didn't account
the situation where one would not be present. Thanks for filing an issue
Diggsey and thanks for the quick fix DD5HT! -
enable use on private repositories- ChristopherMacGown, pull/119
This PR leveraged
cargo
to enable the ability to pull authenticated repos. As this
project grows into something we'd like to integrate intocargo
, this gives us
greater functionality and also moves us closer tocargo
's codebase. Yay! -
exclude submodules git metadata - ChristopherMacGown, pull/119
Two bugs, one PR! Adding a test found that git metadata wasn't being excluded from
submodules- now it is! Thanks so much!
-
-
π― New Templates
actix-tera
template - antweiss, pull/123samp rust sdk
template - Sreyas-Sreelal, pull/121
π« 0.2.0
-
β¨ Features
-
Support templates that use git submodules - k0pernicus, issue/83 pull/104
We now support templates that use git submodules! Yay!
-
Binary Releases for Linux, MacOS, and Windows - ashleygwilliams, issue/99 pull/111 pull/112
Motivated by a desire to more easily distributed the project - we now build binaries
for our releases. No more waiting for compilation! You can just download and go! -
Allow Liquid Templating
date
filter - ashleygwilliams, issue/70 pull/106By request, we've turned on the
date
filter for our templates. Now you can add
nicely formatted dates to your projects! For more information, check out the
Liquiddate
filter documentation. -
Add
.genignore
, ability to ignore files - DD5HT, issue/82 pull/96You can now add a
.genignore
file to your template. This file will specify the files
to be "cleaned up" or "removed" from the template once it has been cloned to the user's
local machine. -
Add
--branch
for specifying a branch - posborne, issue/71 pull/94We originally had no way to specify a git template on a per branch basis, opting to
only support the primary branch. Now you can specify a branch:cargo generate --git <gitURL> --branch <branchname>
-
Warn user if we change project name casing - k0pernicus, issue/65 pull/84
cargo-generate
will automagically "fix" the casing of your project name to
match Cargo standards. If we end up changing the name you provide- we'll warn
to let you know! -
Add
--force
flag to skip casing check on project name - toVersus, issue/66 pull/69cargo-generate
will automagically "fix" the casing of your project name to
match Cargo standards. If you'd like to skip that, you can add--force
. -
List of available templates - ashleygwilliams, issue/74 issue/50 pull/75
We are now keeping a running list of templates that are available to use with
cargo-generate
. Please add more! -
Add short command
cargo gen
- DD5HT, issue/53 pull/72You can now use
cargo gen
as a short command forcargo generate
. -
π οΈ Maintenance
-
Fixed some clippy warnings - 4tm4j33tk4ur, pull/109
-
Test safety of
.genignore
- ashleygwilliams, issue/97 pull/98 -
cargo update
and updatecargo fmt
call - ashleygwilliams, issue/86 pull/88 -
Test project name casing - ashleygwilliams, issue/63 pull/64
-
-
π₯ 0.1.1
-
π€ Fixes
-
Fix command to work properly as a cargo command - csmoe, issue/39 pull/44
Previous to this commit,
cargo-generate
was a CLI tool that was invoked by the
commandcargo-generate
(note the dash). However, this tool intends to be a cargo
subcommand! This commit changes how you invoke the tool- no more dash!cargo generate --git https://github.com/username/project --name look-ma-no-dash
-
Fix casing on
crate_name
substitution - ashleygwilliams, issue/41 pull/56crate_name
substitution is supposed to be a convenience, converting the given
project's name to a name that you could use withextern crate
or in other in-code
situations. Just one problem- before this commit, it didn't change the case!
Now it will. Thanks so much to fitzgen for filing this issue (and a bunch of others)!
-
-
π Documentation
-
Document build and runtime dependencies - migerh, issue/42 pull/45
There are a few dependencies for the project that we hadn't documented. Many folks
have these already installed, but some don't- so it's great that they are now well
documented in theREADME
. -
Update README and demo.gif to address The Dash - ashleygwilliams, pull/60
-
Typo Fix - rahulthakoor, pull/36
-
-
π οΈ Maintenance
-
Test substitutions - ashleygwilliams, issue/34 pull/56
We had features we weren't testing. This PR now adds test coverage for:
- substitution of
crate_name
- correct casing change of
crate_name
- substitution in files beyond
Cargo.toml
We still don't have full coverage but at least it's improving!
- substitution of
-
Split test helpers into files - ashleygwilliams, issue/33 pull/35
"i like small files and i cannot lie"
-
π0.1.0
Hello, world!