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

Versioned feature to support rstar 0.9 #682

Merged
merged 2 commits into from
Nov 26, 2021

Conversation

rmanoka
Copy link
Contributor

@rmanoka rmanoka commented Nov 20, 2021

  • I agree to follow the project's code of conduct.
  • I added an entry to CHANGES.md if knowledge of this change could be valuable to users.

Another approach to solve resolve #660 . It seems this approach is not uncommon: eg. https://docs.rs/tokio-postgres/0.7.5/tokio_postgres/#features . It does involve a bit of boiler-plate macros though :(

Copy link
Member

@michaelkirk michaelkirk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This approach makes sense to me. Thanks for workshopping with us @rmanoka.

@@ -22,6 +23,7 @@ serde = { version = "1", optional = true, features = ["derive"] }
# rstar integration relies on the optional approx crate, but implicit features cannot yet enable other features.
# See: https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#namespaced-features
rstar = { version = "0.8", optional = true }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so, if/when we eventually make a major update to geo-types, we'd presumably drop the older rstars?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, we can drop old versions based on some agreeable policy; simplest would be to drop all but latest.

Another question is we adopt a uniform "use-{crate}-{version}" name for the feature or if there's going to be one without version. I think the uniform naming makes more sense, but don't have a strong opinion.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd say uniform. I didn't add a comment about it because it would imply a breaking change in the next release, which I assume you wanted to avoid.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense. Will add some docs so we adopt a policy at the next breaking release.

@rmanoka
Copy link
Contributor Author

rmanoka commented Nov 26, 2021

Thanks for the approvals. I'll go ahead and refactor the rstar tests to work with either feature, and merge this if all tests pass.

Any thoughts on CI? I wonder if too many versions would lead to too many combinations here. Not an issue at the moment I think.

Edit: typos

@lnicola
Copy link
Member

lnicola commented Nov 26, 2021

I'd enable all the versions, but not test the combinations.

@rmanoka
Copy link
Contributor Author

rmanoka commented Nov 26, 2021

bors try

bors bot added a commit that referenced this pull request Nov 26, 2021
@bors
Copy link
Contributor

bors bot commented Nov 26, 2021

try

Build succeeded:

@rmanoka
Copy link
Contributor Author

rmanoka commented Nov 26, 2021

bors r=@lnicola,@michaelkirk

@bors
Copy link
Contributor

bors bot commented Nov 26, 2021

Build succeeded:

@bors bors bot merged commit 48ba1e7 into georust:master Nov 26, 2021
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.

3 participants