[package]
edition = "2024"
rust-version = "1.85"
name = "gpui_tea"
version = "0.1.0"
authors = ["Ilya Chernichkin <inkwadra.dev@gmail.com>"]
build = false
include = [
"src/**",
"examples/**",
"tests/**",
"Cargo.toml",
"../../README.md",
"../../LICENSE",
]
publish = ["crates-io"]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Runtime primitives for building Elm-style GPUI applications."
homepage = "https://github.com/inkwadra/gpui-tea"
documentation = "https://docs.rs/gpui_tea"
readme = "README.md"
keywords = [
"gpui",
"ui",
"tea",
]
categories = [
"development-tools",
"gui",
]
license = "Apache-2.0"
repository = "https://github.com/inkwadra/gpui-tea"
resolver = "2"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
]
[features]
default = []
metrics = ["dep:metrics"]
tracing = [
"dep:tracing",
"dep:tracing-subscriber",
]
[lib]
name = "gpui_tea"
path = "src/lib.rs"
[[example]]
name = "counter"
path = "examples/counter.rs"
[[example]]
name = "init_command"
path = "examples/init_command.rs"
[[example]]
name = "keyed_effect"
path = "examples/keyed_effect.rs"
[[example]]
name = "nested_models"
path = "examples/nested_models.rs"
[[example]]
name = "observability"
path = "examples/observability.rs"
[[example]]
name = "subscriptions"
path = "examples/subscriptions.rs"
[[example]]
name = "telemetry"
path = "examples/telemetry.rs"
[[test]]
name = "derive_ui"
path = "tests/derive_ui.rs"
[[test]]
name = "runtime_contracts"
path = "tests/runtime_contracts.rs"
[dependencies.futures]
version = "0.3.32"
[dependencies.gpui]
version = "0.2.2"
features = ["test-support"]
[dependencies.gpui_tea_macros]
version = "0.1.0"
[dependencies.metrics]
version = "0.24.2"
optional = true
[dependencies.thiserror]
version = "2.0.17"
[dependencies.tracing]
version = "0.1.41"
optional = true
[dependencies.tracing-subscriber]
version = "0.3.19"
features = ["env-filter"]
optional = true
[dev-dependencies.trybuild]
version = "1.0.111"
[lints.clippy]
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
multiple_crate_versions = "allow"
[lints.clippy.all]
level = "warn"
priority = -1
[lints.clippy.cargo]
level = "warn"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
missing_docs = "warn"
unreachable_pub = "warn"
unsafe_code = "forbid"
unused_lifetimes = "warn"
unused_qualifications = "warn"
[lints.rust.rust_2018_idioms]
level = "deny"
priority = -1
[lints.rustdoc]
bare_urls = "deny"
broken_intra_doc_links = "deny"