cargo-feature-combinations 0.7.0

run cargo commands for all feature combinations
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
@import "syntax";

/*
  Two font/accent options — flip between them to compare. Only one block of each
  pair should be active (the other commented out).

  Option A (original): IBM Plex Sans + IBM Plex Mono, warm orange accent.
  Option B (active):   Geist + Geist Mono, cool indigo/violet accent.
*/

/* Option A fonts — commented out:
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url('fonts/ibm-plex-sans.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/ibm-plex-mono-400.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/ibm-plex-mono-500.woff2') format('woff2');
}
*/

/* Option B fonts (active): Geist + Geist Mono (variable). */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/geist-sans.woff2') format('woff2');
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/geist-mono.woff2') format('woff2');
}

:root {
  /* Option A (commented out):
  --cfc-sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --cfc-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  */
  --cfc-sans: 'Geist', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --cfc-mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/*
  Theme application. An inline <head> script resolves the effective theme from
  localStorage or prefers-color-scheme and sets data-theme before first paint,
  so these two rules cover both the OS default and the manual toggle. The
  attribute selector also outranks the theme's own `:root { … }` block.
*/
@mixin cfc-light {
  @include theme-light;
  /* Option A accent (commented out): warm orange
  --cfc-brand: #d9480f;
  --cfc-brand-strong: #b8390b;
  --cfc-brand-contrast: #ffffff;
  --color-link: #b8390b;
  --color-visited-link: #b8390b;
  */
  --cfc-brand: #6355d6;
  --cfc-brand-strong: #5445c4;
  --cfc-brand-contrast: #ffffff;
  --color-link: #5445c4;
  --color-visited-link: #5445c4;

  /* Inline code and code blocks (theme uses --gray-100 bg + --gray-200 border);
     kept clearly distinct from the white body. */
  --gray-100: #eef0f4;
  --gray-200: #dbdfe6;

  --cfc-surface: #ffffff;
  --cfc-surface-2: #f6f7f9;
  --cfc-border: #e6e8eb;
  --cfc-muted: #59626d;
  --cfc-scroll-thumb: #c7ccd1;
}

@mixin cfc-dark {
  @include theme-dark;
  /* Option A accent (commented out): warm orange
  --cfc-brand: #ff922b;
  --cfc-brand-strong: #ffa94d;
  --cfc-brand-contrast: #1a1205;
  --color-link: #ffa94d;
  --color-visited-link: #ffa94d;
  */
  --cfc-brand: #b3a4ff;
  --cfc-brand-strong: #c7bcff;
  --cfc-brand-contrast: #191433;
  --color-link: #b9abff;
  --color-visited-link: #b9abff;

  /* A neutral dark gray — darker and less blue than the theme's Nord default
     (#2e3440), but not a harsh near-black. Text is softened off-white so the
     contrast stays comfortable. */
  --body-background: #1a1c21;
  --body-font-color: #dce1e7;
  /* Inline code and code blocks sit one clear step above the body, with a
     visible border, so they read as distinct surfaces. */
  --gray-100: #282d37;
  --gray-200: #3a414e;
  --gray-500: #bec6cf;

  --cfc-surface: #23262d;
  --cfc-surface-2: #1f2228;
  --cfc-border: #313641;
  --cfc-muted: #949dab;
  --cfc-scroll-thumb: #3a414c;
}

/* Base defaults so every --cfc-* variable is defined even when data-theme is not
   set yet — before the head script runs, on a livereload repaint, or with JS
   disabled. Without them var(--cfc-brand-contrast)/var(--cfc-brand) are undefined
   and the primary hero button renders transparent with black text. The head
   script still sets data-theme for the toggle; the @media just picks the right
   default when it hasn't. */
:root { @include cfc-light; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) { @include cfc-dark; }
}
:root[data-theme="light"] { @include cfc-light; }
:root[data-theme="dark"] { @include cfc-dark; }

/* Keep code blocks on the same neutral "code surface" as inline code (one step
   above the body), rather than the syntax theme's tinted background. Token
   colors are unchanged. */
:root[data-theme="dark"] pre.chroma {
  background: var(--gray-100);
}

body {
  font-family: var(--cfc-sans);
}

/* Thin, theme-aware scrollbars (page, menu, TOC, code blocks, tables). */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--cfc-scroll-thumb) transparent;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--cfc-scroll-thumb);
  border-radius: 8px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--cfc-brand);
}

/* The terminal is always dark, so its scrollbar is too, regardless of theme. */
.cfc-term__body {
  scrollbar-color: #4a5160 transparent;
}

.cfc-term__body::-webkit-scrollbar-thumb {
  background: #4a5160;
}

.cfc-term__body::-webkit-scrollbar-thumb:hover {
  background: #5c6470;
}

code, kbd, samp, pre, .chroma, .cfc-term__body {
  font-family: var(--cfc-mono);
}

.markdown h1, .markdown h2, .markdown h3, .markdown h4 {
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* The book theme forces TOC entries onto a single line (`white-space: nowrap`),
   so a long entry (e.g. a heading with two flag names) overflows the column
   instead of wrapping. Allow entries to wrap, but keep each hyphenated flag name
   whole — otherwise the default line-breaking chops `--show-pruned` mid-word at a
   hyphen. A little extra spacing keeps multi-line entries readable. */
.book-toc a {
  /* The theme lays TOC links out as flex, so their content never wraps and
     overflows instead — make them normal block boxes that wrap at spaces. */
  display: block;
  white-space: normal;
}
.book-toc code {
  white-space: nowrap;
}
.book-toc li {
  margin: 0.2rem 0;
  line-height: 1.35;
}

.markdown pre.chroma {
  padding: 0.8rem 1rem;
  border: 1px solid var(--gray-200);
  border-radius: 0.4rem;
  overflow-x: auto;
}

.cfc-theme-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  margin: 0.25rem 0 0.75rem;
  padding: 0.4rem 0.6rem;
  font: inherit;
  font-size: var(--font-size-smaller);
  color: var(--body-font-color);
  background: var(--cfc-surface-2);
  border: 1px solid var(--cfc-border);
  border-radius: 0.35rem;
  cursor: pointer;
}

.cfc-theme-btn:hover {
  border-color: var(--cfc-brand);
}

.cfc-theme-btn__icon {
  font-size: 1rem;
  line-height: 1;
}

.markdown a.cfc-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.55rem 1.15rem;
  border-radius: 0.4rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--cfc-border);
  color: var(--body-font-color);
}

.markdown a.cfc-btn:hover {
  border-color: var(--cfc-brand);
  text-decoration: none;
}

.markdown a.cfc-btn--primary {
  background: var(--cfc-brand);
  border-color: var(--cfc-brand);
  color: var(--cfc-brand-contrast);
}

.markdown a.cfc-btn--primary:hover {
  background: var(--cfc-brand-strong);
  border-color: var(--cfc-brand-strong);
}

.cfc-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2.5rem;
  margin: 0.25rem 0 2.5rem;
}

.cfc-hero__text {
  flex: 1 1 20rem;
  min-width: 16rem;
}

.cfc-hero__text h1 {
  font-size: 2rem;
  line-height: 1.15;
  margin: 0 0 0.6rem;
  border: 0;
  padding: 0;
}

.cfc-hero__lead {
  font-size: 1.05rem;
  color: var(--cfc-muted);
  margin: 0 0 1.3rem;
  line-height: 1.55;
}

.cfc-hero__cmd {
  display: inline-block;
  font-family: var(--cfc-mono);
  background: #0e1116;
  color: #e6edf3;
  padding: 0.5rem 0.85rem;
  border-radius: 0.4rem;
  margin-bottom: 1.3rem;
  font-size: 0.9rem;
  max-width: 100%;
  overflow-x: auto;
}

.cfc-hero__cmd::before {
  content: "$ ";
  color: #4ade80;
}

.cfc-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.cfc-hero__shot {
  flex: 1 1 22rem;
  min-width: 18rem;
  /* Size the hero terminal's font to this column's width (below) so the
     fixed-width cargo lines always fit, at any viewport. */
  container-type: inline-size;
}

/* The hero shot is a live terminal snippet (not an image). Give it the drop
   shadow the screenshot had, drop the default vertical margin so it aligns with
   the hero text, and shrink the font + padding so the whole run fits inside the
   hero column with no scrollbar on either axis. */
.cfc-hero__shot .cfc-term {
  margin: 0;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.22);
}

/* Match the base rule's specificity (.cfc-term pre.cfc-term__body) so these win.
   font-size is in cqi (1% of the column width): the widest cargo line is ~50
   characters wide, so ~1.8cqi keeps it inside the column with a little slack,
   scaling up on wider columns and down on narrow ones. No scrollbar on either
   axis — max-height:none lets the box grow to the full run. */
.cfc-hero__shot .cfc-term pre.cfc-term__body {
  padding: 0.7rem 0.85rem;
  font-size: 1.8cqi;
  line-height: 1.5;
  max-height: none;
  overflow: hidden;
}

.cfc-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
  margin: 1.25rem 0 2rem;
}

.cfc-card {
  border: 1px solid var(--cfc-border);
  border-radius: 0.5rem;
  padding: 1rem 1.1rem;
  background: var(--cfc-surface);
}

.cfc-card h3 {
  margin: 0 0 0.35rem;
  font-size: 0.98rem;
}

.cfc-card p {
  margin: 0;
  color: var(--cfc-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

/* Terminal snippets (generated by scripts/terminals.sh). Plain dark block —
   no window chrome — rendered dark in both site themes. */
.cfc-term {
  margin: 1.1rem 0;
  border: 1px solid #21262d;
  border-radius: 0.4rem;
  overflow: hidden;
  background: #0e1116;
}

/* Raised specificity so the always-dark terminal keeps light text on light pages,
   where the theme's `.markdown pre` color would otherwise win. */
.cfc-term pre.cfc-term__body {
  margin: 0;
  padding: 0.9rem 1.1rem;
  max-height: 28rem;
  overflow: auto;
  background: none;
  color: #e6edf3;
  font-size: 0.82rem;
  line-height: 1.5;
  white-space: pre;
  tab-size: 2;
}

/* terminal-to-html emits `term-fgN` (attributes + normal colors) and
   `term-fgiN` (intense/bright). Palette is fixed dark, matching the screenshots. */
.cfc-term__body {
  .term-fg1 { font-weight: 600; }
  .term-fg2 { opacity: 0.6; }
  .term-fg3 { font-style: italic; }
  .term-fg4 { text-decoration: underline; }

  .term-fg30 { color: #6e7681; }
  .term-fg31 { color: #ff7b72; }
  .term-fg32 { color: #3fb950; }
  .term-fg33 { color: #d29922; }
  .term-fg34 { color: #58a6ff; }
  .term-fg35 { color: #bc8cff; }
  .term-fg36 { color: #39c5cf; }
  .term-fg37 { color: #b1bac4; }

  .term-fgi90 { color: #8b949e; }
  .term-fgi91 { color: #ffa198; }
  .term-fgi92 { color: #56d364; }
  .term-fgi93 { color: #e3b341; }
  .term-fgi94 { color: #79c0ff; }
  .term-fgi95 { color: #d2a8ff; }
  .term-fgi96 { color: #56d4dd; }
  .term-fgi97 { color: #f0f6fc; }
}