No description
Find a file
skylar taylor-barrick b1401e33b1
Some checks failed
AI model / ai-core (macos-latest) (push) Has been cancelled
AI model / ai-core (ubuntu-latest) (push) Has been cancelled
AI model / ai-core (windows-latest) (push) Has been cancelled
Atomic file writes / atomic (macos-latest) (push) Has been cancelled
Atomic file writes / atomic (ubuntu-latest) (push) Has been cancelled
Atomic file writes / atomic (windows-latest) (push) Has been cancelled
Document paths / docpath (macos-latest) (push) Has been cancelled
Document paths / docpath (ubuntu-latest) (push) Has been cancelled
Document paths / docpath (windows-latest) (push) Has been cancelled
Translations / i18n (macos-latest) (push) Has been cancelled
Translations / i18n (ubuntu-latest) (push) Has been cancelled
Translations / i18n (windows-latest) (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 (macos-latest) (push) Has been cancelled
Shared PDF / PDF (ubuntu-latest) (push) Has been cancelled
Shared PDF / PDF (windows-latest) (push) Has been cancelled
Shared PDF / PDF vendored contracts (push) Has been cancelled
Shared PDF / PDF WASM runtime (push) Has been cancelled
Print spooler / print (macos-latest) (push) Has been cancelled
Print spooler / print (ubuntu-latest) (push) Has been cancelled
Print spooler / print (windows-latest) (push) Has been cancelled
SonarCloud / sonarcloud (push) Has been cancelled
Shared UI / UI (macos-latest) (push) Has been cancelled
Shared UI / UI (ubuntu-latest) (push) Has been cancelled
Shared UI / UI (windows-latest) (push) Has been cancelled
Shared UI / UI WASM (push) Has been cancelled
Window decorations / window (macos-latest) (push) Has been cancelled
Window decorations / window (ubuntu-latest) (push) Has been cancelled
Window decorations / window (windows-latest) (push) Has been cancelled
Share browser download resource ownership (#226)
Add opt-in browser download helpers that own detached links and object URLs, clean up failed or abandoned preparation, and register delayed URL cleanup before issuing a click. Applications retain filename, MIME type, pacing, and user-activation policy.

Include browser lifecycle and failure-path tests, public API documentation, and Sonar test-source classification. All 32 PR checks passed; targeted WASM Clippy and formatting passed in local validation.
2026-10-22 20:49:41 +02:00
.github ci: pin GitHub Actions to full commit SHA (SonarCloud githubactions:S7637) (#228) 2026-10-21 20:14:01 -04:00
crates Share browser download resource ownership (#226) 2026-10-22 20:49:41 +02:00
docs craft-ai-core: rename from craft-ai-model; lapse each kind of consent on its own; keep models found at a new address 2026-10-15 20:06:57 +01:00
licenses feat(pdf): share patched reading and rasterization 2026-10-13 12:52:32 -06:00
scripts test(pdf): pin extraction policy and retry fixtures (PDFR) 2026-10-13 13:24:54 -06:00
vendor hayro-jbig2: cap long-form referred-to segment count (#176) 2026-10-22 13:10:36 -04:00
.coderabbit.yaml Skip CodeRabbit reviews on Dependabot PRs (#195) 2026-10-20 11:41:43 -04:00
.gitignore Add craft-quit: quit macOS apps through NSApplication terminate: 2026-10-11 18:47:11 -04:00
AGENTS.md Rust workspace and MIT OR Apache-2.0 license (#1) 2026-10-09 12:02:40 -04:00
ATTRIBUTION.md feat(pdf): share patched reading and rasterization 2026-10-13 12:52:32 -06:00
Cargo.lock Share browser download resource ownership (#226) 2026-10-22 20:49:41 +02:00
Cargo.toml Add craft-platform with shared native dialog lifecycle helpers (#224) 2026-10-22 10:13:08 -04:00
CLAUDE.md Rust workspace and MIT OR Apache-2.0 license (#1) 2026-10-09 12:02:40 -04:00
clippy.toml Rust workspace and MIT OR Apache-2.0 license (#1) 2026-10-09 12:02:40 -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 Share browser download resource ownership (#226) 2026-10-22 20:49:41 +02:00
README.md Share browser download resource ownership (#226) 2026-10-22 20:49:41 +02: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-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-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-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-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-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.