Skip to content

Commit 41e40a8

Browse files
committed
Cargo fix for wundergraph_derive part 1
1 parent 94190cc commit 41e40a8

File tree

7 files changed

+21
-20
lines changed

7 files changed

+21
-20
lines changed

wundergraph_derive/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ readme = "../README.md"
88
keywords = ["GraphQL", "ORM", "PostgreSQL", "SQLite"]
99
categories = ["database", "web-programming"]
1010
description = "Internal proc macro implementation for wundergraph"
11+
edition = "2018"
1112

1213
[dependencies]
1314
syn = { version = "0.15", features = ["full", "fold", "printing", "extra-traits"] }

wundergraph_derive/src/field.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ use quote;
33
use syn;
44
use syn::spanned::Spanned;
55

6-
use diagnostic_shim::{Diagnostic, DiagnosticShim};
7-
use meta::*;
8-
use utils::*;
6+
use crate::diagnostic_shim::{Diagnostic, DiagnosticShim};
7+
use crate::meta::*;
8+
use crate::utils::*;
99

1010
#[derive(Debug)]
1111
pub struct Field {

wundergraph_derive/src/meta.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ use syn;
33
use syn::fold::Fold;
44
use syn::spanned::Spanned;
55

6-
use diagnostic_shim::*;
7-
use resolved_at_shim::*;
8-
use utils::*;
6+
use crate::diagnostic_shim::*;
7+
use crate::resolved_at_shim::*;
8+
use crate::utils::*;
99

1010
#[derive(Debug)]
1111
pub struct MetaItem {

wundergraph_derive/src/model.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
use proc_macro2::Span;
22
use syn;
33

4-
use diagnostic_shim::*;
5-
use field::*;
6-
use meta::*;
4+
use crate::diagnostic_shim::*;
5+
use crate::field::*;
6+
use crate::meta::*;
77

88
pub struct Model {
99
pub name: syn::Ident,

wundergraph_derive/src/wundergraph_entity.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
use diagnostic_shim::{Diagnostic, DiagnosticShim};
2-
use model::Model;
1+
use crate::diagnostic_shim::{Diagnostic, DiagnosticShim};
2+
use crate::model::Model;
33
use proc_macro2::{Span, TokenStream};
44
use syn;
5-
use utils::{inner_of_option_ty, inner_ty_args, is_has_many, wrap_in_dummy_mod};
5+
use crate::utils::{inner_of_option_ty, inner_ty_args, is_has_many, wrap_in_dummy_mod};
66

77
pub fn derive(item: &syn::DeriveInput) -> Result<TokenStream, Diagnostic> {
88
let model = Model::from_item(item)?;

wundergraph_derive/src/wundergraph_filter.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
use diagnostic_shim::{Diagnostic, };
2-
use field::Field;
3-
use model::Model;
1+
use crate::diagnostic_shim::{Diagnostic, };
2+
use crate::field::Field;
3+
use crate::model::Model;
44
use proc_macro2::{TokenStream};
55
use syn;
6-
use utils::{inner_of_box_ty, inner_of_option_ty, is_box_ty, wrap_in_dummy_mod};
6+
use crate::utils::{inner_of_box_ty, inner_of_option_ty, is_box_ty, wrap_in_dummy_mod};
77

88
pub fn derive(item: &syn::DeriveInput) -> Result<TokenStream, Diagnostic> {
99
let inner_filter = inner_filter(item)?;
1010
let build_filter = build_filter(item)?;
11-
let nameable = ::wundergraph_value::nameable(item);
11+
let nameable = crate::wundergraph_value::nameable(item);
1212

1313
Ok(wrap_in_dummy_mod(
1414
"WundergraphFilter",

wundergraph_derive/src/wundergraph_value.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
use diagnostic_shim::*;
2-
use meta::MetaItem;
1+
use crate::diagnostic_shim::*;
2+
use crate::meta::MetaItem;
33
use proc_macro2::{Span, TokenStream};
44
use syn;
55
use syn::spanned::Spanned;
6-
use utils::wrap_in_dummy_mod;
6+
use crate::utils::wrap_in_dummy_mod;
77

88
pub fn derive(item: &syn::DeriveInput) -> Result<TokenStream, Diagnostic> {
99
let filter_value = filter_value(item);

0 commit comments

Comments
 (0)