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)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
38b877f03a
commit
198b1160f2
3 changed files with 10 additions and 9 deletions
|
|
@ -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")..];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue