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

Commit

Permalink
clippy + rebase origin/develop + it builds
Browse files Browse the repository at this point in the history
  • Loading branch information
Rashad Alston authored and Rashad Alston committed Sep 19, 2023
1 parent 202b633 commit 25c044f
Show file tree
Hide file tree
Showing 12 changed files with 34 additions and 260 deletions.
59 changes: 5 additions & 54 deletions Cargo.lock

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

9 changes: 5 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ members = [
"packages/fuel-indexer-database",
"packages/fuel-indexer-database/database-types",
"packages/fuel-indexer-database/postgres",
"packages/fuel-indexer-graphql",
"packages/fuel-indexer-graphql-dyn",
"packages/fuel-indexer-graphql",
"packages/fuel-indexer-lib",
"packages/fuel-indexer-macros",
"packages/fuel-indexer-macros/macro-utils",
Expand All @@ -33,20 +33,20 @@ members = [
]

default-members = [
"packages/fuel-indexer",
"packages/fuel-indexer-api-server",
"packages/fuel-indexer-database",
"packages/fuel-indexer-database/database-types",
"packages/fuel-indexer-database/postgres",
"packages/fuel-indexer-graphql",
"packages/fuel-indexer-graphql-dyn",
"packages/fuel-indexer-graphql",
"packages/fuel-indexer-lib",
"packages/fuel-indexer-macros",
"packages/fuel-indexer-metrics",
"packages/fuel-indexer-plugin",
"packages/fuel-indexer-schema",
"packages/fuel-indexer-types",
"packages/fuel-indexer-utils",
"packages/fuel-indexer",
"plugins/forc-index",
"plugins/forc-postgres",
]
Expand All @@ -67,9 +67,9 @@ version = "0.20.8"

[workspace.dependencies]
async-graphql = "6.0"
async-graphql-axum = "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.8", path = "./plugins/forc-index" }
Expand All @@ -79,6 +79,7 @@ fuel-indexer-api-server = { version = "0.20.8", path = "./packages/fuel-indexer-
fuel-indexer-database = { version = "0.20.8", path = "./packages/fuel-indexer-database" }
fuel-indexer-database-types = { version = "0.20.8", path = "./packages/fuel-indexer-database/database-types" }
fuel-indexer-graphql = { version = "0.20.8", path = "./packages/fuel-indexer-graphql" }
fuel-indexer-graphql-dyn = { version = "0.20.8", path = "./packages/fuel-indexer-graphql-dyn" }
fuel-indexer-lib = { version = "0.20.8", path = "./packages/fuel-indexer-lib" }
fuel-indexer-macro-utils = { version = "0.20.8", path = "./packages/fuel-indexer-macros/macro-utils" }
fuel-indexer-macros = { version = "0.20.8", path = "./packages/fuel-indexer-macros", default-features = false }
Expand Down
25 changes: 12 additions & 13 deletions packages/fuel-indexer-graphql-dyn/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,32 +9,31 @@ repository = { workspace = true }
rust-version = { workspace = true }
description = "Library for building executable dynamic GraphQL schemas"

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

[dependencies]
anyhow = { version = "1.0", default-features = false }
async-graphql = { workspace = true, features = ["dynamic-schema", "dataloader"] }
async-graphql-parser = { workspace = true }
async-graphql-value = { workspace = true }
async-trait = "0.1.73"
async-trait = "0.1"
convert_case = "0.6.0"
extension-trait = "1.0.2"
graphql-parser = { version = "0.4.0", optional = true }
indexmap = "2.0.0"
lazy_static = "1.4"
serde = { workspace = true }
serde_json = { workspace = true, optional = true }
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
tokio = { workspace = true, features = ["sync"] }

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

[features]
default = ["json", "testing"]
json = ["dep:serde_json"]
testing = ["dep:graphql-parser"]
2 changes: 1 addition & 1 deletion packages/fuel-indexer-graphql-dyn/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ pub mod spec;
pub mod store;
pub mod testing;

pub(self) mod self_prelude {
pub mod self_prelude {
pub use anyhow::anyhow;
pub use async_trait::async_trait;
pub use extension_trait::extension_trait;
Expand Down
2 changes: 1 addition & 1 deletion packages/fuel-indexer-graphql-dyn/src/schema/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ pub mod schema_builder;
pub mod schema_type;
pub mod schema_type_builder;

pub(self) mod self_prelude {
pub mod self_prelude {
pub use super::super::self_prelude::*;
pub use crate::spec::*;
pub use crate::store;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ impl Default for DynSchemaBuilder {
impl DynSchemaBuilder {
pub fn new(schema_type: &DynSchemaType, store: Arc<Mutex<dyn store::Store>>) -> Self {
let loader = DynLoader::new(store);
let resolver = DynResolver::new(&schema_type, Arc::new(Mutex::new(loader)));
let resolver = DynResolver::new(schema_type, Arc::new(Mutex::new(loader)));
let DynSchemaBuilder {
mut schema,
mut query,
Expand Down
2 changes: 1 addition & 1 deletion packages/fuel-indexer-graphql-dyn/src/spec/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ pub mod node;
pub mod paging;
pub mod query;

pub(self) mod self_prelude {
pub mod self_prelude {
pub use super::super::self_prelude::*;
pub use async_graphql::dynamic::*;
pub use std::{hash::Hash, str::FromStr};
Expand Down
2 changes: 1 addition & 1 deletion packages/fuel-indexer-graphql-dyn/src/store/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ pub mod store;
pub mod store_type;
pub mod store_type_builder;

pub(self) mod self_prelude {
pub mod self_prelude {
pub use super::super::self_prelude::*;
pub use indexmap::IndexMap;
pub use serde::{Deserialize, Serialize};
Expand Down
2 changes: 1 addition & 1 deletion packages/fuel-indexer-graphql-dyn/src/testing/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ pub mod schema_type;
pub mod store;
pub mod store_type;

pub(self) mod self_prelude {
pub mod self_prelude {
pub use super::super::self_prelude::*;
pub use indexmap::IndexMap;
pub use lazy_static::lazy_static;
Expand Down
Loading

0 comments on commit 25c044f

Please sign in to comment.