Closed JosiahParry closed 6 months ago
CC @eitsupi I would like your eyes on this! I opted for cargo-bump
since it is easier to use and isn't tied to actually publishing a crate.
I opted for
cargo-bump
since it is easier to use and isn't tied to actually publishing a crate.
cargo-bump
does not seem to be currently maintained and is not recommended to be used.
Sure, thats fine. More importantly, though, is the user experience. Do you prefer masking usethis?
Do you prefer masking usethis?
I would also prefer to update only Cargo.toml without wrapping the usethis function as you suggested.
This PR closes https://github.com/extendr/rextendr/issues/304 and is related to #228.
This draft creates two functions
use_version()
andsync_version()
.sync_version()
will set the version of the Rust crate insrc
to match that in theDESCRIPTION
file.use_version()
wrapsusethis::use_version()
and 1. callsusethis::use_version()
to increment the package version and 2. syncs the version withsync_version()
I personally think masking functions from usethis is a little questionable. I like the workflow of:
Alternatively, we could change the name of
use_version()
toincrement_version()
to avoid namespace conflicts.