Skip to content

Commit 095a501

Browse files
committed
Move to graphql_query_derive modules to graphql_client_codegen
1 parent 9a0bce4 commit 095a501

25 files changed

+4
-4
lines changed

graphql_query_derive/src/attributes.rs renamed to graphql_client_codegen/src/attributes.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use failure;
22
use syn;
33

4-
pub(crate) fn extract_attr(ast: &syn::DeriveInput, attr: &str) -> Result<String, failure::Error> {
4+
pub fn extract_attr(ast: &syn::DeriveInput, attr: &str) -> Result<String, failure::Error> {
55
let attributes = &ast.attrs;
66
let attribute = attributes
77
.iter()

graphql_query_derive/src/codegen.rs renamed to graphql_client_codegen/src/codegen.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use query::QueryContext;
88
use schema;
99
use selection::Selection;
1010

11-
pub(crate) fn response_for_query(
11+
pub fn response_for_query(
1212
schema: schema::Schema,
1313
query: query::Document,
1414
selected_operation: String,

graphql_query_derive/src/deprecation.rs renamed to graphql_client_codegen/src/deprecation.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ pub enum DeprecationStatus {
1111
}
1212

1313
#[derive(Debug, PartialEq)]
14-
pub(crate) enum DeprecationStrategy {
14+
pub enum DeprecationStrategy {
1515
Allow,
1616
Deny,
1717
Warn,
1818
}
1919

20-
pub(crate) fn extract_deprecation_strategy(
20+
pub fn extract_deprecation_strategy(
2121
ast: &syn::DeriveInput,
2222
) -> Result<DeprecationStrategy, failure::Error> {
2323
match attributes::extract_attr(&ast, "deprecated")?

0 commit comments

Comments
 (0)