mirror of
https://github.com/danbulant/cushy
synced 2026-06-20 06:51:07 +00:00
Installing a callback now returns a CallbackHandle. All map-style APIs install this handle automatically on the created dynamic, which keeps the callback installed until the dynamic is freed. All other APIs return the handle for the caller to either call persist() or store somewhere. Now, the dynamic system can be used for application-long data with almost no fear of leaking data due to how callbacks are being installed. Technically cycles are still possible by moving clones into the callbacks, so a WeakDynamic type might be worth exposing.
53 lines
1.2 KiB
TOML
53 lines
1.2 KiB
TOML
[workspace]
|
|
|
|
[package]
|
|
name = "gooey"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
|
|
[features]
|
|
default = ["tracing-output", "roboto-flex"]
|
|
tracing-output = ["dep:tracing-subscriber"]
|
|
roboto-flex = []
|
|
|
|
[dependencies]
|
|
kludgine = { git = "https://github.com/khonsulabs/kludgine", features = [
|
|
"app",
|
|
] }
|
|
alot = "0.3"
|
|
interner = "0.2.1"
|
|
kempt = "0.2.1"
|
|
intentional = "0.1.0"
|
|
tracing = "0.1.40"
|
|
|
|
tracing-subscriber = { version = "0.3", optional = true, features = [
|
|
"env-filter",
|
|
] }
|
|
palette = "0.7.3"
|
|
ahash = "0.8.6"
|
|
gooey-macros = { version = "0.1.0", path = "gooey-macros" }
|
|
derive_more = { version = "1.0.0-beta.6", features = ["from"] }
|
|
arboard = "3.2.1"
|
|
zeroize = "1.6.1"
|
|
unicode-segmentation = "1.10.1"
|
|
|
|
|
|
# [patch."https://github.com/khonsulabs/kludgine"]
|
|
# kludgine = { path = "../kludgine" }
|
|
# [patch."https://github.com/khonsulabs/appit"]
|
|
# appit = { path = "../appit" }
|
|
# [patch."https://github.com/khonsulabs/figures"]
|
|
# figures = { path = "../figures" }
|
|
|
|
[patch.crates-io]
|
|
alot = { git = "https://github.com/khonsulabs/alot" }
|
|
# kempt = { path = "../objectmap" }
|
|
|
|
[profile.dev.package."*"]
|
|
opt-level = 2
|
|
|
|
[dev-dependencies]
|
|
pollster = "0.3.0"
|
|
|
|
[profile.release]
|
|
debug = true
|