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

Upgrading to syn v2 #1713

Merged
merged 8 commits into from
Jun 26, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Rename bae2
  • Loading branch information
billy1624 committed Jun 26, 2023
commit 90cb5cb520523120f0eee2e77293324d6f8bc0f4
4 changes: 2 additions & 2 deletions sea-orm-macros/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ path = "src/lib.rs"
proc-macro = true

[dependencies]
bae2 = { version = "1", default-features = false, optional = true }
bae = { version = "1", package = "bae2", default-features = false, optional = true }
syn = { version = "2", default-features = false, features = ["parsing", "proc-macro", "derive", "printing"] }
quote = { version = "1", default-features = false }
heck = { version = "0.4", default-features = false }
Expand All @@ -32,6 +32,6 @@ serde = { version = "1.0", features = ["derive"] }
[features]
default = ["derive"]
postgres-array = []
derive = ["bae2"]
derive = ["bae"]
strum = []
seaography = []
6 changes: 3 additions & 3 deletions sea-orm-macros/src/derives/attributes.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
pub mod derive_attr {
use bae2::FromAttributes;
use bae::FromAttributes;

/// Attributes for Models and ActiveModels
#[derive(Default, FromAttributes)]
Expand All @@ -16,7 +16,7 @@ pub mod derive_attr {
}

pub mod field_attr {
use bae2::FromAttributes;
use bae::FromAttributes;

/// Operations for Models and ActiveModels
#[derive(Default, FromAttributes)]
Expand All @@ -35,7 +35,7 @@ pub mod field_attr {
}

pub mod related_attr {
use bae2::FromAttributes;
use bae::FromAttributes;

/// Operations for RelatedEntity enumeration
#[derive(Default, FromAttributes)]
Expand Down
2 changes: 1 addition & 1 deletion sea-orm-macros/src/derives/into_active_model.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use bae2::FromAttributes;
use bae::FromAttributes;
use proc_macro2::{Span, TokenStream};
use quote::{quote, quote_spanned};

Expand Down