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

Require Rust 1.62 for enum defaults #251

Merged
merged 1 commit into from
Jun 1, 2023
Merged

Commits on Jun 1, 2023

  1. Require Rust 1.62 for enum defaults

    All our examples use codegen from `graphql_client_codegen` which
    uses [enum defaults][1] which are only [supported as of 1.62][2].
    
    This commit makes that requirement explicit for a more helpful error
    message:
    
    > $ cargo build
    > error: package [..] ([.. path..]])` cannot be built because it
    > requires rustc 1.62.0 or newer, while the currently active rustc
    > version is 1.61.0
    
    [1]: https://github.com/graphql-rust/graphql-client/blob/33b8a34aabbaaac9977a93763ae445dc64b5c67c/graphql_client_codegen/src/deprecation.rs#L10-L20
    [2]: rust-lang/rust#94457 (comment)
    jbourassa committed Jun 1, 2023
    Configuration menu
    Copy the full SHA
    6dbd1c7 View commit details
    Browse the repository at this point in the history