Copies up to SZ bytes from the host SRC buffer into an owned `String` so the caller can drop the runtime borrow before parsing. */
(len: usize)
| 83 | |
| 84 | /* Copies up to SZ bytes from the host SRC buffer into an owned `String` so the caller can drop the runtime borrow before parsing. */ |
| 85 | fn read_src(len: usize) -> Result<String, core::str::Utf8Error> { |
| 86 | with_runtime(|rt| { |
| 87 | let len = len.min(SZ); |
| 88 | core::str::from_utf8(&rt.src[..len]).map(|s| s.to_string()) |
| 89 | }) |
| 90 | } |
| 91 | |
| 92 | /* Pre-fetch feed: each import as `b<TAB>name` (bare, resolve via manifest) or `q<TAB>spec` (quoted URL/path), one per line. */ |
| 93 | #[unsafe(no_mangle)] |
no test coverage detected