Commit 9c4bf8a
feat(cli): v0.34.0 — cargo-native installer (no Node required)
Answers the most-requested distribution gap (Reddit: "not everyone has
npm… isn't there a way via cargo?"). The registry is plain static JSON
with the Slint source embedded — the CLI is just transport — so a second
front-end is cheap and the two are interchangeable over one source of truth.
- New standalone `slintcn` crate at cli/ (ureq + serde, no async, no Node).
`cargo install slintcn` ships two bins: `slintcn` and `cargo-slintcn`
(so `cargo slintcn add …` works as a subcommand).
- Commands init/add/list/view. `add` fetches /r/<name>.json, resolves
registryDependencies recursively + dedupes, writes verbatim — the default
ui/slintcn/ layout makes registry relative imports resolve with no rewriting.
- base-color: buildRegistryItem inlines palette zinc/slate/stone as a
`variants` map so the cargo CLI (and the npm remote-install path, which
ignored base-color before) can pick a palette without a second request.
- 11 Rust tests via an injected Fetcher (no network/disk); `make verify`
now gates cli (cargo test + clippy -D warnings).
- Docs install tabs gain a cargo pill (default); /create page gets a
cargo/npm toggle; landing get-started leads with cargo. README + ROADMAP
present npm and cargo as equal options. npm CLI unchanged.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent a207f2a commit 9c4bf8a
18 files changed
Lines changed: 1591 additions & 26 deletions
File tree
- bin
- cli
- src
- bin
- tests
- docs
- examples/showcase
- registry/default
- scripts
- web
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
15 | 20 | | |
16 | 21 | | |
17 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
9 | | - | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
21 | 38 | | |
22 | 39 | | |
23 | 40 | | |
| |||
26 | 43 | | |
27 | 44 | | |
28 | 45 | | |
29 | | - | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
30 | 52 | | |
31 | 53 | | |
32 | 54 | | |
| |||
93 | 115 | | |
94 | 116 | | |
95 | 117 | | |
| 118 | + | |
96 | 119 | | |
97 | 120 | | |
98 | 121 | | |
99 | 122 | | |
100 | 123 | | |
101 | 124 | | |
102 | 125 | | |
103 | | - | |
| 126 | + | |
| 127 | + | |
104 | 128 | | |
105 | 129 | | |
106 | 130 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
64 | 76 | | |
65 | 77 | | |
66 | 78 | | |
| |||
0 commit comments