No description
Find a file
aiongg f8f8829cc7
Some checks failed
AI model / ai-core (push) Has been cancelled
Atomic file writes / atomic (push) Has been cancelled
Shared CRW / CRW lint and tests (ubuntu-latest) (push) Has been cancelled
Shared CRW / CRW lint and tests (windows-latest) (push) Has been cancelled
Shared CRW / CRW WASM (push) Has been cancelled
Shared CRW / CRW sample files decode exactly (push) Has been cancelled
Dialogs / dialogs (push) Has been cancelled
Document paths / docpath (push) Has been cancelled
Translations / i18n (push) Has been cancelled
Shared JPEG / JPEG lint, tests, WASM (push) Has been cancelled
Keymap / Keymap (Linux) (push) Has been cancelled
Keymap / Keymap () (push) Has been cancelled
Keymap / Keymap WASM (push) Has been cancelled
Shared media / Media lint, feature sets, WASM (push) Has been cancelled
Shared media / Media tests with ffmpeg oracles (push) Has been cancelled
Shared PDF / PDF () (push) Has been cancelled
Shared PDF / PDF vendored contracts (push) Has been cancelled
Shared PDF / PDF WASM runtime (push) Has been cancelled
Shared PDF / Plate tests and craft-prepress (push) Has been cancelled
Print spooler / print (push) Has been cancelled
SonarCloud / sonarcloud (push) Has been cancelled
Shared UI / UI () (push) Has been cancelled
Shared UI / UI WASM (push) Has been cancelled
App updates / update (push) Has been cancelled
Window decorations / window (push) Has been cancelled
Merge pull request #463 from dotCooCoo/fix/keymap-intl-backslash-key
keymap: the ISO key next to left Shift can be bound to shortcuts
2026-10-31 23:42:00 -04:00
.github fixup(crw): trim shipped derivation artifacts 2026-10-30 22:41:55 -04:00
crates Merge pull request #463 from dotCooCoo/fix/keymap-intl-backslash-key 2026-10-31 23:42:00 -04:00
docs keymap: test the UK ISO key; the Turkish Q item applies to Windows and Linux 2026-11-01 03:31:51 +00:00
licenses craft-ui: interface fonts, text direction, IME composer, localized widgets and screen testing 2026-10-25 19:08:59 +00:00
scripts craft-crw: Canon CRW (CIFF) raw decoder, moved from LightCraft with its clean-room record 2026-10-26 08:20:01 -06:00
vendor krilla: CMYK, gray and spot colors keep their exact inks (patch 17) (#417) 2026-10-31 23:30:23 -04:00
.coderabbit.yaml Skip CodeRabbit reviews on Dependabot PRs (#195) 2026-10-20 11:41:43 -04:00
.gitattributes plate-test: keep short arrays and objects on one line in the scene files 2026-10-20 03:51:04 +00:00
.gitignore fix(hayro-syntax): read full /W[0] xref entry type width (#241) 2026-10-23 11:14:16 -04:00
AGENTS.md docs: tidy AGENTS.md and clean-room doc 2026-10-31 04:17:35 +00:00
ATTRIBUTION.md crw: keep the format record, drop the derivation trail 2026-10-26 17:40:25 -04:00
Cargo.lock update: CheckResultDialog shows the result of a manual update check 2026-10-31 04:39:40 +00:00
Cargo.toml Merge branch 'main' into clean-room-crw-format-decode 2026-10-28 22:10:33 -04:00
CLAUDE.md Enforce Rust coding standards via Clippy (#372) 2026-10-27 13:49:38 -04:00
clippy.toml Enforce Rust coding standards via Clippy (#372) 2026-10-27 13:49:38 -04:00
LICENSE-APACHE Rust workspace and MIT OR Apache-2.0 license (#1) 2026-10-09 12:02:40 -04:00
LICENSE-MIT Rust workspace and MIT OR Apache-2.0 license (#1) 2026-10-09 12:02:40 -04:00
NOTICE fixup(crw): trim shipped derivation artifacts 2026-10-30 22:41:55 -04:00
README.md Merge branch 'main' into clean-room-crw-format-decode 2026-10-28 22:10:33 -04:00
rustfmt.toml Rust workspace and MIT OR Apache-2.0 license (#1) 2026-10-09 12:02:40 -04:00
sonar-project.properties Share browser download resource ownership (#226) 2026-10-22 20:49:41 +02:00

Craft App Libraries

Scanned by SonarCloud

This repo contains libraries used by the various Craft Apps. It's a Rust monorepo workspace, and the libraries can be included by any Craft Apps that need them.

In the future this may grow to include non-Rust library code.

If any libraries grow beyond Craft App usage, eg. RAW format support, they may be promoted out and into their own libraries for the broader ecosystem to take advantage of.

Layout

A Cargo workspace (edition 2024, resolver 3). Each library is a crate under crates/<name>, named craft-<name>, with version, edition, license and repository inherited from the workspace (license.workspace = true, and so on) and [lints] workspace = true. Register each crate in [workspace.dependencies] in the root Cargo.toml.

Apps depend on a crate by git:

craft-<name> = { git = "https://github.com/storytold/craft-libs", rev = "<commit>" }

Libraries

  • craft-platform: optional native dialog lifecycle, Linux/BSD desktop appearance observation and browser download ownership; application policy stays in the apps.

  • craft-ai-core: the data model and contract for AI in the Craft Apps (connections, models, tools, requests, jobs, consent, history, route spec). Pure, no I/O, wasm-safe. Contract in docs/ai-shared-layer.md.

  • craft-pdf: independently optional PDF parsing, interpretation, rasterization and guarded authoring. Apps retain layout, fonts, editing and export policy; writer-only consumers do not enable the shared reader.

  • craft-atomic: Crash-safe atomic file writing and replacement with same-directory staging, directory fsync, Apple F_FULLFSYNC fallback, transient lock backoff, and fault injection for the Craft suite.

  • craft-cms: pure-Rust ICC v2/v4 colour management: profile parsing and writing, transforms, rendering intents, black point compensation, soft proofing, gamut checks, 3D LUTs and built-in profiles (sRGB, Display P3, synthetic coated CMYK and others).

  • craft-crw: clean-room Canon CRW (CIFF) raw decoder, from LightCraft: the heap container, the entropy coding derived by black-box analysis (frozen code tables), sensor black and white levels and as-shot white balance. The complete derivation record (plan, sources log, scripts, verification) is in crates/crw/clean-room/. Colour stays in each app.

  • craft-dialogs: native file and message dialogs that never block the event loop: queued requests shown at the end of the frame and answered on a later frame, free-standing Open and Folder panels and Save sheets on macOS, case-insensitive filters. What to do with the answer stays in each app.

  • craft-docpath: decides whether a path or file: URL stored in a document may be opened. Paths stored in documents are followed only when they are local or on the document's own network share; other network paths, device paths and non-file URLs are refused.

  • craft-font-catalog: the installed fonts on every platform (font folders, fontconfig and Flatpak host folders, CoreText, DirectWrite, the font store), lookup by family, style, localized, legacy, full and PostScript names, family loads shared between threads, and rescans when fonts are installed or removed.

  • craft-font-manager: Craft Font Manager as a library: search and filters over the Google Fonts index, installed fonts by family, the font store interface, and (egui feature) FontsPanel, the whole interface as one panel for the launcher's Fonts tab and the standalone app.

  • craft-font-store: the suite's font store: the pinned Google Fonts and Noto indexes plus indexes the user adds (never curated), exact lookup by family and style or PostScript name, and installs from each source's URLs (jsDelivr, then raw GitHub) checked by size, sha256 and parsing, with the licence, a manifest, and removal. Off until the user turns downloading on; agents can't.

  • craft-fonts-build: embeds the optional craft-fonts faces from an app's build.rs (CRAFT_FONTS_DIR, CRAFT_FONTS_REQUIRED, script filters) as a table of EmbeddedFaces. No dependencies; the app picks the faces.

  • craft-i18n: translations over the embedded craft-i18n catalogs: lookup with fallback (pt-br → pt → English), plurals, language names, the system locale and a pseudo locale. The catalogs stay a fully optional build input; apps keep tl! and their language setting.

  • craft-jpeg: clean-room decoder for 12-bit and arithmetic-coded JPEG (T.81 SOF0/SOF1 at 12 bits, SOF9, SOF10), from PhotoCraft, and a frame probe for routing. Metadata stays in each app.

  • craft-keymap: keyboard bindings: chords and their text forms, scopes, conflicts, user overrides stored through craft-settings and import of other applications' shortcut sets. Command catalogs, file readers and the shortcut editor UI stay in each app.

  • craft-media: bit-level I/O (bitstream), clean-room MP4/MOV (isobmff) and Matroska/WebM (matroska) demuxers and muxers, from FilmCraft, and an ISO BMFF box reader. Containers only; codecs stay in each app.

  • craft-menu: an app's menus as a macOS menu bar: the Mac layout (app menu, Window, Help, system-key clashes), a platform backend trait, and key equivalents fed back to egui as the input egui-winit would have made. Commands and their enabled state stay in each app.

  • craft-print: PDF submission to CUPS and Windows, printer discovery, duplex/copies/colour and driver preferences. PDF generation stays in each app.

  • craft-quit: native macOS quit, egui close handling and an optional app menu. Unsaved-document decisions and save prompts stay in each app.

  • craft-settings: config.toml settings storage for every app: platform folders, portable mode and overrides, atomic saves while running, backup, damaged-file recovery and schema migrations. Policy in docs/settings-storage.md.

  • craft-text: text processing below the composer. Its hyphen module finds hyphenation points, with a bundled US English dictionary and patterns and optional hypher patterns for 47 more languages (one cargo feature each).

  • craft-ui: SVG catalogs, icon buttons, tabs, pane controls, transactional docking, print settings and theme helpers for egui frontends; assets, themes, localization and command handling stay in each app. Requires Rust 1.95 or later.

  • Shared UI component audit: source inventory, extraction priorities and compatibility boundaries across the Craft suite.

  • Theme infrastructure: eight-app comparison and the small shared widget-state styling boundary.

  • Panel docking: validated panel moves, floating groups, workspace adapters and an optional egui docking surface.

License and credits

craft-libs is dual-licensed under MIT or Apache-2.0, at your option. Copyright (c) 2026 ArtCraft Team and the craft-libs contributors. Required notices are in NOTICE.

Bundled fonts, icons, images and other assets keep their own open licenses; each one is listed with its author, source and license in ATTRIBUTION.md.