[package]
edition = "2024"
rust-version = "1.100"
name = "toddstack-frontend-engine"
version = "0.1.0"
authors = ["Todd Everett Griffin <tgriffin115@gmail.com>"]
build = false
include = [
"**/*.rs",
"js/**",
"tests/scenarios/**",
"tests/snapshots/**",
"Cargo.toml",
"LICENSE",
"README.md",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "App-agnostic Elm-style frontend core: update(model, msg) -> effects, an NDJSON bridge, dirty-key views, introspection, and a headless test harness. Runs as wasm in a worker or through UniFFI."
homepage = "https://www.toddgriffin.me/"
readme = "README.md"
keywords = [
"elm",
"wasm",
"uniffi",
"state-machine",
"toddstack",
]
categories = [
"gui",
"wasm",
"development-tools::testing",
]
license-file = "LICENSE"
repository = "https://github.com/goddtriffin/toddstack"
[features]
example = []
ffi = ["dep:uniffi"]
testing = []
wasm = ["dep:wasm-bindgen"]
[lib]
name = "toddstack_frontend_engine"
path = "src/lib.rs"
[[example]]
name = "ffi_counter"
crate-type = ["cdylib"]
path = "examples/ffi_counter.rs"
required-features = [
"ffi",
"example",
]
[[example]]
name = "wasm_counter"
crate-type = ["cdylib"]
path = "examples/wasm_counter.rs"
required-features = [
"wasm",
"example",
]
[[test]]
name = "counter"
path = "tests/counter.rs"
[dependencies.serde]
version = "1.0.229"
features = ["derive"]
[dependencies.serde_json]
version = "1.0.154"
[dependencies.uniffi]
version = "=0.29.5"
optional = true
[dependencies.wasm-bindgen]
version = "=0.2.130"
optional = true
[lints.cargo.correctness]
level = "deny"
priority = -1
[lints.cargo.manual_readme]
level = "allow"
priority = 1
[lints.cargo.pedantic]
level = "deny"
priority = -1
[lints.cargo.style]
level = "deny"
priority = -1
[lints.cargo.suspicious]
level = "deny"
priority = -1
[lints.clippy.all]
level = "deny"
priority = -1
[lints.clippy.allow_attributes]
level = "forbid"
priority = 1
[lints.clippy.cargo]
level = "deny"
priority = -1
[lints.clippy.complexity]
level = "deny"
priority = -1
[lints.clippy.correctness]
level = "deny"
priority = -1
[lints.clippy.multiple_crate_versions]
level = "allow"
priority = 1
[lints.clippy.nursery]
level = "allow"
priority = 0
[lints.clippy.pedantic]
level = "deny"
priority = -1
[lints.clippy.perf]
level = "deny"
priority = -1
[lints.clippy.style]
level = "deny"
priority = -1
[lints.clippy.suspicious]
level = "deny"
priority = -1
[lints.rust.unfulfilled_lint_expectations]
level = "forbid"
priority = 1
[lints.rust.unsafe_code]
level = "forbid"
priority = 0
[lints.rust.unused]
level = "deny"
priority = -1