juniper/integration_tests/codegen_fail/fail/union
Kai Ren ddc1488195
Codegen reimplementation for GraphQL unions (#666)
- reimplement #[derive(GraphQLUnion)] macro to support:
    - both structs and enums
    - generics in type definition
    - multiple #[graphql] attributes
    - external resolver functions
- remove From trait impls generation for enum variants

- reimplement #[graphql_union] macro to support:
    - traits
    - generics in trait definition
    - multiple attributes
    - external resolver functions
    - GraphQLType implemetation for a raw trait object
    - GraphQLTypeAsync implemetation (#549)

- add marker::GraphQLUnion trait

- rewrite "2.5 Unions" section in Book (Juniper user documentation)

- rewrite `codegen` and `codegen_fail` integration tests for GraphQL unions

Additionally:
- re-export `futures` crate in `juniper` for convenient reuse in the generated code without requiring library user to provide `futures` crate by himself (#663)
- use unit type () as default context for EmptyMutation and EmptySubscriptions
- relax Sized trait bound on some GraphQLType and GraphQLTypeAsync definitions, implementations and usages
2020-06-04 11:19:01 +03:00
..
attr_wrong_item.rs Codegen reimplementation for GraphQL unions (#666) 2020-06-04 11:19:01 +03:00
attr_wrong_item.stderr Codegen reimplementation for GraphQL unions (#666) 2020-06-04 11:19:01 +03:00
derive_wrong_item.rs Codegen reimplementation for GraphQL unions (#666) 2020-06-04 11:19:01 +03:00
derive_wrong_item.stderr Codegen reimplementation for GraphQL unions (#666) 2020-06-04 11:19:01 +03:00
enum_external_resolver_fn_conflicts_with_variant_external_resolver_fn.rs Codegen reimplementation for GraphQL unions (#666) 2020-06-04 11:19:01 +03:00
enum_external_resolver_fn_conflicts_with_variant_external_resolver_fn.stderr Codegen reimplementation for GraphQL unions (#666) 2020-06-04 11:19:01 +03:00
enum_name_double_underscored.rs Codegen reimplementation for GraphQL unions (#666) 2020-06-04 11:19:01 +03:00
enum_name_double_underscored.stderr Codegen reimplementation for GraphQL unions (#666) 2020-06-04 11:19:01 +03:00
enum_no_fields.rs Codegen reimplementation for GraphQL unions (#666) 2020-06-04 11:19:01 +03:00
enum_no_fields.stderr Codegen reimplementation for GraphQL unions (#666) 2020-06-04 11:19:01 +03:00
enum_non_object_variant.rs Codegen reimplementation for GraphQL unions (#666) 2020-06-04 11:19:01 +03:00
enum_non_object_variant.stderr Codegen reimplementation for GraphQL unions (#666) 2020-06-04 11:19:01 +03:00
enum_same_type_pretty.rs Codegen reimplementation for GraphQL unions (#666) 2020-06-04 11:19:01 +03:00
enum_same_type_pretty.stderr Codegen reimplementation for GraphQL unions (#666) 2020-06-04 11:19:01 +03:00
enum_same_type_ugly.rs Codegen reimplementation for GraphQL unions (#666) 2020-06-04 11:19:01 +03:00
enum_same_type_ugly.stderr Codegen reimplementation for GraphQL unions (#666) 2020-06-04 11:19:01 +03:00
enum_wrong_variant_field.rs Codegen reimplementation for GraphQL unions (#666) 2020-06-04 11:19:01 +03:00
enum_wrong_variant_field.stderr Codegen reimplementation for GraphQL unions (#666) 2020-06-04 11:19:01 +03:00
struct_name_double_underscored.rs Codegen reimplementation for GraphQL unions (#666) 2020-06-04 11:19:01 +03:00
struct_name_double_underscored.stderr Codegen reimplementation for GraphQL unions (#666) 2020-06-04 11:19:01 +03:00
struct_no_fields.rs Codegen reimplementation for GraphQL unions (#666) 2020-06-04 11:19:01 +03:00
struct_no_fields.stderr Codegen reimplementation for GraphQL unions (#666) 2020-06-04 11:19:01 +03:00
struct_non_object_variant.rs Codegen reimplementation for GraphQL unions (#666) 2020-06-04 11:19:01 +03:00
struct_non_object_variant.stderr Codegen reimplementation for GraphQL unions (#666) 2020-06-04 11:19:01 +03:00
struct_same_type_pretty.rs Codegen reimplementation for GraphQL unions (#666) 2020-06-04 11:19:01 +03:00
struct_same_type_pretty.stderr Codegen reimplementation for GraphQL unions (#666) 2020-06-04 11:19:01 +03:00
struct_same_type_ugly.rs Codegen reimplementation for GraphQL unions (#666) 2020-06-04 11:19:01 +03:00
struct_same_type_ugly.stderr Codegen reimplementation for GraphQL unions (#666) 2020-06-04 11:19:01 +03:00
trait_fail_infer_context.rs Codegen reimplementation for GraphQL unions (#666) 2020-06-04 11:19:01 +03:00
trait_fail_infer_context.stderr Codegen reimplementation for GraphQL unions (#666) 2020-06-04 11:19:01 +03:00
trait_method_conflicts_with_external_resolver_fn.rs Codegen reimplementation for GraphQL unions (#666) 2020-06-04 11:19:01 +03:00
trait_method_conflicts_with_external_resolver_fn.stderr Codegen reimplementation for GraphQL unions (#666) 2020-06-04 11:19:01 +03:00
trait_name_double_underscored.rs Codegen reimplementation for GraphQL unions (#666) 2020-06-04 11:19:01 +03:00
trait_name_double_underscored.stderr Codegen reimplementation for GraphQL unions (#666) 2020-06-04 11:19:01 +03:00
trait_no_fields.rs Codegen reimplementation for GraphQL unions (#666) 2020-06-04 11:19:01 +03:00
trait_no_fields.stderr Codegen reimplementation for GraphQL unions (#666) 2020-06-04 11:19:01 +03:00
trait_non_object_variant.rs Codegen reimplementation for GraphQL unions (#666) 2020-06-04 11:19:01 +03:00
trait_non_object_variant.stderr Codegen reimplementation for GraphQL unions (#666) 2020-06-04 11:19:01 +03:00
trait_same_type_pretty.rs Codegen reimplementation for GraphQL unions (#666) 2020-06-04 11:19:01 +03:00
trait_same_type_pretty.stderr Codegen reimplementation for GraphQL unions (#666) 2020-06-04 11:19:01 +03:00
trait_same_type_ugly.rs Codegen reimplementation for GraphQL unions (#666) 2020-06-04 11:19:01 +03:00
trait_same_type_ugly.stderr Codegen reimplementation for GraphQL unions (#666) 2020-06-04 11:19:01 +03:00
trait_with_attr_on_method.rs Codegen reimplementation for GraphQL unions (#666) 2020-06-04 11:19:01 +03:00
trait_with_attr_on_method.stderr Codegen reimplementation for GraphQL unions (#666) 2020-06-04 11:19:01 +03:00
trait_wrong_method_input_args.rs Codegen reimplementation for GraphQL unions (#666) 2020-06-04 11:19:01 +03:00
trait_wrong_method_input_args.stderr Codegen reimplementation for GraphQL unions (#666) 2020-06-04 11:19:01 +03:00
trait_wrong_method_return_type.rs Codegen reimplementation for GraphQL unions (#666) 2020-06-04 11:19:01 +03:00
trait_wrong_method_return_type.stderr Codegen reimplementation for GraphQL unions (#666) 2020-06-04 11:19:01 +03:00