mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-17 15:55:14 +00:00
* feat: add craft-control (control channel protocol) Port from solidcraft: the control channel any app may share, no UI toolkit. - Per-launch token files (32 random bytes, user-only permissions) - Loopback server with token-based authentication - Client that talks to the loopback server - Request/response types (ControlRequest, ControlResponse) - Document watch for subscribed connections waiting on changes - Effect type for requests still running when they finish Desktop-only (wasm32 excluded): uses getrandom for token generation. No external dependencies beyond serde and serde_json. * fix: update test directory names from solidcraft-control to craft-control * Record control crate dependencies in workspace lockfile * re-trigger CI * chore(lock): keep the wasm-bindgen family at the version main's runners install
24 lines
706 B
TOML
24 lines
706 B
TOML
[package]
|
|
name = "craft-control"
|
|
description = "The control channel any app may share: token files, the loopback server, and its requests; no UI toolkit"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
rust-version.workspace = true
|
|
repository.workspace = true
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[dependencies]
|
|
serde = { workspace = true }
|
|
serde_json = { workspace = true }
|
|
|
|
# The loopback server is for desktop apps; the web app is driven through the page instead.
|
|
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
|
|
# The per-launch control token: 32 random bytes from the operating system (MIT OR Apache-2.0).
|
|
getrandom = "0.3"
|
|
|
|
[dev-dependencies]
|
|
proptest = { workspace = true }
|