2025-01-10 15:19:31 +01:00
|
|
|
[package]
|
|
|
|
|
name = "toy-chat"
|
|
|
|
|
version = "0.1.0"
|
|
|
|
|
edition = "2021"
|
|
|
|
|
authors = [
|
|
|
|
|
"Daniel Sanchez Quiros <danielsq@status.im>"
|
|
|
|
|
]
|
|
|
|
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
|
|
|
|
|
|
|
|
[dependencies]
|
|
|
|
|
waku = { path = "../../waku-bindings", package = "waku-bindings" }
|
fix(examples): port toy-chat and tic-tac-toe-gui to the generated API
examples/ is its own cargo workspace and only examples/basic is a member
of the root one, so nothing built from the repo root ever compiled these
two. They still used waku_new, set_event_callback, WakuEvent and the
WakuNodeHandle typestate, none of which exist any more.
Both collapse their App<State> typestate: the node no longer carries one,
so neither can the app wrapping it. Event handling shrinks to a single
add_on_received_message_listener -- the filter on content topic stays,
but the enum match, the JSON parse and the panics on unexpected variants
go, since a listener only receives what it registered for. Payloads are
base64-decoded by the caller now.
The store DTOs (StoreQueryRequest, StoreResponse, StoreWakuMessageResponse)
come back as general/store.rs: they are plain serde shapes, and deleting
node/store.rs took them out along with the FFI call they sat next to.
toy-chat needs them to build the store query JSON and read the response.
CI gains a check over examples/Cargo.toml. Without it these rot silently
on the next API change, which is exactly how they got here.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-16 01:28:54 +02:00
|
|
|
base64 = "0.21"
|
2025-01-10 15:19:31 +01:00
|
|
|
serde_json = "1.0"
|
|
|
|
|
serde = { version = "1.0", features = ["derive"] }
|
|
|
|
|
tui = "0.19"
|
|
|
|
|
crossterm = "0.25"
|
|
|
|
|
unicode-width = "0.1"
|
|
|
|
|
prost = "0.11"
|
|
|
|
|
chrono = "0.4"
|
|
|
|
|
tokio = { version = "1", features = ["full"] }
|