tui: the Cuprate start path answers get_info, and the Linux TUI includes it #177
Loading…
Reference in a new issue
No description provided.
Delete branch "onionwire/t_6f94e378-onionwire-tui-cuprate-start-path-must-la"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
The TUI start path is
Node::start_wallet_child, not a directCuprateNode::launch. The new test stores an in-process testnet source, calls that start, and checks the typed daemon client answersget_info. It does not bootstrap Tor.Operator override:
cuprate-daemonis now in the Linux TUI default.cargo build --release --bin onionwire(no extra feature flag) links the daemon.--features cuprate-daemonstill works; it is no longer required for the TUI. A--no-default-featuresbuild does not include the daemon and still returnsNO_FEATURE_MSG.cupratedkeepsdefault-features = false. Cuprate's own arti feature would link arti-client 0.44 next to OnionWire's 0.46.crates/onionwire-sdkis unchanged. Its path dep staysdefault-features = false, features = rustls. Android still passescuprate-daemonfrom the gradle file.Cargo.lockdid not change.cupratedwas already an optional dependency, so turning the feature on by default added no packages.Left alone on purpose
docs/TUI.mdstill says the feature flag is required. The tui-design card owns that file.docs/THREAT_MODEL.mdstill 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 andTESTNET_ONLYare 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, includingstart_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.nmshowsCuprateNode::launch.--edition 2024 --check:src/node.rs5 diffs now and 5 at HEAD;src/wallet_child.rs2 and 2;src/cuprate.rsclean.The root CI test job runs
cargo test --lockedwith defaults, so it will now compile Cuprate.