Skip to content
This repository has been archived by the owner on Oct 25, 2024. It is now read-only.

Commit

Permalink
Add library with storage integration to replace graphql-lib (#1309)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlicanC authored Sep 1, 2023
1 parent db31fdf commit d749813
Show file tree
Hide file tree
Showing 67 changed files with 33,732 additions and 1,501 deletions.
117 changes: 103 additions & 14 deletions Cargo.lock

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

12 changes: 7 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ members = [
"packages/fuel-indexer-database/database-types",
"packages/fuel-indexer-database/postgres",
"packages/fuel-indexer-graphql",
"packages/fuel-indexer-graphql-lib",
"packages/fuel-indexer-graphql-dyn",
"packages/fuel-indexer-lib",
"packages/fuel-indexer-macros",
"packages/fuel-indexer-macros/macro-utils",
Expand All @@ -39,7 +39,7 @@ default-members = [
"packages/fuel-indexer-database/database-types",
"packages/fuel-indexer-database/postgres",
"packages/fuel-indexer-graphql",
"packages/fuel-indexer-graphql-lib",
"packages/fuel-indexer-graphql-dyn",
"packages/fuel-indexer-lib",
"packages/fuel-indexer-macros",
"packages/fuel-indexer-metrics",
Expand All @@ -66,8 +66,10 @@ rust-version = "1.72.0"
version = "0.20.5"

[workspace.dependencies]
async-graphql-parser = "5.0"
async-graphql-value = "5.0"
async-graphql = "6.0"
async-graphql-parser = "6.0"
async-graphql-value = "6.0"
async-graphql-axum = "6.0"
bincode = "1.3"
clap = "3.1"
forc-index = { version = "0.20.5", path = "./plugins/forc-index" }
Expand All @@ -77,7 +79,7 @@ fuel-indexer-api-server = { version = "0.20.5", path = "./packages/fuel-indexer-
fuel-indexer-database = { version = "0.20.5", path = "./packages/fuel-indexer-database" }
fuel-indexer-database-types = { version = "0.20.5", path = "./packages/fuel-indexer-database/database-types" }
fuel-indexer-graphql = { version = "0.20.5", path = "./packages/fuel-indexer-graphql" }
fuel-indexer-graphql-lib = { version = "0.20.5", path = "./packages/fuel-indexer-graphql-lib" }
fuel-indexer-graphql-dyn = { version = "0.20.5", path = "./packages/fuel-indexer-graphql-dyn" }
fuel-indexer-lib = { version = "0.20.5", path = "./packages/fuel-indexer-lib" }
fuel-indexer-macro-utils = { version = "0.20.5", path = "./packages/fuel-indexer-macros/macro-utils" }
fuel-indexer-macros = { version = "0.20.5", path = "./packages/fuel-indexer-macros", default-features = false }
Expand Down
4 changes: 2 additions & 2 deletions packages/fuel-indexer-api-server/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ path = "src/bin/main.rs"

[dependencies]
anyhow = "1.0"
async-graphql = "5.0.7"
async-graphql-axum = "5.0.7"
async-graphql = { workspace = true }
async-graphql-axum = { workspace = true }
async-std = "1"
axum = { version = "0.6", features = ["multipart", "macros"] }
clap = { features = ["cargo", "derive", "env"], workspace = true }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,33 +1,40 @@
[package]
name = "fuel-indexer-graphql-lib"
name = "fuel-indexer-graphql-dyn"
version = { workspace = true }
authors = { workspace = true }
edition = { workspace = true }
homepage = { workspace = true }
license = { workspace = true }
repository = { workspace = true }
rust-version = { workspace = true }
description = "Fuel Indexer GraphQL Library"
description = "Library for building executable dynamic GraphQL schemas"

[features]
default = ["json"]
default = ["json", "testing"]
json = ["dep:serde_json"]
testing = ["dep:graphql-parser"]

[dependencies]
async-graphql = { version = "5.0", features = ["dynamic-schema", "dataloader"] }
async-graphql-value = "6.0.3"
async-graphql = { workspace = true, features = ["dynamic-schema", "dataloader"] }
async-graphql-value = { workspace = true }
async-trait = "0.1.73"
extension-trait = "1.0.2"
graphql-parser = { version = "0.4.0", optional = true }
indexmap = "2.0.0"
serde_json = { workspace = true, optional = true }
strum = { version = "0.25.0", features = ["derive"] }
tokio = { workspace = true, features = ["sync"] }
thiserror = { workspace = true }
anyhow = "1.0"
lazy_static = "1.4.0"
convert_case = "0.6.0"
async-graphql-parser = "6.0.4"
serde.workspace = true

[dev-dependencies]
assert_matches = "1.5.0"
async-graphql-parser = "5.0"
async-graphql-parser = { workspace = true }
graphql-parser = "0.4.0"
insta = { version = "1.31.0", features = ["json"] }
insta = { version = "1.31.0", features = ["json", "ron"] }
serde_json = { workspace = true }
tokio = { workspace = true, features = ["sync", "rt", "macros"] }
velcro = "0.5.4"
Loading

0 comments on commit d749813

Please sign in to comment.