rho-coding-agent 3.13.0

A fast Rust agent harness with a small footprint and opinionated defaults
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use super::features;
use pretty_assertions::assert_eq;
use rho_protocol::DaemonFeature;

// Covers: the daemon's hello names `browser` exactly when it is built with
// the `browser` feature. A client would otherwise offer a browser the
// daemon cannot serve, or hide one it can. CI runs it with the feature;
// `--no-default-features --features bundled-sqlite` runs it without.
// Owner: daemon host
#[test]
fn the_hello_names_the_browser_only_when_built_with_it() {
    assert_eq!(
        features().contains(&DaemonFeature::Browser),
        cfg!(feature = "browser")
    );
}