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

Diesel 2 feature support #533

Merged
merged 4 commits into from
Aug 5, 2022
Merged

Diesel 2 feature support #533

merged 4 commits into from
Aug 5, 2022

Conversation

paupino
Copy link
Owner

@paupino paupino commented Aug 5, 2022

This enables diesel 2.0.0-rc.1 support via two new feature flags: db-diesel2-mysql and db-diesel2-postgres. In fact, to make things easier diesel features are now explicit (i.e. db-diesel1-*) with a backwards compatible feature flag pointing to version 1.4.

Another notable change is that because of uncertainty building both diesel1 and diesel2 at the same time, I explicitly include a compiler error if both features are enabled.

Subsequently, the build system needed to relax during the first build step. It built using --all-features however due to complexities with Serde configuration etc it was admittedly a little pointless. Sadly though, I can't use --all-features on clippy anymore - though as a future change I made move this to the makefile and process feature by feature. It'd be nice if cargo allowed you to exclude features as that way we could avoid conflicting features.

Anyway, this closes #531 and replaces #512 (though thank you for the quick and easy updates I could apply!)

@paupino paupino merged commit 8ea8b07 into master Aug 5, 2022
@paupino paupino deleted the f/diesel2 branch August 5, 2022 02:18
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.

Add support for diesel 2.x.x
1 participant