2023-12-19 12:04:02 +03:00
[ workspace ]
resolver = "2"
2024-03-06 20:14:24 +03:00
2024-08-21 17:02:43 +03:00
package . version = "3.0.0"
2024-03-06 20:14:24 +03:00
package . edition = "2021"
package . license = "Apache-2.0"
2023-12-19 12:04:02 +03:00
members = [
2024-05-01 12:04:24 +03:00
"crates/auth/*" ,
2024-08-21 17:02:43 +03:00
"crates/compatibility" ,
2024-05-01 12:04:24 +03:00
"crates/custom-connector" ,
"crates/engine" ,
2024-05-17 17:41:32 +03:00
"crates/execute" ,
2024-09-17 16:34:04 +03:00
"crates/graphql/*" ,
2024-09-10 13:25:01 +03:00
"crates/jsonapi" ,
2024-05-02 15:28:27 +03:00
"crates/metadata-resolve" ,
2024-05-01 12:04:24 +03:00
"crates/metadata-schema-generator" ,
"crates/open-dds" ,
2024-09-24 17:16:24 +03:00
"crates/plan" ,
2024-09-27 11:23:27 +03:00
"crates/plan-types" ,
2024-07-03 15:57:38 +03:00
"crates/plugins/*" ,
2024-05-28 12:50:21 +03:00
"crates/query-usage-analytics" ,
2024-06-25 21:45:49 +03:00
"crates/sql" ,
2024-05-01 12:04:24 +03:00
"crates/utils/*" ,
2023-12-19 12:04:02 +03:00
]
2024-08-13 16:42:38 +03:00
# generally following guidance from https://nnethercote.github.io/perf-book/build-configuration.html
[ profile . release ]
codegen-units = 1 # reduce parallelisation to increase optimisations
2024-04-08 13:13:26 +03:00
[ workspace . lints . clippy ]
all = { level = "warn" , priority = -1 }
pedantic = { level = "warn" , priority = -1 }
2024-06-24 14:46:07 +03:00
# ban printing to stdout and stderr
print_stdout = "warn"
print_stderr = "warn"
2024-06-24 17:08:11 +03:00
# unstable warnings; we might need to suppress them
redundant_clone = "warn"
2024-06-28 01:21:04 +03:00
# disable this warning until
# https://github.com/rust-lang/rust-clippy/issues/12643 is fixed
manual_unwrap_or_default = "allow"
2024-04-08 13:13:26 +03:00
# disable certain pedantic warnings
doc_markdown = "allow"
2024-06-11 18:32:43 +03:00
implicit_hasher = "allow"
2024-04-08 13:13:26 +03:00
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
2024-06-11 18:32:43 +03:00
return_self_not_must_use = "allow"
2024-06-04 11:42:01 +03:00
struct_field_names = "allow"
2024-04-08 13:13:26 +03:00
wildcard_imports = "allow"
2024-08-23 17:00:43 +03:00
trivially_copy_pass_by_ref = "allow"
2024-04-08 13:13:26 +03:00
# disable these for now, but we should probably fix them
result_large_err = "allow"
similar_names = "allow"
too_many_arguments = "allow"
too_many_lines = "allow"
unreadable_literal = "allow"
used_underscore_binding = "allow"
2024-05-16 12:04:07 +03:00
[ workspace . lints . rustdoc ]
private_intra_doc_links = "allow"
2024-06-20 15:25:06 +03:00
[ workspace . dependencies ]
2024-11-06 15:46:42 +03:00
ndc-models = { git = "https://github.com/hasura/ndc-spec.git" , tag = "v0.2.0-rc.1" } # When you update this tag, also update the schema references in crates/open-dds/src/data_connector.rs
2024-10-23 10:31:54 +03:00
ndc-models-v01 = { package = "ndc-models" , git = "https://github.com/hasura/ndc-spec.git" , tag = "v0.1.6" } # When you update this tag, also update the schema references in crates/open-dds/src/data_connector.rs
2024-06-20 15:25:06 +03:00
anyhow = "1"
apollo-parser = "0.7"
async-graphql-parser = "7"
async-recursion = "1"
2024-08-15 12:04:57 +03:00
async-trait = "0.1"
2024-11-11 14:29:11 +03:00
axum = { version = "0.7" , features = [ "http2" , "ws" ] }
2024-10-03 11:48:52 +03:00
axum-core = "0.4"
2024-06-20 15:25:06 +03:00
base64 = "0.22"
bincode = "1"
2024-09-25 16:47:46 +03:00
blake2 = "0.10.6"
2024-06-20 15:25:06 +03:00
bson = "2"
build-data = "0.2"
bytes = "1"
2024-08-21 17:02:43 +03:00
chrono = "0.4"
2024-11-11 14:29:11 +03:00
clap = { version = "4" , features = [ "derive" , "env" ] }
2024-06-20 15:25:06 +03:00
convert_case = "0.6"
cookie = "0.18"
2024-11-11 14:29:11 +03:00
criterion = { version = "0.5" , features = [ "html_reports" , "async_tokio" ] }
2024-06-20 15:25:06 +03:00
darling = "0.20"
2024-11-11 14:29:11 +03:00
datafusion = { version = "41" , features = [ "serde" ] }
Bump derive_more from 0.99.18 to 1.0.0 (#1310)
Bumps [derive_more](https://github.com/JelteF/derive_more) from 0.99.18
to 1.0.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/JelteF/derive_more/releases">derive_more's
releases</a>.</em></p>
<blockquote>
<h2>v1.0.0 - Finally a stable release</h2>
<p><code>derive_more</code> is a library that adds derives for many of
the standard library traits. By using this library the following code
just works:</p>
<pre lang="rust"><code>use derive_more::{Add, Display, From, Into};
<p>#[derive(PartialEq, From, Add)]
struct MyInt(i32);</p>
<p>#[derive(PartialEq, From, Into)]
struct Point2D {
x: i32,
y: i32,
}</p>
<p>#[derive(PartialEq, From, Add, Display)]
enum MyEnum {
#[display("int: {_0}")]
Int(i32),
Uint(u32),
#[display("nothing")]
Nothing,
}</p>
<p>assert!(MyInt(11) == MyInt(5) + 6.into());
assert!((5, 6) == Point2D { x: 5, y: 6 }.into());
assert!(MyEnum::Int(15) == (MyEnum::Int(8) + 7.into()).unwrap());
assert!(MyEnum::Int(15).to_string() == "int: 15");
assert!(MyEnum::Uint(42).to_string() == "42");
assert!(MyEnum::Nothing.to_string() == "nothing");
</code></pre></p>
<p>Now, more than 8 years after the first commit and almost 5 years
after the 0.99.0 release, <code>derive_more</code> has finally reached
its 1.0.0 release. This release contains a lot of changes (including
some breaking ones) to make it easier to use the derives and make it
possible to extend them without having to break backwards compatibility
again. There are five major changes that I would like to call out, but
there are many more changes that are documented below:</p>
<ol>
<li>There is a new <code>Debug</code> derive that can be used to easily
customize <code>Debug</code> formatting.</li>
<li>A greatly improved <code>Display</code> derive, which allows you to
do anything that <a
href="https://github.com/dtolnay/thiserror"><code>thiserror</code></a>
provides, but it works for any type not just errors. And by combining
the <code>Display</code> derive with the <code>Error</code> and
<code>From</code> derives, there shouldn't really be any need to use
<code>thiserror</code> anymore (if you are missing a feature/behaviour
from <code>thiserror</code> please report an issue).</li>
<li>Traits that can return errors now return a type that implements
<code>Error</code> when an error occurs instead of a <code>&'static
str</code>.</li>
<li>When using <code>use derive_more::SomeTrait</code> the actual trait
is also imported not just the derive macro. This is especially useful
for <code>Error</code> and
<code>Display</code></li>
<li>The docs are now rendered on docs.rs and are much better
overall.</li>
</ol>
<h3>Breaking changes</h3>
<ul>
<li>The minimum supported Rust version (MSRV) is now Rust 1.75.</li>
<li>Add the <code>std</code> feature which should be disabled in
<code>no_std</code> environments.</li>
<li>All Cargo features, except <code>std</code>, are now disabled by
default. The <code>full</code> feature can be used to get the old
behavior of supporting all possible derives.</li>
<li>The <code>TryFrom</code>, <code>Add</code>, <code>Sub</code>,
<code>BitAnd</code>, <code>BitOr</code>, <code>BitXor</code>,
<code>Not</code> and <code>Neg</code> derives now return a dedicated
error type instead of a <code>&'static str</code> on error.</li>
<li>The <code>FromStr</code> derive now uses a dedicated
<code>FromStrError</code> error type instead of generating unique one
each time.</li>
<li>The <code>Display</code> derive (and other <code>fmt</code>-like
ones) now uses <code>#[display("...",
(<expr>),*)]</code> syntax instead of <code>#[display(fmt =
"...", ("<expr>"),*)]</code>, and
<code>#[display(bound(<bound>))]</code> instead of
<code>#[display(bound = "<bound>")]</code>. So without
the double quotes around the expressions and bounds.</li>
<li>The <code>Debug</code> and <code>Display</code> derives (and other
<code>fmt</code>-like ones) now transparently delegate to the inner type
when <code>#[display("...", (<expr>),*)]</code>
attribute is trivially substitutable with a transparent call. (<a
href="https://redirect.github.com/JelteF/derive_more/pull/322">#322</a>)</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/JelteF/derive_more/blob/master/CHANGELOG.md">derive_more's
changelog</a>.</em></p>
<blockquote>
<h2>1.0.0 - 2024-08-07</h2>
<p>More than 8 years after the first commit and almost 5 years after the
0.99.0
release, <code>derive_more</code> has finally reached its 1.0.0 release.
This release
contains a lot of changes (including some breaking ones) to make it
easier to
use the derives and make it possible to extend them without having to
break
backwards compatibility again. There are five major changes that I would
like
to call out, but there are many more changes that are documented
below:</p>
<ol>
<li>There is a new <code>Debug</code> derive that can be used to easily
customize <code>Debug</code>
formatting.</li>
<li>A greatly improved <code>Display</code> derive, which allows you to
do anything that
<a
href="https://github.com/dtolnay/thiserror"><code>thiserror</code></a>
provides, but it works
for any type not just errors. And by combining the <code>Display</code>
derive with the
<code>Error</code> and <code>From</code> derives, there shouldn't really
be any need to use
<code>thiserror</code> anymore (if you are missing a feature/behaviour
from <code>thiserror</code>
please report an issue).</li>
<li>Traits that can return errors now return a type that implements
<code>Error</code>
when an error occurs instead of a <code>&'static str</code>.</li>
<li>When using <code>use derive_more::SomeTrait</code> the actual trait
is also imported
not just the derive macro. This is especially useful for
<code>Error</code> and
<code>Display</code></li>
<li>The docs are now rendered on docs.rs and are much better
overall.</li>
</ol>
<h3>Breaking changes</h3>
<ul>
<li>The minimum supported Rust version (MSRV) is now Rust 1.75.</li>
<li>Add the <code>std</code> feature which should be disabled in
<code>no_std</code> environments.</li>
<li>All Cargo features, except <code>std</code>, are now disabled by
default. The <code>full</code>
feature can be used to get the old behavior of supporting all possible
derives.</li>
<li>The <code>TryFrom</code>, <code>Add</code>, <code>Sub</code>,
<code>BitAnd</code>, <code>BitOr</code>, <code>BitXor</code>,
<code>Not</code> and <code>Neg</code>
derives now return a dedicated error type instead of a
<code>&'static str</code> on
error.</li>
<li>The <code>FromStr</code> derive now uses a dedicated
<code>FromStrError</code> error type instead
of generating unique one each time.</li>
<li>The <code>Display</code> derive (and other <code>fmt</code>-like
ones) now uses
<code>#[display("...", (<expr>),*)]</code> syntax
instead of
<code>#[display(fmt = "...",
("<expr>"),*)]</code>, and
<code>#[display(bound(<bound>))]</code>
instead of <code>#[display(bound = "<bound>")]</code>.
So without the double quotes
around the expressions and bounds.</li>
<li>The <code>Debug</code> and <code>Display</code> derives (and other
<code>fmt</code>-like ones) now transparently
delegate to the inner type when <code>#[display("...",
(<expr>),*)]</code> attribute is
trivially substitutable with a transparent call.
(<a
href="https://redirect.github.com/JelteF/derive_more/pull/322">#322</a>)</li>
<li>The <code>DebugCustom</code> derive is renamed to just
<code>Debug</code> (gated now under a separate
<code>debug</code> feature), and its semantics were changed to be a
superset of <code>std</code> variant
of <code>Debug</code>.</li>
<li>The <code>From</code> derive doesn't derive
<code>From<()></code> for enum variants without any
fields anymore. This feature was removed because it was considered
useless in</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/JelteF/derive_more/commit/d7f5b9e94d024790682f6fc4dcca13941cce64c8"><code>d7f5b9e</code></a>
chore: Release</li>
<li><a
href="https://github.com/JelteF/derive_more/commit/40201b1e2e39d449f998d57e1a8471f5bab0b069"><code>40201b1</code></a>
Update release date to be correct</li>
<li><a
href="https://github.com/JelteF/derive_more/commit/88863ca4e69eb11ac0f476c6afca45fe57bd6576"><code>88863ca</code></a>
Update changelog wording</li>
<li><a
href="https://github.com/JelteF/derive_more/commit/b713835894454cd0246dd80e13ce72cb056c82b0"><code>b713835</code></a>
Improve error when not enabling any features</li>
<li><a
href="https://github.com/JelteF/derive_more/commit/330e4252fbc12e41794f7f5e164e96423f6f9ff1"><code>330e425</code></a>
Order features in Cargo.toml alphabetically</li>
<li><a
href="https://github.com/JelteF/derive_more/commit/84f2cbb05fc7cefb433144b3f86a85c0bc3e339b"><code>84f2cbb</code></a>
Update README and CHANGELOG in preparation of 1.0.0</li>
<li><a
href="https://github.com/JelteF/derive_more/commit/e8d60cf0e5c4ef21ffb96617b5be160990c56741"><code>e8d60cf</code></a>
Add compile_fail test for on purpose limited bounds (<a
href="https://redirect.github.com/JelteF/derive_more/issues/393">#393</a>,
<a
href="https://redirect.github.com/JelteF/derive_more/issues/392">#392</a>)</li>
<li><a
href="https://github.com/JelteF/derive_more/commit/f665d18125e3b7eba34e71a3e6d20060a05c41a7"><code>f665d18</code></a>
Make anyhow reference a bit less strong</li>
<li><a
href="https://github.com/JelteF/derive_more/commit/6d632b2db29d138f72f5fbc3023972d0b00ed614"><code>6d632b2</code></a>
Add release announcement (<a
href="https://redirect.github.com/JelteF/derive_more/issues/390">#390</a>)</li>
<li><a
href="https://github.com/JelteF/derive_more/commit/e87ab1315f01223eb20b232ca5a9294285d7b993"><code>e87ab13</code></a>
Don't create git tags for derive_more-impl (<a
href="https://redirect.github.com/JelteF/derive_more/issues/391">#391</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/JelteF/derive_more/compare/v0.99.18...v1.0.0">compare
view</a></li>
</ul>
</details>
<br />
[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=derive_more&package-manager=cargo&previous-version=0.99.18&new-version=1.0.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>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Daniel Harvey <danieljamesharvey@gmail.com>
V3_GIT_ORIGIN_REV_ID: 2a5d2033a90d16d5bf2096db5a717e31128b8c00
2024-11-04 13:39:00 +03:00
derive_more = { version = "1.0" , features = [ "full" ] }
2024-06-20 15:25:06 +03:00
diffy = "0.4"
env_logger = "0.11"
expect-test = "1"
2024-08-15 12:04:57 +03:00
futures = "0.3"
2024-06-20 15:25:06 +03:00
futures-util = "0.3"
goldenfile = "1"
graphql-parser = "0.4"
2024-10-03 11:48:52 +03:00
http = "1"
http-body-util = "0.1"
2024-06-20 15:25:06 +03:00
human_bytes = "0.4"
2024-11-11 14:29:11 +03:00
indexmap = { version = "2" , features = [ "serde" ] }
insta = { version = "1" , features = [ "glob" , "json" ] }
2024-06-20 15:25:06 +03:00
json_value_merge = "2"
2024-11-05 20:48:49 +03:00
jsonapi_library = { package = "jsonapi" , git = "https://github.com/hasura/jsonapi-rust.git" , rev = "9b5a3a08414e559c7285b539acd4d4fc7b31f3b5" }
2024-06-20 15:25:06 +03:00
jsonptr = "0.4"
2024-11-11 14:29:11 +03:00
jsonwebkey = { version = "0.3" , features = [ "generate" , "jsonwebtoken" , "pkcs-convert" ] }
2024-06-20 15:25:06 +03:00
jsonwebtoken = "8"
2024-09-25 16:47:46 +03:00
lazy_static = "1.5.0"
2024-06-20 15:25:06 +03:00
lexical-core = "0.8"
2024-08-13 12:54:08 +03:00
mimalloc = "0.1"
2024-08-07 18:02:33 +03:00
mockito = { version = "~1.4" , default-features = false } # v1.5+ depends on http v1
2024-11-11 14:29:11 +03:00
nonempty = { version = "0.10" , features = [ "serialize" ] }
2024-10-22 12:04:50 +03:00
oas3 = "0.12.1"
2024-06-20 15:25:06 +03:00
openssl = "0.10"
2024-10-03 11:48:52 +03:00
opentelemetry = "0.24"
opentelemetry-contrib = "0.16"
opentelemetry-http = "0.13"
opentelemetry-otlp = "0.17"
opentelemetry-semantic-conventions = "0.16"
2024-11-11 14:29:11 +03:00
opentelemetry-stdout = { version = "0.5" , default-features = false , features = [ "trace" ] }
2024-10-03 11:48:52 +03:00
opentelemetry-zipkin = "0.22"
2024-11-11 14:29:11 +03:00
opentelemetry_sdk = { version = "0.24" , features = [ "rt-tokio" ] }
postcard = { version = "1" , features = [ "use-std" ] }
2024-06-20 15:25:06 +03:00
pretty_assertions = "1"
proc-macro2 = "1"
quote = "1"
rand = "0.8"
ref-cast = "1"
regex = "1"
2024-11-11 14:29:11 +03:00
reqwest = { version = "0.12" , features = [ "json" , "multipart" , "stream" ] }
2024-06-20 15:25:06 +03:00
rmp-serde = "1"
2024-07-25 17:30:31 +03:00
semver = "1.0"
2024-11-11 14:29:11 +03:00
schemars = { version = "0.8" , features = [ "preserve_order" , "smol_str" , "url" ] }
serde = { version = "1" , features = [ "derive" , "rc" ] }
serde_json = { version = "1" , features = [ "preserve_order" ] }
2024-06-20 15:25:06 +03:00
serde_path_to_error = "0.1"
2024-10-16 05:46:12 +03:00
serde_with = { version = "3" , features = [ "indexmap_2" ] }
2024-06-20 15:25:06 +03:00
sha2 = "0.10"
smol_str = "0.1"
strum = "0.26"
strum_macros = "0.26"
syn = "2"
thiserror = "1"
2024-11-11 14:29:11 +03:00
tokio = { version = "1" , features = [ "macros" , "parking_lot" , "rt-multi-thread" , "signal" , "time" ] }
2024-06-20 15:25:06 +03:00
tokio-test = "0.4"
2024-10-14 11:56:16 +03:00
tokio-tungstenite = "0.24.0"
2024-10-03 11:48:52 +03:00
tower = "0.5"
2024-11-11 14:29:11 +03:00
# Prefer zstd-encoded request bodies, but also support gzip in case a client can't do that
tower-http = { version = "0.5" , features = [ "cors" , "fs" , "decompression-gzip" , "decompression-zstd" , "trace" ] }
2024-06-20 15:25:06 +03:00
tracing = "0.1"
2024-11-11 14:29:11 +03:00
tracing-subscriber = { version = "0.3" , features = [ "json" ] }
2024-06-20 15:25:06 +03:00
transitive = "0.5"
2024-11-11 14:29:11 +03:00
url = { version = "2" , features = [ "serde" ] }
uuid = { version = "1" , features = [ "v4" ] }