Skip to content

chore(deps): update rust crate apollo-smith to 0.16.0 - #9845

Open
renovate[bot] wants to merge 1 commit into
devfrom
renovate/rust-apollo-rs-updates
Open

chore(deps): update rust crate apollo-smith to 0.16.0#9845
renovate[bot] wants to merge 1 commit into
devfrom
renovate/rust-apollo-rs-updates

Conversation

@renovate

@renovate renovate Bot commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Type Update Change
apollo-smith workspace.dependencies minor 0.15.20.16.0

Release Notes

apollographql/apollo-rs (apollo-smith)

v0.16.0

Compare Source

0.16.0 - 2026-07-21

BREAKING

  • Make response generation configurable - SharkBaitDLS, tninesling, pull/1033

    ResponseBuilder now supports with_min_list_size, with_max_list_size, and
    with_null_ratio to control the shape of generated responses, plus with_generator
    to register a custom Generator for any scalar, object, interface, or union
    type by name. It can also be driven by either arbitrary::Unstructured or a
    standard rand::Rng (via the new RandProvider wrapper), so the same builder
    works for both fuzz testing and general-purpose mock data. The primary breaking
    change is that ResponseBuilder is now generic over its randomness source,
    and its error type changed to ResponseError.

  • Improve byte efficiency for type and field name generation - tninesling, pull/1040

    This change makes document generation more efficient by using Unstructured::choose
    when building type names from characters, instead of generating a random
    usize and indexing into the character set. This mitigates cases where the
    generator would consume all bytes in the sequence before finishing the
    document, resulting in only one instance of each type. There is no breaking
    change to the API, but it does change the name selections chosen for types and
    therefore changes the generated documents.

  • Pass the correct directive location to input_values_def - tninesling, pull/1053

    This change adds a new directive location parameter to DocumentBuilder::input_values_def.
    This specifying whether it is generating an input value definition for an
    argument or an input object field. This is necessary to ensure that the
    correct directives are applied to the generated input value definition.

  • Make upper bounds for type counts configurable - tninesling, pull/1054

    Previously, the document generator would create up to 50 instances of each type kind. Now,
    you can specify the upper bound for how many of each type are generated.

    let builder = DocumentBuilder::new().max_scalar_types(75);

    The breaking change is that the constructor now infallibly returns a builder
    instead of a partial document, which allows chaining these type count bounds
    before document generation. In order to provide a more standardized API, the
    previous API's .finish() method is replaced with the more usual .build().

    Before

    let mut u = Unstructured::new(fuzzer_input);
    let gql_doc = DocumentBuilder::new(&mut u)?;
    let doc = gql_doc.finish();

    After

    let mut u = Unstructured::new(fuzzer_input);
    let builder = DocumentBuilder::new(&mut u);
    let doc = builder.build()?;
  • Prevent extensions from duplicating existing values - tninesling, pull/1057

    Adds a new exclude parameter to DocumentBuilder::enum_values_definition and
    DocumentBuilder::input_values_def, plus the argument of the same name in
    DocumentBuilder::fields_definition is now an IndexSet instead of &[&Name]
    to match the other two.

    When generating the initial definition for any of these, an empty IndexSet
    should be passed. They are used internally when generating extensions to
    to existing types, ensuring that an extension does not duplicate some
    already-chosen field or value from the base definition.

  • Prevent non-null self-references in input objects - tninesling, pull/1062

    The DocumentBuilder::input_values_def function now takes a self_name: Option<&Name>
    parameter so inner value definitions do not choose a non-null value of the type
    being generated, which would otherwise cause an impossible cycle.

Fixes

Maintenance


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate
renovate Bot enabled auto-merge (squash) July 21, 2026 20:16
@apollo-librarian

apollo-librarian Bot commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

✅ Docs preview has no changes

The preview was not built because there were no changes.

Build ID: b117e70a579500673eecab24
Build Logs: View logs


✅ AI Style Review — No Changes Detected

No MDX files were changed in this pull request.

Review Log: View detailed log

This review is AI-generated. Please use common sense when accepting these suggestions, as they may not always be accurate or appropriate for your specific context.

@github-actions

Copy link
Copy Markdown
Contributor

@renovate[bot], please consider creating a changeset entry in /.changesets/. These instructions describe the process and tooling.

@renovate
renovate Bot force-pushed the renovate/rust-apollo-rs-updates branch 23 times, most recently from d3463b6 to 9cf8478 Compare July 29, 2026 12:53
@renovate
renovate Bot force-pushed the renovate/rust-apollo-rs-updates branch 3 times, most recently from 03d7db6 to f4a3310 Compare July 29, 2026 21:43
@renovate
renovate Bot force-pushed the renovate/rust-apollo-rs-updates branch 19 times, most recently from 321ce4c to 0ba058b Compare August 11, 2026 13:38
@renovate
renovate Bot force-pushed the renovate/rust-apollo-rs-updates branch 10 times, most recently from 4e9ec1d to 9901ed1 Compare August 13, 2026 17:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants