miryad-core 0.1.5

Moteur générique (auth OIDC, RBAC, REST/GraphQL/MCP, workflow) derrière le template d'application miryad — une ligne de trait par entité, tout le reste est fourni
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
name = "miryad-core"
version = "0.1.5"
build = false
exclude = [
    ".specdd/*",
    ".opencode/*",
    "**/*.sdd",
    "src/workflow/fixtures_rhai/*",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Moteur générique (auth OIDC, RBAC, REST/GraphQL/MCP, workflow) derrière le template d'application miryad — une ligne de trait par entité, tout le reste est fourni"
homepage = "https://github.com/sebt3/miryad-core"
documentation = "https://docs.rs/miryad-core"
readme = "README.md"
keywords = [
    "axum",
    "sea-orm",
    "rbac",
    "oidc",
    "crud",
]
categories = [
    "web-programming",
    "authentication",
]
license = "BSD-3-Clause"
repository = "https://github.com/sebt3/miryad-core"

[package.metadata.docs.rs]
all-features = false
features = [
    "static-frontend",
    "swagger-ui",
    "graphql",
    "graphiql",
    "mcp",
    "workflow",
]
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
default = ["static-frontend"]
graphiql = [
    "graphql",
    "async-graphql/graphiql",
]
graphql = [
    "dep:seaography",
    "dep:async-graphql",
    "dep:async-graphql-axum",
    "sea-orm/seaography",
]
mcp = ["dep:vynil-core"]
static-frontend = ["dep:tower-http"]
swagger-ui = ["dep:utoipa-swagger-ui"]
workflow = [
    "dep:restate-sdk",
    "dep:uuid",
    "dep:vynil-core",
    "vynil-core?/rhai",
    "dep:tokio",
]

[lib]
name = "miryad_core"
path = "src/lib.rs"

[[bin]]
name = "miryad"
path = "src/bin/miryad.rs"

[[test]]
name = "cli"
path = "tests/cli.rs"

[[test]]
name = "resource"
path = "tests/resource.rs"

[[test]]
name = "workflow_flat_paths"
path = "tests/workflow_flat_paths.rs"

[[test]]
name = "workflow_policy"
path = "tests/workflow_policy.rs"

[[test]]
name = "workflow_policy_twice"
path = "tests/workflow_policy_twice.rs"

[[test]]
name = "workflow_restate"
path = "tests/workflow_restate.rs"

[dependencies.async-graphql]
version = "7"
optional = true

[dependencies.async-graphql-axum]
version = "7"
optional = true

[dependencies.async-trait]
version = "0.1"

[dependencies.axum]
version = "0.8"

[dependencies.base64]
version = "0.22"

[dependencies.chrono]
version = "0.4"

[dependencies.clap]
version = "4"
features = ["derive"]

[dependencies.cookie]
version = "0.18"
features = ["private"]

[dependencies.hex]
version = "0.4"

[dependencies.hmac]
version = "0.12"

[dependencies.openidconnect]
version = "4.0"

[dependencies.rand]
version = "0.8"

[dependencies.reqwest]
version = "0.12"
features = [
    "rustls-tls",
    "json",
]
default-features = false

[dependencies.restate-sdk]
version = "0.12"
features = ["http_server"]
optional = true

[dependencies.rustls-pki-types]
version = "1"

[dependencies.sea-orm]
version = "2"
features = ["macros"]

[dependencies.sea-orm-migration]
version = "2"

[dependencies.seaography]
version = "2.0.0-rc.9"
optional = true

[dependencies.serde]
version = "1"
features = ["derive"]

[dependencies.serde_json]
version = "1"

[dependencies.sha2]
version = "0.10"

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1"
features = [
    "rt-multi-thread",
    "macros",
]
optional = true

[dependencies.tower-http]
version = "0.6"
features = ["fs"]
optional = true
default-features = false

[dependencies.tracing]
version = "0.1"

[dependencies.utoipa]
version = "5"

[dependencies.utoipa-swagger-ui]
version = "9"
features = ["axum"]
optional = true

[dependencies.uuid]
version = "1"
features = ["v4"]
optional = true

[dependencies.vynil-core]
version = "0.7.7"
features = ["hbs"]
optional = true
default-features = false

[dev-dependencies.sea-orm]
version = "2"
features = [
    "sqlx-sqlite",
    "runtime-tokio-rustls",
    "macros",
    "mock",
]

[dev-dependencies.sea-orm-migration]
version = "2"
features = ["sqlx-sqlite"]

[dev-dependencies.tokio]
version = "1"
features = [
    "macros",
    "rt-multi-thread",
]

[dev-dependencies.tower]
version = "0.5"
features = ["util"]

[dev-dependencies.tracing-subscriber]
version = "0.3"
features = ["registry"]

[lints.clippy]
arithmetic_side_effects = "deny"
dbg_macro = "deny"
expect_used = "deny"
indexing_slicing = "deny"
panic = "deny"
panic_in_result_fn = "deny"
print_stderr = "deny"
print_stdout = "deny"
todo = "deny"
unimplemented = "deny"
unreachable = "deny"
unwrap_in_result = "deny"
unwrap_used = "deny"

[lints.clippy.cargo]
level = "deny"
priority = -1

[lints.clippy.multiple_crate_versions]
level = "allow"
priority = 1

[lints.clippy.pedantic]
level = "deny"
priority = -1

[lints.rust]
missing_docs = "deny"
unsafe_code = "forbid"