Skip to content

[Q&A] Is it possible to target edition=2018 instead? #1699

Closed
@Byron

Description

@Byron

When integrating gitoxide with other packages, some of them set a minimum supported rust version (MSRV), which may also constrain the maximum supported edition. However, when integrating with vergen in particular this now fails only for the reason of requiring a higher edition in windows than is supported by their MSRV.

Currently the windows crates require edition = 2021 and I wonder if it's technically possible to switch them to edition 2018, maybe because no features that would require edition 2021 are actually used.

If edition 2021 is indeed required, this issue can be closed. Otherwise I think there is value in supporting a lower edition for greater compatibility.

Note that gitoxide was setting higher editions and the latest compiler features for no other reason except for 'novelty', but learned why that would be undesirable when integrating with vergen. That's the only reason I post this issue here, there might be a chance :).

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions