Files
alkane-os/vendor/winapi-util/README.md
T
x ad31cfbafa Vendor flare-ui v0.2.9 and prove the schema-driven UI in an image
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.
2026-11-04 14:06:25 -06:00

65 lines
2.5 KiB
Markdown

winapi-util
===========
This crate provides a smattering of safe wrappers around various parts of the
[windows-sys](https://crates.io/crates/windows-sys) crate.
[![Build status](https://github.com/BurntSushi/winapi-util/workflows/ci/badge.svg)](https://github.com/BurntSushi/winapi-util/actions)
[![](http://meritbadge.herokuapp.com/winapi-util)](https://crates.io/crates/winapi-util)
Dual-licensed under MIT or the [UNLICENSE](http://unlicense.org).
### Documentation
https://docs.rs/winapi-util
### Usage
Run `cargo add winapi-util` to add this dependency to your `Cargo.toml` file.
### Notes
This crate was born out of frustration with having to write lots of little
ffi utility bindings in a variety of crates in order to get Windows support.
Eventually, I started needing to copy & paste a lot of those utility routines.
Since they are utility routines, they often don't make sense to expose directly
in the crate in which they are defined. Instead of continuing this process,
I decided to make a crate instead.
Normally, I'm not a huge fan of "utility" crates like this that don't have a
well defined scope, but this is primarily a practical endeavor to make it
easier to isolate Windows specific ffi code.
While I don't have a long term vision for this crate, I will welcome additional
PRs that add more high level routines/types on an as-needed basis.
**WARNING:** I am not a Windows developer, so extra review to make sure I've
got things right is most appreciated.
### Naming
This crate was originally born on top of `winapi`, and thus, it is called
`winapi-util`. As time passed, Microsoft eventually started providing their
own official `windows` and `windows-sys` crates. As a result, [`winapi` itself
got less activity](https://github.com/BurntSushi/winapi-util/pull/13#issuecomment-1991282893).
As the ecosystem moved on to `windows-sys`, it became clear that `winapi-util`
should too. Thus, its name is now officially historical and not reflective
of what it actually does.
### Minimum Rust version policy
This crate's minimum supported `rustc` version is `1.72.0`.
The current policy is that the minimum Rust version required to use this crate
can be increased in non-breaking version updates. For example, if `crate 1.0`
requires Rust 1.20.0, then `crate 1.0.z` for all values of `z` will also
require Rust 1.20.0 or newer. However, `crate 1.y` for `y > 0` may require a
newer minimum version of Rust.
In general, this crate will be conservative with respect to the minimum
supported version of Rust.