Skip to content

Releases: obmarg/cynic

v3.13.0

27 Feb 20:40

Choose a tag to compare

Note that this is the last release that will be pushed to github - development of cynic
will continue over on codeberg.org/obmarg/cynic.

New Features

  • Feature flags are now supported on on arguments (#1181)
  • An InputObject on a oneOf type will automatically skip serializing all of
    it's null fields (#1179)
  • InputObject can now be derived on enums for oneOf inputs (#1174)
  • Operation is now Clone (#1170)
  • The reqwest integation now accepts &Operation as well as Operation (#1169)
  • The QueryFragment derive now supports the rename_all attribute (#1167)
  • add @oneOf support to introspection (#1177)
  • oneOf input objects are now supported in the in the generator (#1175)
  • cynic-introspection now supports additions from the 2025 spec (#1180)
  • cynic-querygen now has a field_overrides option that can be used to
    customize the type of individual scalar fields in generated QueryFragments (#1184)

Bug Fixes

  • cynic_querygen has a new interface based around the Generator type
    (#1187)
  • Fixed an issue with lifetime detection on nested input objects in the
    generator

Deprecations

  • The old intrerface to cynic_querygen has been marked deprecated

Changes

  • Updated reqwest to 0.13 (#1190)
  • MSRV is now 1.85 (#1172)
  • Updated rkyv to 0.8.0 (#1110)

cynic-parser-v0.11.0

27 Feb 20:39

Choose a tag to compare

New Features

  • Added support for most of the GraphQL 2025 spec:
    • Added support for parsing schema coordinates (#1185)
    • Descriptions in executable documents (#1182)
    • Added InputObjectDefinition::is_one_of (#1176)

Changes

  • Fix some lints in lalrpop output (#1173)
  • Bump MSRV to 1.85 (#1172)

v3.12.0

19 Aug 19:37
a7cce2b

Choose a tag to compare

New Features

  • The graphql_type attribute on fields of variable structs can now specify
    generic types instead of just single named types.

Bug Fixes

  • Fix using &str on input fields of type String (#1160)
  • Hide the assert_type_eq_all and assert_impl macros from the docs - these
    were never public API and should always have been hidden (#1159)

cynic-parser-v0.10.0

19 Aug 19:36
a7cce2b

Choose a tag to compare

New Features

  • Added a rev function on TypeWrappersIter (#1161)

v3.11.0

13 May 21:42
aa49009

Choose a tag to compare

New Features

  • Optional fields on a QueryFragment can now be marked with
    #[cynic(default)]. If this directive is present the field does not have to
    be wrapped in Option and the Default impl of the type will be used if the
    field is null (#1144)
  • The generator now supports directives (#1139)
  • Users can opt out of Deserialize for QueryFragment (#1147)
  • cynic-introspection now includes directives in its SDL (#1140)

Bug Fixes

  • Fields can now have use types with generic parametesr (e.g. DateTime<Utc>
    is now allowed) (#1131)
  • The generator now correctly applies lifetimes to recursive input fields when
    they are needed (#1151)

cynic-parser-v0.9.1

20 Feb 17:54
25dd646

Choose a tag to compare

Bug Fixes

  • TryFrom<Value<'_>> for ConstValue<'_> now returns an error when an object
    or list contains a Value, rather than panicing (#1133)

v3.10.0

10 Feb 13:54
a474795

Choose a tag to compare

New Features

  • Added initial suppport for directives: @skip, @include are supported, and
    other field level directives can be used provided they don't require
    specific client support (#900)

Bug Fixes

  • Parsing will no longer fail if keywords like mutation are used as enum
    values. (#1128)

Changes

  • Querygen now parses schemas and queries with cynic_parser
    (#1124, #1125)

Changes

  • Bumped the MSRV to 1.80

cynic-parser-v0.9.0

10 Feb 13:53
a474795

Choose a tag to compare

Breaking Changes

  • Added new variants to cynic_parser::Error to handle empty documents, these
    errors were previous ambiguous parser errors (#1117)
  • Error::span now returns an Option<Span> instead of a Span

Bug Fixes

  • Parsing will no longer fail if keywords like mutation are used as enum
    values. (#1128)

Changes

  • Parse schema with cynic_parser in querygen (#1124)
  • Bumped the MSRV to 1.80

v3.9.1

03 Dec 14:28
2e2df18

Choose a tag to compare

Bug Fixes

  • Fields named str are now supported (#1108)

Changes

  • Fixed all rust 1.83 clippy lints (#1106)

Contributors

Thanks to the people who contributed to this release:

cynic-parser-v0.8.7

03 Dec 14:27
2e2df18

Choose a tag to compare

Changes

  • Fixed all rust 1.83 clippy lints (#1106)

Contributors

Thanks to the people who contributed to this release: