tui: the Cuprate start path answers get_info, and the Linux TUI includes it #177

Merged
sirius merged 2 commits from onionwire/t_6f94e378-onionwire-tui-cuprate-start-path-must-la into main 2026-10-08 21:24:24 +00:00
Owner

Summary

The TUI start path is Node::start_wallet_child, not a direct CuprateNode::launch. The new test stores an in-process testnet source, calls that start, and checks the typed daemon client answers get_info. It does not bootstrap Tor.

Operator override: cuprate-daemon is now in the Linux TUI default. cargo build --release --bin onionwire (no extra feature flag) links the daemon. --features cuprate-daemon still works; it is no longer required for the TUI. A --no-default-features build does not include the daemon and still returns NO_FEATURE_MSG.

cuprated keeps default-features = false. Cuprate's own arti feature would link arti-client 0.44 next to OnionWire's 0.46.

crates/onionwire-sdk is unchanged. Its path dep stays default-features = false, features = rustls. Android still passes cuprate-daemon from the gradle file.

Cargo.lock did not change. cuprated was already an optional dependency, so turning the feature on by default added no packages.

Left alone on purpose

  • docs/TUI.md still says the feature flag is required. The tui-design card owns that file.
  • docs/THREAT_MODEL.md still says the source is an opt-in build feature in the sentence after the one that was updated. The override said change only the off-by-default sentence. The pre-production warning and TESTNET_ONLY are unchanged.

Evidence

  • cargo test --locked --lib start_wallet_child_in_process_cuprate_answers_get_info — 1 passed. Default features, no extra flag. A temporary skip of the launch failed that same test; the skip was reverted.
  • cargo test --locked --no-default-features --features rustls --lib wallet_child — 32 passed, including start_wallet_child_without_the_feature_returns_no_feature_msg.
  • cargo clippy --locked --all-targets -- -D warnings — exit 0. The default set now includes the daemon.
  • cargo clippy --locked --no-default-features --features rustls --lib --tests -- -D warnings — exit 0.
  • cargo build --release --locked --bin onionwire — exit 0, 53M ELF, no extra feature flag. nm shows CuprateNode::launch.
  • rustfmt --edition 2024 --check: src/node.rs 5 diffs now and 5 at HEAD; src/wallet_child.rs 2 and 2; src/cuprate.rs clean.

The root CI test job runs cargo test --locked with defaults, so it will now compile Cuprate.

## Summary The TUI start path is `Node::start_wallet_child`, not a direct `CuprateNode::launch`. The new test stores an in-process testnet source, calls that start, and checks the typed daemon client answers `get_info`. It does not bootstrap Tor. Operator override: `cuprate-daemon` is now in the Linux TUI default. `cargo build --release --bin onionwire` (no extra feature flag) links the daemon. `--features cuprate-daemon` still works; it is no longer required for the TUI. A `--no-default-features` build does not include the daemon and still returns `NO_FEATURE_MSG`. `cuprated` keeps `default-features = false`. Cuprate's own arti feature would link arti-client 0.44 next to OnionWire's 0.46. `crates/onionwire-sdk` is unchanged. Its path dep stays `default-features = false`, features = rustls. Android still passes `cuprate-daemon` from the gradle file. `Cargo.lock` did not change. `cuprated` was already an optional dependency, so turning the feature on by default added no packages. ## Left alone on purpose - `docs/TUI.md` still says the feature flag is required. The tui-design card owns that file. - `docs/THREAT_MODEL.md` still says the source is an opt-in build feature in the sentence after the one that was updated. The override said change only the off-by-default sentence. The pre-production warning and `TESTNET_ONLY` are unchanged. ## Evidence - `cargo test --locked --lib start_wallet_child_in_process_cuprate_answers_get_info` — 1 passed. Default features, no extra flag. A temporary skip of the launch failed that same test; the skip was reverted. - `cargo test --locked --no-default-features --features rustls --lib wallet_child` — 32 passed, including `start_wallet_child_without_the_feature_returns_no_feature_msg`. - `cargo clippy --locked --all-targets -- -D warnings` — exit 0. The default set now includes the daemon. - `cargo clippy --locked --no-default-features --features rustls --lib --tests -- -D warnings` — exit 0. - `cargo build --release --locked --bin onionwire` — exit 0, 53M ELF, no extra feature flag. `nm` shows `CuprateNode::launch`. - rustfmt `--edition 2024 --check`: `src/node.rs` 5 diffs now and 5 at HEAD; `src/wallet_child.rs` 2 and 2; `src/cuprate.rs` clean. The root CI test job runs `cargo test --locked` with defaults, so it will now compile Cuprate.
tui: the Cuprate start path answers get_info, and the Linux TUI includes it
Some checks failed
ci / test (pull_request) Failing after 2m50s
ci / sdk (pull_request) Successful in 1m23s
android-ci / android (pull_request) Successful in 12m40s
a466c43764
Node::start_wallet_child is the call the TUI makes. The test stores an
in-process testnet source, starts the child, and checks the typed daemon
client's get_info. It does not bootstrap Tor.

cuprate-daemon is now in the Linux TUI default, so a release build of the
onionwire bin links the daemon with no extra feature flag. A build with
--no-default-features still refuses with NO_FEATURE_MSG. cuprated keeps
default-features = false so Cuprate's arti feature cannot pull arti-client
0.44 next to OnionWire's 0.46.

Cargo.lock is unchanged: cuprated was already an optional dependency.
ci: install cmake for the default Cuprate build
Some checks failed
ci / test (pull_request) Failing after 52s
ci / sdk (pull_request) Successful in 1m34s
android-ci / android (pull_request) Successful in 11m50s
14a0d22b20
RandomX's cmake-rs build script panics with "is cmake not installed?"
in the rust:bookworm job container once cuprate-daemon is a default
feature. Install cmake and build-essential in the root test, release,
and fuzz containers. Android jobs already did this.
sirius merged commit 174923f80f into main 2026-10-08 21:24:24 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
sirius/onionwire!177
No description provided.