mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-16 09:51:59 +03:00
5d619a540f
### What The `lazy_static` macro is poorly maintained, fairly bloated, and has been mostly superseded by [`OnceLock`](https://doc.rust-lang.org/stable/std/sync/struct.OnceLock.html) in the stdlib. ### How 1. I turned a couple of `static ref` values into `const`, sometimes by creating `const fn` equivalents to other functions. 2. I inlined static behavior to construct a JSON pointer into some tests, where we don't care too much about losing a few milliseconds. 3. For the rest, I replaced `lazy_static` with a `static OnceLock` and a call to `OnceLock::get_or_init`. V3_GIT_ORIGIN_REV_ID: 18e4150a5fb24fe71f6ed77fe6178b7942405aa3
32 lines
791 B
TOML
32 lines
791 B
TOML
[package]
|
|
name = "metadata-resolve"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
|
|
[lib]
|
|
bench = false
|
|
|
|
[dependencies]
|
|
hasura-authn-core = { path = "../auth/hasura-authn-core" }
|
|
lang-graphql = { path = "../lang-graphql" }
|
|
open-dds = { path = "../open-dds" }
|
|
|
|
derive_more = { workspace = true }
|
|
indexmap = { workspace = true, features = ["serde"] }
|
|
ndc-models = { workspace = true }
|
|
nonempty = { workspace = true }
|
|
ref-cast = { workspace = true }
|
|
reqwest = { workspace = true, features = ["json", "multipart"] }
|
|
schemars = { workspace = true }
|
|
serde = { workspace = true }
|
|
serde_json = { workspace = true }
|
|
thiserror = { workspace = true }
|
|
url = { workspace = true }
|
|
|
|
[dev-dependencies]
|
|
insta = { workspace = true, features = ["glob"] }
|
|
|
|
[lints]
|
|
workspace = true
|