Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DRAFT - feedback needed] Sync crate and R package versions #307

Closed
wants to merge 1 commit into from

Conversation

JosiahParry
Copy link
Contributor

This PR closes #304 and is related to #228.

This draft creates two functions use_version() and sync_version().

  • sync_version() will set the version of the Rust crate in src to match that in the DESCRIPTION file.
  • use_version() wraps usethis::use_version() and 1. calls usethis::use_version() to increment the package version and 2. syncs the version with sync_version()

I personally think masking functions from usethis is a little questionable. I like the workflow of:

  • make some significant changes to a package
  • usethis::use_version()
  • sync_version()

Alternatively, we could change the name of use_version() to increment_version() to avoid namespace conflicts.

@JosiahParry
Copy link
Contributor Author

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.

@eitsupi
Copy link
Contributor

eitsupi commented Aug 9, 2023

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.

@JosiahParry
Copy link
Contributor Author

Sure, thats fine. More importantly, though, is the user experience. Do you prefer masking usethis?

@eitsupi
Copy link
Contributor

eitsupi commented Aug 13, 2023

Do you prefer masking usethis?

I would also prefer to update only Cargo.toml without wrapping the usethis function as you suggested.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

use_version()-like function to sync package version between R and rust crate
2 participants