Skip to content

Commit

Permalink
Implement proc-macro to read migration files
Browse files Browse the repository at this point in the history
  • Loading branch information
TimDiekmann committed Nov 20, 2024
1 parent c1c576f commit 2a7c347
Show file tree
Hide file tree
Showing 17 changed files with 1,093 additions and 197 deletions.
37 changes: 34 additions & 3 deletions Cargo.lock

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

6 changes: 6 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ members = [
"libs/@local/graph/api",
"libs/@local/graph/authorization",
"libs/@local/graph/migrations",
"libs/@local/graph/migrations-macros",
"libs/@local/graph/postgres-store",
"libs/@local/graph/store",
"libs/@local/graph/temporal-versioning",
Expand Down Expand Up @@ -69,6 +70,7 @@ hash-codec.path = "libs/@local/codec"
hash-graph-api.path = "libs/@local/graph/api"
hash-graph-authorization.path = "libs/@local/graph/authorization"
hash-graph-migrations.path = "libs/@local/graph/migrations"
hash-graph-migrations-macros.path = "libs/@local/graph/migrations-macros"
hash-graph-postgres-store.path = "libs/@local/graph/postgres-store"
hash-graph-store.path = "libs/@local/graph/store"
hash-graph-temporal-versioning.path = "libs/@local/graph/temporal-versioning"
Expand Down Expand Up @@ -160,6 +162,7 @@ bitvec = { version = "=1.0.1", default-features = false }
bytes-utils = { version = "=0.1.4", default-features = false }
clap = { version = "=4.5.21", features = ["color", "error-context", "help", "std", "suggestions", "usage"] }
clap_complete = { version = "=4.5.38", default-features = false }
convert_case = { version = "=0.6.0", default-features = false }
coverage-helper = { version = "=0.2.2", default-features = false }
criterion-macro = { version = "=0.4.0", default-features = false }
derive-where = { version = "=1.2.7", default-features = false, features = ["nightly"] }
Expand Down Expand Up @@ -195,7 +198,9 @@ pin-project = { version = "=1.1.7", default-features = false }
pin-project-lite = { version = "=0.2.15", default-features = false }
postgres-protocol = { version = "=0.6.7", default-features = false }
pretty_assertions = { version = "=1.4.1", default-features = false, features = ["alloc"] }
proc-macro2 = { version = "=1.0.89", default-features = false }
proptest = { version = "=1.5.0", default-features = false, features = ["alloc"] }
quote = { version = "=1.0.37", default-features = false }
rand = { version = "=0.8.5", default-features = false }
refinery = { version = "=0.8.14", default-features = false }
rustc_version = { version = "=0.4.1", default-features = false }
Expand All @@ -208,6 +213,7 @@ sha2 = { version = "=0.10.8", default-features = false }
similar-asserts = { version = "=1.6.0", default-features = false }
supports-color = { version = "=3.0.1", default-features = false }
supports-unicode = { version = "=3.0.0", default-features = false }
syn = { version = "=2.0.87", default-features = false }
tachyonix = { version = "=0.3.1", default-features = false }
tarpc = { version = "=0.35.0", default-features = false }
temporal-io-client = { package = "temporal-client", git = "https://github.com/temporalio/sdk-core", rev = "7e3c23f" }
Expand Down
28 changes: 28 additions & 0 deletions libs/@local/graph/migrations-macros/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
cargo-features = ["edition2024"]

[package]
name = "hash-graph-migrations-macros"
version.workspace = true
edition.workspace = true
license.workspace = true
publish.workspace = true
authors.workspace = true

[lib]
proc-macro = true

[dependencies]
# Workspace dependencies

# Third-party dependencies
convert_case = { workspace = true }
derive_more = { workspace = true, features = ["display", "error", "from"] }
proc-macro2 = { workspace = true }
quote = { workspace = true }
regex = { workspace = true }
sha2 = { workspace = true }
syn = { workspace = true }
walkdir = { workspace = true }

[lints]
workspace = true
Loading

0 comments on commit 2a7c347

Please sign in to comment.