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

Making diesel optional #32

Open
LucaCappelletti94 opened this issue Feb 14, 2025 · 0 comments
Open

Making diesel optional #32

LucaCappelletti94 opened this issue Feb 14, 2025 · 0 comments

Comments

@LucaCappelletti94
Copy link

Hi @vitaly-m and thank you for making this crate. I am using it in a monolithic web application, where I use Rust for both the yew-based frontend and diesel-based backend. As such, I define the structs associated to the tables once in a common crate which is shared for both frontend and backend, with different feature guards where needed.

Since I'd like to avoid duplicating the postgis-diesel structs, I would find it best if diesel was a default but optional feature of guarded by a feature.

I will be making a pull request adding such feature guards shortly, hopefully I made the reason for this change clear.

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

No branches or pull requests

1 participant