cargo-telar 0.2.1

Cargo subcommand for Telar apps: dev server with hot reload, and packaging into native installers.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use super::*;

/// Read from the `cargo-telar` package itself, which declares no `[features]` at all — the shape of a project that has named no frontend of its own, and the one case where a target has to be reached through the dependency.
#[test]
fn a_package_that_declares_no_frontend_reaches_one_through_telar() {
    assert_eq!(
        frontend_args(Target::Tui, None, &[]),
        vec!["--features", "telar/tui"]
    );
    assert_eq!(
        frontend_args(Target::Desktop, None, &[]),
        vec!["--features", "telar/desktop"]
    );
}