mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-16 01:44:03 +03:00
66e012f589
10 Commits
Author | SHA1 | Message | Date | |
---|---|---|---|---|
Daniel Harvey
|
2a24b3060a |
use clippy settings in Cargo workspace (#441)
<!-- Thank you for submitting this PR! :) --> ## Description Following the approach taken here: https://github.com/hasura/ndc-postgres/pull/402 This moves the `clippy` settings into the Cargo workspace file instead of passing them for each invocation. We enable all pedantic settings, run `cargo clippy --fix` to auto fix a few things, and then manually disable all other lints. Plenty of them are worth enabling and fixing in future IMO. --------- Co-authored-by: Samir Talwar <samir.talwar@hasura.io> V3_GIT_ORIGIN_REV_ID: aa0e6ccb8d72a7393e14b5c58b82077a67d9cb15 |
||
Abhinav Gupta
|
8142819ae0 |
Enforce titles are set on most metadata json schemas (#434)
- Adds titles to json schemas where missing - Adds tests to ensure we don't miss titles in the future (modulo some exceptions) This is required to be able to autogenerate the docs for the metadata V3_GIT_ORIGIN_REV_ID: e2027f3e3d5ee3546af99ff5c2d6de59604a3aec |
||
Samir Talwar
|
79039afbc0 |
Fix a bug in usage of mockito. (#421)
If we're running a mockito server in async tests, we must use `new_async`. The latest version enforces this. V3_GIT_ORIGIN_REV_ID: cb58f248336c7bab08329d311b8b97b8244437a1 |
||
Samir Talwar
|
748bb3abab |
Remove unused dependencies using cargo machete . (#413)
`cargo machete` is a very useful tool that figures out when you aren't using a dependency. I have run this locally to remove unused dependencies. I've also added a CI job to make sure we catch these in the future. Sometimes it reports false positives, e.g. when a dependency isn't used directly but in macro-generated code (e.g. with `strum`). I have added `"ignored"` clauses to the `Cargo.toml` files where appropriate. V3_GIT_ORIGIN_REV_ID: ed015089b695cec8eeb03ce455d6dd3cd312a016 |
||
Phil Curzon
|
be93dd2a6a |
Fix json schema description spelling errors (#399)
## Description Fixes various spelling errors in the JSON schema descriptions. No behavioural changes. V3_GIT_ORIGIN_REV_ID: 56454b3193baa8257caa6116a35fbdda4be1d5eb |
||
Samir Talwar
|
aa11947067 |
Disable benchmarks in unit tests. (#376)
This means that we can pass arguments to the Criterion benchmarks because the test binaries do not try and run. For example, if you run this: ``` cargo bench -- --warm-up-time=1 --measurement-time=1 ``` … it will currently fail, because it will also pass these arguments to the tests. Disabling the benchmarks for the tests fixes this. V3_GIT_ORIGIN_REV_ID: 10fe0683b82c506e1a11b24ca0a0a4041e37b655 |
||
Daniel Harvey
|
e3bd16b5db |
Revert Bump serde_with from 2.3.3 to 3.7.0 (#381)
Reverts hasura/v3-engine#367 This is causing downstream problems in `v3-metadata-build-service`, let's roll back for now to unblock things. V3_GIT_ORIGIN_REV_ID: 3261f2f12825c8eac3353a2282b982f0f3bac80e |
||
dependabot[bot]
|
92fc015fac |
Bump serde_with from 2.3.3 to 3.7.0 (#367)
Bumps [serde_with](https://github.com/jonasbb/serde_with) from 2.3.3 to 3.7.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/jonasbb/serde_with/releases">serde_with's releases</a>.</em></p> <blockquote> <h2>serde_with v3.7.0</h2> <h3>Added</h3> <ul> <li>Implement <code>JsonSchemaAs</code> for <code>EnumMap</code> by <a href="https://github.com/swlynch99"><code>@swlynch99</code></a> (<a href="https://redirect.github.com/jonasbb/serde_with/issues/697">#697</a>)</li> <li>Implement <code>JsonSchemaAs</code> for <code>IfIsHumanReadable</code> by <a href="https://github.com/swlynch99"><code>@swlynch99</code></a> (<a href="https://redirect.github.com/jonasbb/serde_with/issues/717">#717</a>)</li> <li>Implement <code>JsonSchemaAs</code> for <code>KeyValueMap</code> by <a href="https://github.com/swlynch99"><code>@swlynch99</code></a> (<a href="https://redirect.github.com/jonasbb/serde_with/issues/713">#713</a>)</li> <li>Implement <code>JsonSchemaAs</code> for <code>OneOrMany</code> by <a href="https://github.com/swlynch99"><code>@swlynch99</code></a> (<a href="https://redirect.github.com/jonasbb/serde_with/issues/719">#719</a>)</li> </ul> <h3>Fixed</h3> <ul> <li>Detect conflicting <code>schema_with</code> attributes on fields with <code>schemars</code> annotations by <a href="https://github.com/swlynch99"><code>@swlynch99</code></a> (<a href="https://redirect.github.com/jonasbb/serde_with/issues/715">#715</a>) This extends the existing avoidance mechanism to a new variant fixing <a href="https://redirect.github.com/jonasbb/serde_with/issues/712">#712</a>.</li> </ul> <h2>serde_with v3.6.1</h2> <h3>Changed</h3> <ul> <li>Eliminate dependency on serde's "derive" feature by <a href="https://github.com/dtolnay"><code>@dtolnay</code></a> (<a href="https://redirect.github.com/jonasbb/serde_with/issues/694">#694</a>) This allows parallel compilation of <code>serde</code> and <code>serde_derive</code> which can speed up the wallclock time. It requires that downstream crates do not use the "derive" feature either.</li> </ul> <h2>serde_with v3.6.0</h2> <h3>Added</h3> <ul> <li>Add <code>IfIsHumanReadable</code> for conditional implementation by <a href="https://github.com/irriden"><code>@irriden</code></a> (<a href="https://redirect.github.com/jonasbb/serde_with/issues/690">#690</a>) Used to specify different transformations for text-based and binary formats.</li> <li>Add more <code>JsonSchemaAs</code> impls for all <code>Duration*</code> and <code>Timestamp*</code> adaptors by <a href="https://github.com/swlynch99"><code>@swlynch99</code></a> (<a href="https://redirect.github.com/jonasbb/serde_with/issues/685">#685</a>)</li> </ul> <h3>Changed</h3> <ul> <li>Bump MSRV to 1.65, since that is required for the <code>regex</code> dependency.</li> </ul> <h2>serde_with v3.5.1</h2> <h3>Fixed</h3> <ul> <li>The <code>serde_as</code> macro now better detects existing <code>schemars</code> attributes on fields and incorporates them by <a href="https://github.com/swlynch99"><code>@swlynch99</code></a> (<a href="https://redirect.github.com/jonasbb/serde_with/issues/682">#682</a>) This avoids errors on existing <code>#[schemars(with = ...)]</code> annotations.</li> </ul> <h2>serde_with v3.5.0</h2> <h3>Added</h3> <ul> <li>Support for <code>schemars</code> integration added by <a href="https://github.com/swlynch99"><code>@swlynch99</code></a> (<a href="https://redirect.github.com/jonasbb/serde_with/issues/666">#666</a>) The support uses a new <code>Schema</code> top-level item which implements <code>JsonSchema</code> The <code>serde_as</code> macro can now detect <code>schemars</code> usage and emits matching annotations for all fields with <code>serde_as</code> attribute. Many types of this crate come already with support for the <code>schemars</code>, but support is not complete and will be extended over time.</li> </ul> <h2>serde_with v3.4.0</h2> <ul> <li> <p>Lower minimum required serde version to 1.0.152 (<a href="https://redirect.github.com/jonasbb/serde_with/issues/653">#653</a>) Thanks to <a href="https://github.com/banool"><code>@banool</code></a> for submitting the PR.</p> <p>This allows people that have a problem with 1.0.153 to still use <code>serde_with</code>.</p> </li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href=" |
||
dependabot[bot]
|
2898a0dbe6 |
Bump openssl from 0.10.60 to 0.10.64 (#370)
Bumps [openssl](https://github.com/sfackler/rust-openssl) from 0.10.60 to 0.10.64. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/sfackler/rust-openssl/releases">openssl's releases</a>.</em></p> <blockquote> <h2>openssl-v0.10.64</h2> <h2>What's Changed</h2> <ul> <li>Make _STACK opaque for LibreSSL >= 3.9.0 by <a href="https://github.com/botovq"><code>@botovq</code></a> in <a href="https://redirect.github.com/sfackler/rust-openssl/pull/2153">sfackler/rust-openssl#2153</a></li> <li>enable x509 verify and groups list for boringssl by <a href="https://github.com/zh-jq"><code>@zh-jq</code></a> in <a href="https://redirect.github.com/sfackler/rust-openssl/pull/2155">sfackler/rust-openssl#2155</a></li> <li>Cleanup some not-required Path::new invocations by <a href="https://github.com/alex"><code>@alex</code></a> in <a href="https://redirect.github.com/sfackler/rust-openssl/pull/2158">sfackler/rust-openssl#2158</a></li> <li>fixed a clippy (nightly) warning by <a href="https://github.com/alex"><code>@alex</code></a> in <a href="https://redirect.github.com/sfackler/rust-openssl/pull/2161">sfackler/rust-openssl#2161</a></li> <li>Bump actions versions by <a href="https://github.com/alex"><code>@alex</code></a> in <a href="https://redirect.github.com/sfackler/rust-openssl/pull/2162">sfackler/rust-openssl#2162</a></li> <li>Add support for setting the nonce type and digest on a PKEY_CTX by <a href="https://github.com/facutuesca"><code>@facutuesca</code></a> in <a href="https://redirect.github.com/sfackler/rust-openssl/pull/2144">sfackler/rust-openssl#2144</a></li> <li>rebuild openssl-sys if the underlying openssl has changed by <a href="https://github.com/reaperhulk"><code>@reaperhulk</code></a> in <a href="https://redirect.github.com/sfackler/rust-openssl/pull/2157">sfackler/rust-openssl#2157</a></li> <li>Added binding for EVP_default_properties_enable_fips by <a href="https://github.com/alex"><code>@alex</code></a> in <a href="https://redirect.github.com/sfackler/rust-openssl/pull/2168">sfackler/rust-openssl#2168</a></li> <li>LibreSSL 3.9: fix CRYPTO_malloc/free signatures by <a href="https://github.com/botovq"><code>@botovq</code></a> in <a href="https://redirect.github.com/sfackler/rust-openssl/pull/2170">sfackler/rust-openssl#2170</a></li> <li>Expose alias on X509 structs by <a href="https://github.com/alex"><code>@alex</code></a> in <a href="https://redirect.github.com/sfackler/rust-openssl/pull/2167">sfackler/rust-openssl#2167</a></li> <li>bump openssl and openssl-sys + changelogs by <a href="https://github.com/reaperhulk"><code>@reaperhulk</code></a> in <a href="https://redirect.github.com/sfackler/rust-openssl/pull/2175">sfackler/rust-openssl#2175</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/sfackler/rust-openssl/compare/openssl-v0.10.63...openssl-v0.10.64">https://github.com/sfackler/rust-openssl/compare/openssl-v0.10.63...openssl-v0.10.64</a></p> <h2>openssl-v0.10.63</h2> <h2>What's Changed</h2> <ul> <li>Allow passing a passphrase callback when loading a public key by <a href="https://github.com/alex"><code>@alex</code></a> in <a href="https://redirect.github.com/sfackler/rust-openssl/pull/2135">sfackler/rust-openssl#2135</a></li> <li>Expose several additional ciphers for symmetry with symm by <a href="https://github.com/alex"><code>@alex</code></a> in <a href="https://redirect.github.com/sfackler/rust-openssl/pull/2140">sfackler/rust-openssl#2140</a></li> <li>brew: add openssl@3.0 (for 3.0.x LTS releases) by <a href="https://github.com/chenrui333"><code>@chenrui333</code></a> in <a href="https://redirect.github.com/sfackler/rust-openssl/pull/2141">sfackler/rust-openssl#2141</a></li> <li>Add PKey::from_dhx by <a href="https://github.com/alex"><code>@alex</code></a> in <a href="https://redirect.github.com/sfackler/rust-openssl/pull/2142">sfackler/rust-openssl#2142</a></li> <li>Make X509_PURPOSE opaque for LibreSSL >= 3.9.0 by <a href="https://github.com/botovq"><code>@botovq</code></a> in <a href="https://redirect.github.com/sfackler/rust-openssl/pull/2145">sfackler/rust-openssl#2145</a></li> <li>PEM parsing: check last error instead of first by <a href="https://github.com/botovq"><code>@botovq</code></a> in <a href="https://redirect.github.com/sfackler/rust-openssl/pull/2148">sfackler/rust-openssl#2148</a></li> <li>Expose brainpool NIDs on libressl by <a href="https://github.com/alex"><code>@alex</code></a> in <a href="https://redirect.github.com/sfackler/rust-openssl/pull/2150">sfackler/rust-openssl#2150</a></li> <li>Add two methods to the PKCS7 API by <a href="https://github.com/facutuesca"><code>@facutuesca</code></a> in <a href="https://redirect.github.com/sfackler/rust-openssl/pull/2111">sfackler/rust-openssl#2111</a></li> <li>add more boringssl methods by <a href="https://github.com/zh-jq"><code>@zh-jq</code></a> in <a href="https://redirect.github.com/sfackler/rust-openssl/pull/2138">sfackler/rust-openssl#2138</a></li> <li>Release openssl v0.10.63 and openssl-sys v0.9.99 by <a href="https://github.com/alex"><code>@alex</code></a> in <a href="https://redirect.github.com/sfackler/rust-openssl/pull/2152">sfackler/rust-openssl#2152</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/sfackler/rust-openssl/compare/openssl-v0.10.62...openssl-v0.10.63">https://github.com/sfackler/rust-openssl/compare/openssl-v0.10.62...openssl-v0.10.63</a></p> <h2>openssl-v0.10.62</h2> <h2>What's Changed</h2> <ul> <li>fixes <a href="https://redirect.github.com/sfackler/rust-openssl/issues/2119">#2119</a> -- use ErrorStack abstraction in X.509 error handling by <a href="https://github.com/alex"><code>@alex</code></a> in <a href="https://redirect.github.com/sfackler/rust-openssl/pull/2120">sfackler/rust-openssl#2120</a></li> <li>Fix building with latest BoringSSL by <a href="https://github.com/alex"><code>@alex</code></a> in <a href="https://redirect.github.com/sfackler/rust-openssl/pull/2121">sfackler/rust-openssl#2121</a></li> <li>Fix tests on macOS by <a href="https://github.com/alex"><code>@alex</code></a> in <a href="https://redirect.github.com/sfackler/rust-openssl/pull/2123">sfackler/rust-openssl#2123</a></li> <li>Upcoming API changes in LibreSSL 3.9 by <a href="https://github.com/botovq"><code>@botovq</code></a> in <a href="https://redirect.github.com/sfackler/rust-openssl/pull/2124">sfackler/rust-openssl#2124</a></li> <li>Add <code>rand_priv_bytes</code> by <a href="https://github.com/overvenus"><code>@overvenus</code></a> in <a href="https://redirect.github.com/sfackler/rust-openssl/pull/2126">sfackler/rust-openssl#2126</a></li> <li>Add nid constant for curve brainpoolP320r1 by <a href="https://github.com/nicklaswj"><code>@nicklaswj</code></a> in <a href="https://redirect.github.com/sfackler/rust-openssl/pull/2129">sfackler/rust-openssl#2129</a></li> <li>Release openssl v0.10.62 and openssl-sys v0.9.98 by <a href="https://github.com/alex"><code>@alex</code></a> in <a href="https://redirect.github.com/sfackler/rust-openssl/pull/2133">sfackler/rust-openssl#2133</a></li> </ul> <h2>New Contributors</h2> <ul> <li><a href="https://github.com/overvenus"><code>@overvenus</code></a> made their first contribution in <a href="https://redirect.github.com/sfackler/rust-openssl/pull/2126">sfackler/rust-openssl#2126</a></li> <li><a href="https://github.com/nicklaswj"><code>@nicklaswj</code></a> made their first contribution in <a href="https://redirect.github.com/sfackler/rust-openssl/pull/2129">sfackler/rust-openssl#2129</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/sfackler/rust-openssl/compare/openssl-v0.10.61...openssl-v0.10.62">https://github.com/sfackler/rust-openssl/compare/openssl-v0.10.61...openssl-v0.10.62</a></p> <h2>openssl v0.10.61</h2> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href=" |
||
Daniel Harvey
|
bdd5d06437 |
Move all crates into a folder (#355)
<!-- Thank you for submitting this PR! :) --> ## Description This moves all the crates into a `/crates` folder. Everything appears to just work, thanks Cargo! V3_GIT_ORIGIN_REV_ID: 8e3ef287b1a46cabdb4d919a50e813ab2cddf8b1 |