String packs: the site tab's delivery layer lives in app.rs, so a host without the net feature builds again (a generated app's cargo check failed on the net-gated store_commands module)

This commit is contained in:
CRTkafa 2026-10-01 04:40:25 +07:00
parent 2c7c143487
commit b3dd6f7eea
3 changed files with 10 additions and 9 deletions

View file

@ -121,7 +121,7 @@ mod tests {
let host = include_str!("host.rs");
// Document-start scripts: the safe set instead of the app's.
// (the normal layers are the string packs' delivery and then the app's own scripts).
assert!(app.contains("let layers = || crate::store_commands::strings_init_script(app).into_iter().chain(hooks.init_scripts(app, tab)).collect::<Vec<_>>();"));
assert!(app.contains("let layers = || strings_layer(app).into_iter().chain(hooks.init_scripts(app, tab)).collect::<Vec<_>>();"));
assert!(app.contains("crate::safe::layer(crate::safe::active(), layers, || hooks.safe_init_scripts(app, tab))"));
// The default safe set is the tab bridge alone.
let default = &app[app.find("fn safe_init_scripts").expect("the hook")..];