Skip to content

Commit 1dae29e

Browse files
committed
Native Rust + slint generator for article cover art
Omakase / Japanese-constructivist design: six sumi-ê themes, five wagara patterns, three layouts and five output formats (1:1 to 2:1, including the 1.91:1 Open Graph card). Montserrat Black/Bold/Regular, WCAG AAA text, no Japanese glyphs in the art. Live preview, adjustable film grain and pattern strength, Omakase randomize, named TOML presets, non-blocking 2K/4K PNG + SVG export. Preview and exports rasterize the same SVG via resvg. CI runs fmt, clippy, tests and coverage.
0 parents  commit 1dae29e

46 files changed

Lines changed: 9572 additions & 0 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/ci.yml

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main, develop]
6+
paths-ignore: ["**.md", "docs/**", "assets/icons/**"]
7+
pull_request:
8+
workflow_dispatch:
9+
10+
env:
11+
CARGO_TERM_COLOR: always
12+
CARGO_INCREMENTAL: "0"
13+
14+
jobs:
15+
quality:
16+
name: Format · Clippy · Test
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@v4
20+
21+
- name: Install slint build dependencies
22+
run: |
23+
sudo apt-get update
24+
sudo apt-get install -y \
25+
libxkbcommon-dev libwayland-dev wayland-protocols \
26+
libxcb1-dev libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev \
27+
libfontconfig1-dev libgl1-mesa-dev
28+
29+
- name: Install Rust toolchain
30+
uses: dtolnay/rust-toolchain@stable
31+
with:
32+
components: rustfmt, clippy
33+
34+
- uses: Swatinem/rust-cache@v2
35+
36+
- name: Format
37+
run: cargo fmt --all --check
38+
39+
- name: Clippy
40+
run: cargo clippy --all-targets -- -D warnings
41+
42+
- name: Test
43+
run: cargo test
44+
45+
coverage:
46+
name: Coverage (core ≥ 80%)
47+
# The instrumented build is the most expensive job, so only run it where it
48+
# matters: pull requests and pushes to main (not on every develop push).
49+
if: github.event_name != 'push' || github.ref == 'refs/heads/main'
50+
runs-on: ubuntu-latest
51+
steps:
52+
- uses: actions/checkout@v4
53+
54+
- name: Install slint build dependencies
55+
run: |
56+
sudo apt-get update
57+
sudo apt-get install -y \
58+
libxkbcommon-dev libwayland-dev wayland-protocols \
59+
libxcb1-dev libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev \
60+
libfontconfig1-dev libgl1-mesa-dev
61+
62+
- name: Install Rust toolchain
63+
uses: dtolnay/rust-toolchain@stable
64+
with:
65+
components: llvm-tools-preview
66+
67+
- uses: Swatinem/rust-cache@v2
68+
69+
- name: Install cargo-llvm-cov
70+
uses: taiki-e/install-action@v2
71+
with:
72+
tool: cargo-llvm-cov
73+
74+
- name: Library coverage (fail under 80% lines)
75+
run: cargo llvm-cov --lib --fail-under-lines 80

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/target
2+
**/*.rs.bk
3+
*.pdb

0 commit comments

Comments
 (0)