lenso 0.3.42

Public facade for authoring and hosting Lenso backend modules.
Documentation
# 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"
rust-version = "1.94"
name = "lenso"
version = "0.3.42"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Public facade for authoring and hosting Lenso backend modules."
homepage = "https://github.com/LioRael/lenso"
readme = "README.md"
keywords = [
    "backend",
    "framework",
    "modules",
    "runtime",
]
categories = [
    "web-programming",
    "development-tools",
]
license = "MIT"
repository = "https://github.com/LioRael/lenso"
resolver = "2"

[features]
default = []
host = [
    "host-transactions",
    "dep:anyhow",
    "dep:axum",
    "dep:lenso-api",
    "dep:lenso-bootstrap",
    "dep:lenso-migrate",
    "service",
    "dep:lenso-worker",
    "dep:platform-http",
    "dep:platform-module",
    "dep:tokio",
]
host-transactions = ["dep:platform-core"]
service = ["dep:lenso-service"]

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

[[test]]
name = "host_outbox_relay"
path = "tests/host_outbox_relay.rs"
required-features = ["host-transactions"]

[[test]]
name = "public_facade"
path = "tests/public_facade.rs"
required-features = ["service"]

[dependencies.anyhow]
version = "1.0"
optional = true

[dependencies.axum]
version = "0.8"
optional = true

[dependencies.lenso-api]
version = "0.1.35"
optional = true

[dependencies.lenso-bootstrap]
version = "0.1.32"
optional = true

[dependencies.lenso-contracts]
version = "0.4.0"

[dependencies.lenso-migrate]
version = "0.1.33"
optional = true

[dependencies.lenso-service]
version = "0.1.24"
optional = true

[dependencies.lenso-worker]
version = "0.1.33"
optional = true

[dependencies.platform-core]
version = "0.1.23"
optional = true
package = "lenso-platform-core"

[dependencies.platform-http]
version = "0.1.22"
optional = true
package = "lenso-platform-http"

[dependencies.platform-module]
version = "0.1.23"
optional = true
package = "lenso-platform-module"

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

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

[dev-dependencies.chrono]
version = "0.4"
features = ["serde"]

[dev-dependencies.serde_json]
version = "1.0"

[dev-dependencies.sqlx]
version = "0.9"
features = [
    "runtime-tokio",
    "tls-rustls-ring-webpki",
    "postgres",
    "uuid",
    "chrono",
    "json",
]
default-features = false

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

[lints.clippy]
all = "warn"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
pedantic = "warn"

[lints.rust]
missing_debug_implementations = "warn"
unsafe_code = "forbid"