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

Update 2 syn #1557

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
347e76c
Update to syn 2, applying renames
workingjubilee Feb 13, 2024
1f0365c
MetaNameValues accept more than literals
workingjubilee Feb 13, 2024
b87a9e0
Type ascription && Expr::Type no longer exists
workingjubilee Feb 13, 2024
32c03e1
Attribute::path is an impl fn
workingjubilee Feb 13, 2024
8748dbb
Attribute hid its tokens field
workingjubilee Feb 13, 2024
8fc3da8
GenericArgument::Binding is now ::AssocType
workingjubilee Feb 13, 2024
e906f07
Drop some unused code imports
workingjubilee Feb 13, 2024
607f27d
::parse_terminated requires a separator arg
workingjubilee Feb 13, 2024
2961721
Attempt to lift proc-macro2, quote, syn to workspace
workingjubilee Feb 13, 2024
cd9c59d
Add superstitious amounts of tracing to find syn err
workingjubilee Feb 13, 2024
8c942a2
syn::Attribute yields paren-free args
workingjubilee Feb 13, 2024
cfd6002
Fix pg_aggregate + pgrx(..)
workingjubilee Feb 13, 2024
0971844
Add some debugging info
workingjubilee Feb 13, 2024
8325337
Small fixup in example
workingjubilee Feb 13, 2024
274c996
Reuse the same attr parsing scheme
workingjubilee Feb 13, 2024
d85235d
Drop the unused syn fold feature
workingjubilee Feb 13, 2024
98f19db
Drop object default features to drop last syn 1
workingjubilee Feb 13, 2024
68c372f
Use `syn::Error::into_compile_error` consistently
workingjubilee Feb 13, 2024
19939b7
Factor out error-handling
workingjubilee Feb 13, 2024
0bb9159
rustfmt again
workingjubilee Feb 13, 2024
325b6c2
Document `pgrx_sql_entity_graph::fmt::lazy_err`
workingjubilee Feb 13, 2024
f6495db
Delete random newline
workingjubilee Feb 13, 2024
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
81 changes: 15 additions & 66 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,10 @@ cargo_toml = "0.16" # used for building projects
eyre = "0.6.9" # simplifies error-handling
libc = "0.2" # FFI compat
owo-colors = "3.5" # for output highlighting
proc-macro2 = { version = "1.0.78", features = [ "span-locations" ] }
quote = "1.0.33"
regex = "1.1" # used for build/test
syn = { version = "2", features = [ "extra-traits", "full", "parsing" ] }
thiserror = "1"
unescape = "0.1.0" # for escaped-character-handling
url = "2.4.1" # the non-existent std::web
Expand Down
6 changes: 3 additions & 3 deletions cargo-pgrx/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ tempfile = "3.8.0"
toml = "0.8.2" # our config files

# SQL schema generation
object = "0.32.1"
proc-macro2 = { version = "1.0.69", features = [ "span-locations" ] }
quote = "1.0.33"
object = { version = "0.32.1", default-features = false, features = [ "std" ] }
proc-macro2.workspace = true
quote.workspace = true

# emit better diagnostics
color-eyre = "0.6.2"
Expand Down
6 changes: 3 additions & 3 deletions pgrx-macros/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ no-schema-generation = ["pgrx-sql-entity-graph/no-schema-generation"]
[dependencies]
pgrx-sql-entity-graph.workspace = true

proc-macro2 = "1.0.69"
quote = "1.0.33"
syn = { version = "1.0.109", features = [ "extra-traits", "full", "fold", "parsing" ] }
proc-macro2.workspace = true
quote.workspace = true
syn.workspace = true


[dev-dependencies]
Expand Down
Loading
Loading