Skip to content

Migrate sea-orm-macros from syn 2 to syn 3 - #3171

Open
TheShiveshNetwork wants to merge 5 commits into
SeaQL:masterfrom
TheShiveshNetwork:macros/syn-migration-to-v3
Open

Migrate sea-orm-macros from syn 2 to syn 3#3171
TheShiveshNetwork wants to merge 5 commits into
SeaQL:masterfrom
TheShiveshNetwork:macros/syn-migration-to-v3

Conversation

@TheShiveshNetwork

Copy link
Copy Markdown

PR Info

  • Closes
  • Dependencies:
  • Dependents:

New Features

  • [ ]

Bug Fixes

  • [ ]

Breaking Changes

  • Bumps syn from 2 to 3 in sea-orm-macros (internal proc-macro dependency; not a user-facing API change).

Changes

  • Upgrade syn to 3 (with full feature) in sea-orm-macros/Cargo.toml.
  • Adapt all derive macros to syn 3 API changes: reference-based &Type/&Visibility, TypePath::attrs, parse_quote! round-trips where owned values are needed, and RelationColumns::from_lit taking &LitStr.
  • Avoid re-emitting sea_orm::model / sea_orm::compact_model invocations in expand_sea_orm_model.
  • Remove now-unneeded #[derive(Clone)] on CompoundType.

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.

1 participant