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

Refactoring #535

Merged
merged 1 commit into from
Nov 30, 2022
Merged

Refactoring #535

merged 1 commit into from
Nov 30, 2022

Conversation

ikrivosheev
Copy link
Member

I am continue working on improve API

New Features

  • Added Expr::custom_keyword
  • Added SimpleExpr::not

Breaking changes

  • MSRV is up to 1.62

Changes

  • Replace impl Default to #[derive(Default)]

1. Replace `impl Default` to `#[derive(Default)]`
2. Added `Expr::custom_keyword`
3. Added `SimpleExpr::not`
@ikrivosheev ikrivosheev self-assigned this Nov 29, 2022
@tyt2y3
Copy link
Member

tyt2y3 commented Nov 30, 2022

Just being curious, what feature do we need from 1.62?

Copy link
Member

@tyt2y3 tyt2y3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks nice

@billy1624
Copy link
Member

Just being curious, what feature do we need from 1.62?

We shouldn't bump MSRV simply because a new version of Rust is being released. MSRV should be kept to the minimum compatible version.

And Rust compiler will throw a seemingly unrelated error message when user compile the project with older Rust version. E.g. SeaQL/sea-orm#1045

@billy1624
Copy link
Member

Btw... we have this tool to find the minimum compatible Rust version: https://github.com/foresterre/cargo-msrv

@ikrivosheev
Copy link
Member Author

Just being curious, what feature do we need from 1.62?

@tyt2y3 I need it for https://rust-lang.github.io/rfcs/3107-derive-default-enum.html

@billy1624
Copy link
Member

Bumping MSRV in SeaQuery means bumping MSRV across nearly all SeaQL libraries. As SeaQuery is the foundation of everything.

@ikrivosheev
Copy link
Member Author

ikrivosheev commented Nov 30, 2022

I understand this.

  1. SeaORM - https://github.com/SeaQL/sea-orm/blob/master/Cargo.toml#L16 (MSRV 1.65)
  2. SeaSchema haven't this - https://github.com/SeaQL/sea-schema/blob/master/Cargo.toml

Copy link
Member

@billy1624 billy1624 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @ikrivosheev, thanks for the quick check!!
We should specify the MSRV in SeaSchema after this was merged

@ikrivosheev ikrivosheev merged commit b3c28aa into SeaQL:master Nov 30, 2022
@ikrivosheev ikrivosheev deleted the feature/refactoring branch November 30, 2022 13:07
@ikrivosheev ikrivosheev mentioned this pull request Nov 30, 2022
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.

3 participants