graphql-engine/v3/crates/lang-graphql/Cargo.toml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

58 lines
1.1 KiB
TOML
Raw Normal View History

[package]
name = "lang-graphql"
version.workspace = true
edition.workspace = true
license.workspace = true
[lib]
bench = false
[[bench]]
name = "lexer"
harness = false
[[bench]]
name = "parser"
harness = false
[[bench]]
name = "validation"
harness = false
[[bench]]
name = "schema_serde"
harness = false
[dependencies]
recursion_limit_macro = { path = "../utils/recursion_limit_macro" }
axum = "0.6.20"
Upgrade ndc-spec and opentelemetry, and add a traceresponse header. (#416) <!-- Thank you for submitting this PR! :) --> ## Description I have upgraded ndc-spec to v0.1.1. This pulls in an upgrade to opentelemetry v0.22 so I've done that too. We had issues with the `traceresponse` response header disappearing when using an opentelemetry version > v0.20. This seems to be resolved here, probably because we have pinned a single version of opentelemetry rather than loading multiple at once. I added the `traceresponse` header to verify this, and have left it in because it doesn't seem to hurt anything. I verified that everything works as expected with the OSS components, but not multitenant. ## Changelog - Add a changelog entry (in the "Changelog entry" section below) if the changes in this PR have any user-facing impact. See [changelog guide](https://github.com/hasura/graphql-engine-mono/wiki/Changelog-Guide). - If no changelog is required ignore/remove this section and add a `no-changelog-required` label to the PR. ### Product _(Select all products this will be available in)_ - [x] community-edition - [x] cloud <!-- product : end : DO NOT REMOVE --> ### Type <!-- See changelog structure: https://github.com/hasura/graphql-engine-mono/wiki/Changelog-Guide#structure-of-our-changelog --> _(Select only one. In case of multiple, choose the most appropriate)_ - [ ] highlight - [x] enhancement - [ ] bugfix - [ ] behaviour-change - [ ] performance-enhancement - [ ] security-fix <!-- type : end : DO NOT REMOVE --> ### Changelog entry <!-- - Add a user understandable changelog entry - Include all details needed to understand the change. Try including links to docs or issues if relevant - For Highlights start with a H4 heading (#### <entry title>) - Get the changelog entry reviewed by your team --> v3 engine GraphQL queries now include a "traceresponse" header. <!-- changelog-entry : end : DO NOT REMOVE --> <!-- changelog : end : DO NOT REMOVE --> V3_GIT_ORIGIN_REV_ID: f37b6bdb1331b55c49f0bd953f522f5eca298d1d
2024-03-28 19:20:27 +03:00
http = "0.2"
indexmap = { version = "2", features = ["serde"] }
lexical-core = "0.8"
Bump nonempty from 0.8.1 to 0.10.0 (#463) Bumps [nonempty](https://github.com/cloudhead/nonempty) from 0.8.1 to 0.10.0. <details> <summary>Commits</summary> <ul> <li>See full diff in <a href="https://github.com/cloudhead/nonempty/commits">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=nonempty&package-manager=cargo&previous-version=0.8.1&new-version=0.10.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> V3_GIT_ORIGIN_REV_ID: 11c6454b5e7e9877b52075f0e0efe6839ecf3be1
2024-04-15 11:40:59 +03:00
nonempty = { version = "0.10", features = ["serialize"] }
Bump schemars from 0.8.19 to 0.8.20 (#592) Bumps [schemars](https://github.com/GREsau/schemars) from 0.8.19 to 0.8.20. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/GREsau/schemars/releases">schemars's releases</a>.</em></p> <blockquote> <h2>v0.8.20</h2> <h3>Fixed:</h3> <ul> <li>Revert unintentional change in behaviour when combining <code>default</code> and <code>required</code> attributes (<a href="https://redirect.github.com/GREsau/schemars/issues/292">GREsau/schemars#292</a>)</li> </ul> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/GREsau/schemars/blob/master/CHANGELOG.md">schemars's changelog</a>.</em></p> <blockquote> <h2>[0.8.20] - 2024-05-18</h2> <h3>Fixed:</h3> <ul> <li>Revert unintentional change in behaviour when combining <code>default</code> and <code>required</code> attributes (<a href="https://redirect.github.com/GREsau/schemars/issues/292">GREsau/schemars#292</a>)</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/GREsau/schemars/commit/7ecaa7feabc2d7061bd61af78de3b64fdea00280"><code>7ecaa7f</code></a> Revert unintentional change in behaviour when combining <code>default</code> and `requir...</li> <li><a href="https://github.com/GREsau/schemars/commit/cf5be1b266add95212bdcec8fecd8c330a119558"><code>cf5be1b</code></a> Ignore failing test</li> <li><a href="https://github.com/GREsau/schemars/commit/449bb1a0ca64ddb549c95d8ebb5d210bebd187e8"><code>449bb1a</code></a> Add more tests for different schema settings</li> <li>See full diff in <a href="https://github.com/GREsau/schemars/compare/v0.8.19...v0.8.20">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=schemars&package-manager=cargo&previous-version=0.8.19&new-version=0.8.20)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> V3_GIT_ORIGIN_REV_ID: 0a55128d53088b9b0c8c8f2dc5fb03de8af09413
2024-05-20 11:45:01 +03:00
schemars = { version = "0.8.20", features = ["smol_str"] }
serde = "1.0.203"
serde_json = "1.0.116"
serde_with = "3.8.1"
smol_str = "0.1.23"
thiserror = "1.0"
Expose separate function to introspect for a single role (#677) <!-- Thank you for submitting this PR! :) --> ## Description This PR is a refactoring which is a functional no-op. <!-- Questions to consider answering: 1. What user-facing changes are being made? 2. What are issues related to this PR? (Consider adding `(close #<issue-no>)` to the PR title) 3. What is the conceptual design behind this PR? 4. How can this PR be tested/verified? 5. Does the PR have limitations? 6. Does the PR introduce breaking changes? --> ## Changelog - Add a changelog entry (in the "Changelog entry" section below) if the changes in this PR have any user-facing impact. See [changelog guide](https://github.com/hasura/graphql-engine-mono/wiki/Changelog-Guide). - If no changelog is required ignore/remove this section and add a `no-changelog-required` label to the PR. ### Product _(Select all products this will be available in)_ - [ ] community-edition - [ ] cloud <!-- product : end : DO NOT REMOVE --> ### Type <!-- See changelog structure: https://github.com/hasura/graphql-engine-mono/wiki/Changelog-Guide#structure-of-our-changelog --> _(Select only one. In case of multiple, choose the most appropriate)_ - [ ] highlight - [ ] enhancement - [ ] bugfix - [ ] behaviour-change - [ ] performance-enhancement - [ ] security-fix <!-- type : end : DO NOT REMOVE --> ### Changelog entry <!-- - Add a user understandable changelog entry - Include all details needed to understand the change. Try including links to docs or issues if relevant - For Highlights start with a H4 heading (#### <entry title>) - Get the changelog entry reviewed by your team --> _Replace with changelog entry_ <!-- changelog-entry : end : DO NOT REMOVE --> <!-- changelog : end : DO NOT REMOVE --> V3_GIT_ORIGIN_REV_ID: 625475ef23ef7fd2f72921e951fa1a957807516a
2024-06-06 15:10:52 +03:00
lazy_static = "1.4.0"
[dev-dependencies]
apollo-parser = "0.7"
Bump async-graphql-parser from 5.0.10 to 7.0.3 (#462) Bumps [async-graphql-parser](https://github.com/async-graphql/async-graphql) from 5.0.10 to 7.0.3. <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/async-graphql/async-graphql/blob/master/CHANGELOG.md">async-graphql-parser's changelog</a>.</em></p> <blockquote> <h1>[7.0.3] 2024-03-16</h1> <ul> <li>Sort schema fields &amp; enums if required <a href="https://redirect.github.com/async-graphql/async-graphql/pull/1475">#1475</a></li> <li>Change the <code>type_name</code> of <code>EmptySubscription</code> fix <a href="https://redirect.github.com/async-graphql/async-graphql/issues/1435">#1435</a> <a href="https://redirect.github.com/async-graphql/async-graphql/pull/1475">#1475</a></li> <li>add <code>Request::set_parsed_query</code> method <a href="https://redirect.github.com/async-graphql/async-graphql/pull/1483">#1483</a></li> <li>Upgrade strum to 0.26 <a href="https://redirect.github.com/async-graphql/async-graphql/pull/1485">#1485</a></li> <li>Fix validation of non-nullable variables with default values <a href="https://redirect.github.com/async-graphql/async-graphql/pull/1491">#1491</a></li> <li>add <code>NextExecute::run_with_data</code> method to attach context data before execution</li> <li>feat: add registry method in dynamic::Registry <a href="https://redirect.github.com/async-graphql/async-graphql/pull/1492">#1492</a></li> <li>Allow non-scalars to be used as directive arguments <a href="https://redirect.github.com/async-graphql/async-graphql/pull/1493">#1493</a></li> <li>fix: add description to __schema introspection result <a href="https://redirect.github.com/async-graphql/async-graphql/pull/1489">#1489</a></li> </ul> <h1>[7.0.2] 2024-02-18</h1> <ul> <li>Fix <code>#[derive(OneofObject)]</code> rejecting enums where the type comes from a macro subsitution <a href="https://redirect.github.com/async-graphql/async-graphql/pull/1473">#1473</a></li> <li>Optimize object proc-macro codegen <a href="https://redirect.github.com/async-graphql/async-graphql/pull/1470">#1470</a></li> <li>Use <code>impl Future</code> instead of <code>async-trait</code> in most traits. <a href="https://redirect.github.com/async-graphql/async-graphql/pull/1468">#1468</a></li> <li>Upgrade <code>base64</code> to <code>0.21</code> <a href="https://redirect.github.com/async-graphql/async-graphql/pull/1466">#1466</a></li> <li>Standardize space between Args, Lists and Binary items <a href="https://redirect.github.com/async-graphql/async-graphql/pull/1392">#1392</a></li> <li>feat: support bigdecimal 0.4.x <a href="https://redirect.github.com/async-graphql/async-graphql/pull/1358">#1358</a></li> </ul> <h1>[7.0.1] 2024-01-21</h1> <ul> <li>Add <code>Shareable</code> Attribute To InputObjectField <a href="https://redirect.github.com/async-graphql/async-graphql/pull/1459">#1459</a></li> <li>Feature Generic Unions <a href="https://redirect.github.com/async-graphql/async-graphql/pull/1424">#1424</a></li> <li>Address axum integration compilation error with non-Sync body <a href="https://redirect.github.com/async-graphql/async-graphql/pull/1460">#1460</a></li> <li>fix: date cursor precision string format <a href="https://redirect.github.com/async-graphql/async-graphql/pull/1462">#1462</a></li> </ul> <h1>[7.0.0] 2024-01-06</h1> <ul> <li>upgrade to <code>http1</code></li> <li>Feature extend ResolveInfo with field attribute <a href="https://redirect.github.com/async-graphql/async-graphql/pull/1428">#1428</a></li> </ul> <h1>[6.0.11] 2023-11-19</h1> <ul> <li>Clean up example docs <a href="https://redirect.github.com/async-graphql/async-graphql/pull/1411">#1411</a></li> <li>Run batch requests concurrently <a href="https://redirect.github.com/async-graphql/async-graphql/pull/1420">#1420</a></li> <li>Update opentelemetry to <code>v0.21.x</code> <a href="https://redirect.github.com/async-graphql/async-graphql/pull/1422">#1422</a></li> </ul> <h1>[6.0.10] 2023-11-04</h1> <ul> <li>bump opentelemetry <code>0.20.0</code> <a href="https://redirect.github.com/async-graphql/async-graphql/pull/1406">#1406</a></li> <li>fix check for serial <a href="https://redirect.github.com/async-graphql/async-graphql/pull/1405">#1405</a></li> <li>fixes complexity visitor</li> <li>bump Rocket from <code>0.5.0-rc.2</code> to <code>0.5.0-rc.4</code></li> </ul> <h1>[6.0.9] 2023-10-21</h1> <ul> <li>add support uploading files in dynamic schema <a href="https://github.com/async-graphql/async-graphql/discussions/1384">#1384</a></li> <li>Include <code>@composeDirective</code> in Federation's <code>_service</code> field and document <code>#[TypeDirective]</code> <a href="https://redirect.github.com/async-graphql/async-graphql/pull/1400">#1400</a></li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li>See full diff in <a href="https://github.com/async-graphql/async-graphql/commits">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=async-graphql-parser&package-manager=cargo&previous-version=5.0.10&new-version=7.0.3)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> V3_GIT_ORIGIN_REV_ID: f1b749f6e069c3c72d48cc87f1e014fdff7fbf2d
2024-04-15 12:30:39 +03:00
async-graphql-parser = "7.0"
bincode = "1.3.3"
bson = "2.11.0"
criterion = { version = "0.5", features = ["html_reports"] }
diffy = "0.3.0"
expect-test = "1.5"
graphql-parser = "0.4"
human_bytes = "0.4.1"
postcard = { version = "1.0.4", features = ["use-std"] }
pretty_assertions = "1.3.0"
Bump rmp-serde from 1.1.2 to 1.3.0 (#596) Bumps [rmp-serde](https://github.com/3Hren/msgpack-rust) from 1.1.2 to 1.3.0. <details> <summary>Commits</summary> <ul> <li>See full diff in <a href="https://github.com/3Hren/msgpack-rust/commits/rmp-serde/v1.3.0">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=rmp-serde&package-manager=cargo&previous-version=1.1.2&new-version=1.3.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> V3_GIT_ORIGIN_REV_ID: c03bfaa8c506b69a06b9a0563ce2e70df21df11e
2024-05-20 11:30:14 +03:00
rmp-serde = "1.3.0"
[lints]
workspace = true