Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upCompiling `diesel_codegen` with no features gives a less than useful error message #570
Comments
This comment has been minimized.
|
Is there a nice way to do this? All I can think of is something like #[cfg(not(any(feature = "sqlite", feature = "postgres")))]
mod hello_you_need_enable_one_of_the_backend_adapters_as_cargo_feature_thank_you; |
This comment has been minimized.
|
We just need to implement the derives that are behind a cfg flag to give a
more specific error when called.
…On Tue, Jan 10, 2017, 9:20 AM Pascal Hertleif ***@***.***> wrote:
Is there a nice way to do this? All I can think of is something like
#[cfg(not(any(feature = "sqlite", feature = "postgres")))]mod hello_you_need_enable_one_of_the_backend_adapters_as_cargo_feature_thank_you;
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#570 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABdWK7DlGUF5trvNMvzuL7fY_4ylZzuxks5rQ5OLgaJpZM4LejmM>
.
|
This comment has been minimized.
|
This was fixed a while back when |
sgrif
closed this
Dec 16, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
sgrif commentedJan 9, 2017