Spike, not the final UI: it answers whether flare-ui can drive Alkane OS's on-box pages, and what it costs. What works: - schema/alkane-bb.json authors the sidebar as data (3 sections, 14 tabs); - src/bin/ui-spike.rs renders it through flare_ui::nav + flare_ui::shell, so the unified sidebar, ordering and surface filtering come from the schema rather than from hand-written HTML; - the render uses the shared bf- design tokens, the same ones the rest of the suite uses. Size, measured rather than assumed (armv7, release, stripped): ui-baseline 323 KiB (maud + serde_json, no flare-ui) ui-spike 771 KiB (flare-ui + wschema + sha2) marginal 448 KiB Vendoring: third-party/flare-ui is the full v0.2.9 tree pinned in flare-ui/flare-ui.lock (a partial archive does not compile, since the crate include_str!s assets from dash-editor/). vendor/ is re-generated as a cargo directory source with the new registry dependencies (maud, sha2, typenum, digest, generic-array, block-buffer, crypto-common, cfg-if, etc.) so the build still works offline. third-party/README.md records how to re-pin.
29 lines
1.3 KiB
Plaintext
29 lines
1.3 KiB
Plaintext
error[E0277]: the trait bound `NotZerocopy<u32>: FromBytes` is not satisfied
|
|
--> $DIR/include_value.rs:17:5
|
|
|
|
|
17 | zerocopy::include_value!("../../testdata/include_value/data");
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound
|
|
|
|
|
help: the trait `FromBytes` is not implemented for `NotZerocopy<u32>`
|
|
--> $DIR/../include.rs:15:5
|
|
|
|
|
15 | pub struct NotZerocopy<T = ()>(pub T);
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
= note: Consider adding `#[derive(FromBytes)]` to `NotZerocopy<u32>`
|
|
= help: the following other types implement trait `FromBytes`:
|
|
$IMPLEMENTATION_SAMPLES
|
|
and $OTHER_TYPES others
|
|
note: required by a bound in `NOT_FROM_BYTES::transmute`
|
|
--> $DIR/include_value.rs:17:5
|
|
|
|
|
17 | zerocopy::include_value!("../../testdata/include_value/data");
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
| |
|
|
| required by a bound in this function
|
|
| required by this bound in `transmute`
|
|
= note: this error originates in the macro `$crate::transmute` which comes from the expansion of the macro `zerocopy::include_value` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
error: aborting due to 1 previous error
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|