graphql-engine/v3/crates/engine/Cargo.toml
Philip Lykke Carlsen 8752081323 Add /metadata and /metadata-hash endpoints (#461)
## Description

This PR iterates on #459.

Rather than serving the engine metadata it serves an arbitrary file,
given by the command line argument `--introspection-metadata`.
Specifying this argument gives rise to endpoints `/metadata` and
`/metadata-hash`.

![image](https://github.com/hasura/v3-engine/assets/358550/63040f02-876a-4c29-8cf1-52a305ffff67)

Update: We only load the file in at engine startup and serve that
version. Changing the file on disk will not change what the engine
serves.

---------

Co-authored-by: Gil Mizrahi <gil@gilmi.net>
V3_GIT_ORIGIN_REV_ID: db88adb5c08c4489cc1abd5fb5236b8d5ba51b9a
2024-04-11 21:32:40 +00:00

83 lines
2.1 KiB
TOML

[package]
name = "engine"
version.workspace = true
edition.workspace = true
license.workspace = true
build = "build.rs"
[lib]
bench = false
[[bin]]
name = "engine"
path = "bin/engine/main.rs"
bench = false
[[bench]]
name = "execute"
harness = false
[dependencies]
hasura-authn-core = { path = "../hasura-authn-core" }
hasura-authn-jwt = { path = "../hasura-authn-jwt" }
hasura-authn-webhook = { path = "../hasura-authn-webhook" }
lang-graphql = { path = "../lang-graphql" }
open-dds = { path = "../open-dds" }
opendds-derive = { path = "../opendds-derive" }
tracing-util = { path = "../tracing-util" }
anyhow = "1.0.75"
async-recursion = "1.0.5"
axum = { version = "0.6.20" }
base64 = "0.21.2"
bincode = "1.3.3"
bytes = "1.6.0"
clap = { version = "4", features = ["derive", "env"] }
derive_more = "0.99.17"
futures = "0.3.29"
indexmap = { version = "2", features = ["serde"] }
itertools = "0.10.5"
json_value_merge = "2.0"
lazy_static = "1.4.0"
ndc-models = { git = "https://github.com/hasura/ndc-spec.git", tag = "v0.1.2" }
nonempty = "0.8"
reqwest = { version = "0.11", features = ["json", "multipart"] }
schemars = { version = "0.8.12", features = ["smol_str"] }
serde = "1.0.152"
serde_json = "1.0.92"
serde_path_to_error = "0.1.14"
strum = "0.25.0"
strum_macros = "0.25.2"
thiserror = "1.0"
tokio = { version = "1.26.0", features = [
"macros",
"parking_lot",
"rt-multi-thread",
"signal",
] }
tower-http = { version = "0.4", features = ["trace", "cors", "fs"] }
transitive = "0.5.0"
url = "2.4.1"
# Dependencies to build and run build.rs file
[build-dependencies]
build-data = "0.1.5" # To set short commit-sha at build time
[dev-dependencies]
criterion = { version = "0.4", features = ["html_reports", "async_tokio"] }
goldenfile = "1.4.5"
mockito = { version = "1.1.0", default-features = false, features = [] }
pretty_assertions = "1.3.0"
tokio-test = "0.4.2"
[package.metadata.cargo-machete]
ignored = [
"build_data", # cargo-machete ignores build dependencies
"serde_path_to_error", # used by opendds-derive
"strum", # used by strum_macros
]
[lints]
workspace = true