diff --git a/.github/workflows/ai-core.yml b/.github/workflows/ai-core.yml index cc8d738ac..af0429a73 100644 --- a/.github/workflows/ai-core.yml +++ b/.github/workflows/ai-core.yml @@ -39,6 +39,11 @@ jobs: targets: wasm32-unknown-unknown - run: cargo fmt --check - run: cargo clippy -p craft-ai-core --all-targets --locked -- -D warnings + - name: Docs (links and missing docs) + if: runner.os == 'Linux' + run: cargo doc -p craft-ai-core --no-deps --locked + env: + RUSTDOCFLAGS: -D warnings - run: cargo test -p craft-ai-core --locked # The model promises to compile for the web. - run: cargo check -p craft-ai-core --target wasm32-unknown-unknown --locked diff --git a/.github/workflows/atomic.yml b/.github/workflows/atomic.yml index 1471832d2..1ec4d1f95 100644 --- a/.github/workflows/atomic.yml +++ b/.github/workflows/atomic.yml @@ -41,6 +41,11 @@ jobs: run: sudo apt-get update && sudo apt-get install -y acl - run: cargo fmt --check - run: cargo clippy -p craft-atomic -p craft-settings --all-targets --locked -- -D warnings + - name: Docs (links and missing docs) + if: runner.os == 'Linux' + run: cargo doc -p craft-atomic -p craft-settings --no-deps --locked + env: + RUSTDOCFLAGS: -D warnings - run: cargo test -p craft-atomic -p craft-settings --locked -- --nocapture - name: Check inherited Linux ACLs if: runner.os == 'Linux' diff --git a/.github/workflows/crw.yml b/.github/workflows/crw.yml index 8fec98661..07f50566d 100644 --- a/.github/workflows/crw.yml +++ b/.github/workflows/crw.yml @@ -45,6 +45,11 @@ jobs: save-if: ${{ github.ref == 'refs/heads/main' }} - run: cargo fmt -p craft-crw --check - run: cargo clippy -p craft-crw --all-targets --locked -- -D warnings + - name: Docs (links and missing docs) + if: runner.os == 'Linux' + run: cargo doc -p craft-crw --no-deps --locked + env: + RUSTDOCFLAGS: -D warnings - run: cargo test -p craft-crw --locked wasm: @@ -95,7 +100,7 @@ jobs: key: crw-samples-${{ hashFiles('crates/crw/tests/samples.json') }} - name: Fetch the pinned CC0 sample files (raw.pixls.us) run: python scripts/fetch-crw-samples.py "$RUNNER_TEMP/crw-samples" - - run: cargo test -p craft-crw --release --locked --test samples -- --nocapture + - run: cargo test -p craft-crw --release --locked --lib -- integration::samples --nocapture env: CRAFT_CRW_SAMPLES: ${{ runner.temp }}/crw-samples CRAFT_CRW_REQUIRE_SAMPLES: "1" diff --git a/.github/workflows/dialogs.yml b/.github/workflows/dialogs.yml index 97a931aec..8905f8139 100644 --- a/.github/workflows/dialogs.yml +++ b/.github/workflows/dialogs.yml @@ -39,4 +39,8 @@ jobs: targets: aarch64-apple-darwin - run: cargo clippy -p craft-dialogs --all-targets --locked -- -D warnings - run: cargo clippy -p craft-dialogs --target aarch64-apple-darwin --locked -- -D warnings + - name: Docs (links and missing docs) + run: cargo doc -p craft-dialogs --no-deps --locked + env: + RUSTDOCFLAGS: -D warnings - run: cargo test -p craft-dialogs --locked diff --git a/.github/workflows/doc.yml b/.github/workflows/doc.yml index a0c619c1e..2073fcd75 100644 --- a/.github/workflows/doc.yml +++ b/.github/workflows/doc.yml @@ -42,6 +42,11 @@ jobs: - run: cargo fmt --check - run: cargo clippy -p craft-doc --all-targets --locked -- -D warnings - run: cargo clippy -p craft-doc --all-targets --all-features --locked -- -D warnings + - name: Docs (links and missing docs) + if: runner.os == 'Linux' + run: cargo doc -p craft-doc --all-features --no-deps --locked + env: + RUSTDOCFLAGS: -D warnings - run: cargo test -p craft-doc --locked -- --nocapture - run: cargo test -p craft-doc --all-features --locked -- --nocapture - run: cargo check -p craft-doc --all-features --locked --target wasm32-unknown-unknown diff --git a/.github/workflows/docpath.yml b/.github/workflows/docpath.yml index 571b65eca..95271ef25 100644 --- a/.github/workflows/docpath.yml +++ b/.github/workflows/docpath.yml @@ -38,4 +38,9 @@ jobs: components: rustfmt, clippy - run: cargo fmt --check - run: cargo clippy -p craft-docpath --all-targets --locked -- -D warnings + - name: Docs (links and missing docs) + if: runner.os == 'Linux' + run: cargo doc -p craft-docpath --no-deps --locked + env: + RUSTDOCFLAGS: -D warnings - run: cargo test -p craft-docpath --locked -- --nocapture diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml new file mode 100644 index 000000000..2207b16dd --- /dev/null +++ b/.github/workflows/docs.yml @@ -0,0 +1,33 @@ +name: Docs + +# Builds the documentation of every workspace crate with warnings as errors, so a public item +# without a doc comment or a broken doc link fails, including crates no other workflow covers. + +on: + workflow_dispatch: + push: + branches: [main] + paths: ['crates/**', 'Cargo.toml', 'Cargo.lock', '.github/workflows/docs.yml'] + pull_request: + paths: ['crates/**', 'Cargo.toml', 'Cargo.lock', '.github/workflows/docs.yml'] + +permissions: + contents: read + +jobs: + docs: + timeout-minutes: 30 + name: Workspace docs + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v7 + with: + # The token isn't needed after checkout; cargo runs build scripts and proc macros from + # dependencies, so don't leave it in .git/config for that third-party code to read. + persist-credentials: false + - uses: dtolnay/rust-toolchain@b725eda525362e7cf34af9a7243cac1e3f01a7ec # stable + - uses: Swatinem/rust-cache@d1527c8f67ef9af357290475d4af4b0fab8f12e0 # v2.9.3 + - name: Docs (links and missing docs) + run: cargo doc --workspace --no-deps --locked + env: + RUSTDOCFLAGS: -D warnings diff --git a/.github/workflows/ecproj-format.yml b/.github/workflows/ecproj-format.yml index 16bab05c7..b2f5372e5 100644 --- a/.github/workflows/ecproj-format.yml +++ b/.github/workflows/ecproj-format.yml @@ -41,5 +41,10 @@ jobs: targets: wasm32-unknown-unknown - run: cargo fmt --check - run: cargo clippy -p craft-ecproj-format --all-targets --locked -- -D warnings + - name: Docs (links and missing docs) + if: runner.os == 'Linux' + run: cargo doc -p craft-ecproj-format --no-deps --locked + env: + RUSTDOCFLAGS: -D warnings - run: cargo test -p craft-ecproj-format --locked -- --nocapture - run: cargo check -p craft-ecproj-format --locked --target wasm32-unknown-unknown diff --git a/.github/workflows/font-store.yml b/.github/workflows/font-store.yml index f246f621a..5122764a4 100644 --- a/.github/workflows/font-store.yml +++ b/.github/workflows/font-store.yml @@ -39,6 +39,11 @@ jobs: targets: wasm32-unknown-unknown - run: cargo fmt --check - run: cargo clippy -p craft-font-store --all-targets --locked -- -D warnings + - name: Docs (links and missing docs) + if: runner.os == 'Linux' + run: cargo doc -p craft-font-store --no-deps --locked + env: + RUSTDOCFLAGS: -D warnings - run: cargo test -p craft-font-store --locked - run: cargo clippy -p craft-font-catalog --all-targets --locked -- -D warnings - run: cargo test -p craft-font-catalog --locked diff --git a/.github/workflows/i18n.yml b/.github/workflows/i18n.yml index 5f717aeff..a6a5a8c3e 100644 --- a/.github/workflows/i18n.yml +++ b/.github/workflows/i18n.yml @@ -38,4 +38,9 @@ jobs: components: rustfmt, clippy - run: cargo fmt --check - run: cargo clippy -p craft-i18n --all-targets --features collate --locked -- -D warnings + - name: Docs (links and missing docs) + if: runner.os == 'Linux' + run: cargo doc -p craft-i18n --no-deps --locked + env: + RUSTDOCFLAGS: -D warnings - run: cargo test -p craft-i18n --features collate --locked -- --nocapture diff --git a/.github/workflows/jpeg.yml b/.github/workflows/jpeg.yml index 900baf678..e093bc5cb 100644 --- a/.github/workflows/jpeg.yml +++ b/.github/workflows/jpeg.yml @@ -42,5 +42,9 @@ jobs: save-if: ${{ github.ref == 'refs/heads/main' }} - run: cargo fmt -p craft-jpeg --check - run: cargo clippy -p craft-jpeg --all-targets --locked -- -D warnings + - name: Docs (links and missing docs) + run: cargo doc -p craft-jpeg --no-deps --locked + env: + RUSTDOCFLAGS: -D warnings - run: cargo test -p craft-jpeg --locked - run: cargo check -p craft-jpeg --locked --target wasm32-unknown-unknown diff --git a/.github/workflows/keymap.yml b/.github/workflows/keymap.yml index aba535265..bf30b0b38 100644 --- a/.github/workflows/keymap.yml +++ b/.github/workflows/keymap.yml @@ -3,9 +3,9 @@ name: Keymap on: push: branches: [main] - paths: ["crates/keymap/**", "crates/settings/**", "crates/ui/**", "crates/i18n/**", "Cargo.toml", "Cargo.lock", ".github/workflows/keymap.yml"] + paths: ["crates/keymap/**", "crates/settings/**", "crates/ui/**", "crates/ui-contract/**", "crates/ui-widgets/**", "crates/ui-panels/**", "crates/ui-canvas/**", "crates/ui-patterns/**", "crates/ui-shell/**", "crates/i18n/**", "Cargo.toml", "Cargo.lock", ".github/workflows/keymap.yml"] pull_request: - paths: ["crates/keymap/**", "crates/settings/**", "crates/ui/**", "crates/i18n/**", "Cargo.toml", "Cargo.lock", ".github/workflows/keymap.yml"] + paths: ["crates/keymap/**", "crates/settings/**", "crates/ui/**", "crates/ui-contract/**", "crates/ui-widgets/**", "crates/ui-panels/**", "crates/ui-canvas/**", "crates/ui-patterns/**", "crates/ui-shell/**", "crates/i18n/**", "Cargo.toml", "Cargo.lock", ".github/workflows/keymap.yml"] workflow_dispatch: permissions: @@ -50,9 +50,13 @@ jobs: save-if: ${{ github.ref == 'refs/heads/main' }} - run: cargo fmt -p craft-keymap --check - run: cargo clippy -p craft-keymap --all-targets --no-default-features --locked -- -D warnings - # `snapshot` covers `ui` and `egui` and compiles the dialog screenshots, which need a GPU + # `screen-testing` covers `ui` and compiles the dialog screenshots, which need a GPU # to run, so the test steps leave them out. - - run: cargo clippy -p craft-keymap --all-targets --features snapshot --locked -- -D warnings + - run: cargo clippy -p craft-keymap --all-targets --features screen-testing --locked -- -D warnings + - name: Docs (links and missing docs) + run: cargo doc -p craft-keymap --no-deps --locked + env: + RUSTDOCFLAGS: -D warnings # Doctests run once, in the `ui` step. - name: Test core run: cargo test -p craft-keymap --no-default-features --lib --tests --locked diff --git a/.github/workflows/media.yml b/.github/workflows/media.yml index cb3912d54..c4628e6b1 100644 --- a/.github/workflows/media.yml +++ b/.github/workflows/media.yml @@ -49,6 +49,10 @@ jobs: - run: cargo clippy -p craft-media --all-targets --locked --all-features -- -D warnings - run: cargo clippy -p craft-media-testkit --all-targets --locked -- -D warnings - run: cargo clippy -p craft-media --all-targets --locked --no-default-features --features serde -- -D warnings + - name: Docs (links and missing docs) + run: cargo doc -p craft-media -p craft-media-testkit --all-features --no-deps --locked + env: + RUSTDOCFLAGS: -D warnings - run: cargo check -p craft-media --all-features --locked --target wasm32-unknown-unknown test: timeout-minutes: 15 diff --git a/.github/workflows/pcraft-format.yml b/.github/workflows/pcraft-format.yml index 177bb4593..c08af15b3 100644 --- a/.github/workflows/pcraft-format.yml +++ b/.github/workflows/pcraft-format.yml @@ -41,5 +41,10 @@ jobs: targets: wasm32-unknown-unknown - run: cargo fmt --check - run: cargo clippy -p craft-pcraft-format --all-targets --locked -- -D warnings + - name: Docs (links and missing docs) + if: runner.os == 'Linux' + run: cargo doc -p craft-pcraft-format --no-deps --locked + env: + RUSTDOCFLAGS: -D warnings - run: cargo test -p craft-pcraft-format --locked -- --nocapture - run: cargo check -p craft-pcraft-format --locked --target wasm32-unknown-unknown diff --git a/.github/workflows/pdf.yml b/.github/workflows/pdf.yml index c72ac7f72..929a8705f 100644 --- a/.github/workflows/pdf.yml +++ b/.github/workflows/pdf.yml @@ -54,6 +54,11 @@ jobs: echo "CRAFT_PDF_TEST_FONT_DIR=$RUNNER_TEMP/craft-pdf-test-fonts" >> "$GITHUB_ENV" - run: cargo fmt --check - run: cargo clippy -p craft-pdf --all-targets --all-features --locked -- -D warnings + - name: Docs (links and missing docs) + if: runner.os == 'Linux' + run: cargo doc -p craft-pdf --all-features --no-deps --locked + env: + RUSTDOCFLAGS: -D warnings - run: cargo test -p craft-pdf --all-features --locked - run: cargo test --manifest-path crates/pdf/read-only-contract/Cargo.toml --locked backends: diff --git a/.github/workflows/print.yml b/.github/workflows/print.yml index 3838e6c42..91dba463d 100644 --- a/.github/workflows/print.yml +++ b/.github/workflows/print.yml @@ -34,6 +34,11 @@ jobs: components: rustfmt, clippy - run: cargo fmt --check - run: cargo clippy -p craft-print --all-targets -- -D warnings + - name: Docs (links and missing docs) + if: runner.os == 'Linux' + run: cargo doc -p craft-print --no-deps --locked + env: + RUSTDOCFLAGS: -D warnings - name: Prepare the Windows test driver if: runner.os == 'Windows' shell: powershell diff --git a/.github/workflows/theme.yml b/.github/workflows/theme.yml new file mode 100644 index 000000000..a79e21e82 --- /dev/null +++ b/.github/workflows/theme.yml @@ -0,0 +1,42 @@ +name: Suite themes + +on: + workflow_dispatch: + push: + branches: [main] + paths: ['crates/theme/**', 'crates/theme-store/**', 'crates/atomic/**', 'Cargo.toml', 'Cargo.lock', '.github/workflows/theme.yml'] + pull_request: + paths: ['crates/theme/**', 'crates/theme-store/**', 'crates/atomic/**', 'Cargo.toml', 'Cargo.lock', '.github/workflows/theme.yml'] + +permissions: + contents: read + +jobs: + theme: + timeout-minutes: 15 + name: Theme lint, tests, WASM + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v7 + with: + # The token isn't needed after checkout; cargo runs build scripts and proc macros from + # dependencies, so don't leave it in .git/config for that third-party code to read. + persist-credentials: false + - uses: dtolnay/rust-toolchain@b725eda525362e7cf34af9a7243cac1e3f01a7ec # stable + with: + components: rustfmt, clippy + targets: wasm32-unknown-unknown + - run: cargo fmt -p craft-theme --check + - run: cargo clippy -p craft-theme --all-targets --all-features --locked -- -D warnings + - run: cargo clippy -p craft-theme --all-targets --locked -- -D warnings + - run: cargo test -p craft-theme --all-features --locked + - run: cargo check -p craft-theme --all-features --locked --target wasm32-unknown-unknown + - run: cargo check -p craft-ui --lib --locked + - run: cargo fmt -p craft-theme-store --check + - run: cargo clippy -p craft-theme-store --all-targets --all-features --locked -- -D warnings + - name: Docs (links and missing docs) + run: cargo doc -p craft-theme -p craft-theme-store --all-features --no-deps --locked + env: + RUSTDOCFLAGS: -D warnings + - run: cargo test -p craft-theme-store --all-features --locked + - run: cargo check -p craft-theme-store --all-features --locked --target wasm32-unknown-unknown diff --git a/.github/workflows/ui.yml b/.github/workflows/ui.yml index 0892f5a2c..a70fe03c7 100644 --- a/.github/workflows/ui.yml +++ b/.github/workflows/ui.yml @@ -3,9 +3,9 @@ name: Shared UI on: push: branches: [main] - paths: ["crates/ui/**", "crates/i18n/**", "Cargo.toml", "Cargo.lock", ".github/workflows/ui.yml"] + paths: ["crates/ui/**", "crates/ui-contract/**", "crates/ui-widgets/**", "crates/ui-panels/**", "crates/ui-canvas/**", "crates/ui-patterns/**", "crates/ui-shell/**", "crates/ui-macros/**", "crates/i18n/**", "Cargo.toml", "Cargo.lock", ".github/workflows/ui.yml"] pull_request: - paths: ["crates/ui/**", "crates/i18n/**", "Cargo.toml", "Cargo.lock", ".github/workflows/ui.yml"] + paths: ["crates/ui/**", "crates/ui-contract/**", "crates/ui-widgets/**", "crates/ui-panels/**", "crates/ui-canvas/**", "crates/ui-patterns/**", "crates/ui-shell/**", "crates/ui-macros/**", "crates/i18n/**", "Cargo.toml", "Cargo.lock", ".github/workflows/ui.yml"] workflow_dispatch: permissions: @@ -49,10 +49,15 @@ jobs: key: craft-ui save-if: ${{ github.ref == 'refs/heads/main' }} - run: cargo fmt --check - - run: cargo clippy -p craft-ui --all-targets --locked -- -D warnings - - run: cargo clippy -p craft-ui --all-targets --all-features --locked -- -D warnings - - run: cargo test -p craft-ui --locked - - run: cargo test -p craft-ui --all-features --locked + - run: cargo clippy -p craft-ui -p craft-ui-contract -p craft-ui-widgets -p craft-ui-panels -p craft-ui-canvas -p craft-ui-patterns -p craft-ui-shell --all-targets --locked -- -D warnings + - run: cargo clippy -p craft-ui -p craft-ui-contract -p craft-ui-widgets -p craft-ui-panels -p craft-ui-canvas -p craft-ui-patterns -p craft-ui-shell --all-targets --all-features --locked -- -D warnings + - name: Docs (links and missing docs) + if: runner.os == 'Linux' + run: cargo doc -p craft-ui -p craft-ui-contract -p craft-ui-widgets -p craft-ui-panels -p craft-ui-canvas -p craft-ui-patterns -p craft-ui-shell --all-features --no-deps --locked + env: + RUSTDOCFLAGS: -D warnings + - run: cargo test -p craft-ui -p craft-ui-contract -p craft-ui-widgets -p craft-ui-panels -p craft-ui-canvas -p craft-ui-patterns -p craft-ui-shell --locked + - run: cargo test -p craft-ui -p craft-ui-contract -p craft-ui-widgets -p craft-ui-panels -p craft-ui-canvas -p craft-ui-patterns -p craft-ui-shell --all-features --locked wasm: timeout-minutes: 15 name: UI WASM diff --git a/.github/workflows/update.yml b/.github/workflows/update.yml index f9c8e1498..dd6f2df69 100644 --- a/.github/workflows/update.yml +++ b/.github/workflows/update.yml @@ -41,8 +41,13 @@ jobs: toolchain: stable components: rustfmt, clippy - run: cargo fmt --check - # Default (no egui) and the egui feature both build and lint cleanly. + # Default (no egui) and the ui feature both build and lint cleanly. - run: cargo clippy -p craft-update --all-targets --locked -- -D warnings - - run: cargo clippy -p craft-update --all-targets --locked --features egui -- -D warnings + - run: cargo clippy -p craft-update --all-targets --locked --features ui -- -D warnings + - name: Docs (links and missing docs) + if: runner.os == 'Linux' + run: cargo doc -p craft-update --no-deps --locked + env: + RUSTDOCFLAGS: -D warnings - run: cargo test -p craft-update --locked -- --nocapture - - run: cargo test -p craft-update --locked --features egui -- --nocapture + - run: cargo test -p craft-update --locked --features ui -- --nocapture diff --git a/.github/workflows/vectorcraft-format.yml b/.github/workflows/vectorcraft-format.yml index b2b20463a..b4bf73721 100644 --- a/.github/workflows/vectorcraft-format.yml +++ b/.github/workflows/vectorcraft-format.yml @@ -41,5 +41,10 @@ jobs: targets: wasm32-unknown-unknown - run: cargo fmt --check - run: cargo clippy -p craft-vectorcraft-format --all-targets --locked -- -D warnings + - name: Docs (links and missing docs) + if: runner.os == 'Linux' + run: cargo doc -p craft-vectorcraft-format --no-deps --locked + env: + RUSTDOCFLAGS: -D warnings - run: cargo test -p craft-vectorcraft-format --locked -- --nocapture - run: cargo check -p craft-vectorcraft-format --locked --target wasm32-unknown-unknown diff --git a/.github/workflows/web-api.yml b/.github/workflows/web-api.yml index 2460fb569..1aeaaa55b 100644 --- a/.github/workflows/web-api.yml +++ b/.github/workflows/web-api.yml @@ -53,5 +53,9 @@ jobs: - run: cargo fmt --check - run: cargo clippy -p craft-web-api --all-targets --locked -- -D warnings - run: cargo clippy -p craft-web-api --all-targets --locked --target wasm32-unknown-unknown -- -D warnings + - name: Docs (links and missing docs) + run: cargo doc -p craft-web-api --no-deps --locked + env: + RUSTDOCFLAGS: -D warnings - run: cargo test -p craft-web-api --locked - run: cargo test -p craft-web-api --locked --target wasm32-unknown-unknown diff --git a/.github/workflows/web-host.yml b/.github/workflows/web-host.yml index b780ee76b..3d018acae 100644 --- a/.github/workflows/web-host.yml +++ b/.github/workflows/web-host.yml @@ -45,6 +45,10 @@ jobs: - run: cargo fmt -p craft-web-host --check - run: cargo clippy -p craft-web-host --all-targets --locked -- -D warnings - run: cargo clippy -p craft-web-host --all-targets --locked --target wasm32-unknown-unknown -- -D warnings + - name: Docs (links and missing docs) + run: cargo doc -p craft-web-host --no-deps --locked + env: + RUSTDOCFLAGS: -D warnings - run: cargo test -p craft-web-host --locked - name: Read the wasm-bindgen version from Cargo.lock id: wasm-bindgen diff --git a/.github/workflows/window.yml b/.github/workflows/window.yml index b07bce384..b920921ae 100644 --- a/.github/workflows/window.yml +++ b/.github/workflows/window.yml @@ -41,8 +41,13 @@ jobs: toolchain: stable components: rustfmt, clippy - run: cargo fmt --check - # Default (no egui) and the egui feature both build and lint cleanly. + # Default (no egui) and the ui feature both build and lint cleanly. - run: cargo clippy -p craft-window --all-targets --locked -- -D warnings - - run: cargo clippy -p craft-window --all-targets --locked --features egui -- -D warnings + - run: cargo clippy -p craft-window --all-targets --locked --features ui -- -D warnings + - name: Docs (links and missing docs) + if: runner.os == 'Linux' + run: cargo doc -p craft-window --no-deps --locked + env: + RUSTDOCFLAGS: -D warnings - run: cargo test -p craft-window --locked -- --nocapture - - run: cargo test -p craft-window --locked --features egui -- --nocapture + - run: cargo test -p craft-window --locked --features ui -- --nocapture diff --git a/ATTRIBUTION.md b/ATTRIBUTION.md index 27e9ca01b..38780f237 100644 --- a/ATTRIBUTION.md +++ b/ATTRIBUTION.md @@ -14,6 +14,8 @@ author, source and license. Library code and original assets are under the repos | `crates/cms/tests/data/FOGRA39.txt` (unmodified) | Fogra | [Fogra characterisation data](https://fogra.org/en/downloads/work-tools/characterisation-data), `FOGRA39_to_FOGRA60_v2.zip` | Fogra terms: free use and redistribution, unmodified, with Fogra identified as the source; "FOGRA39" identifies the reference data only and implies no certification, approval or endorsement by Fogra (full text in [NOTICE](NOTICE)) | | `vendor/linesweeper/tests/regression/`, `vendor/linesweeper/proptest-regressions/`, the `.snap` files under `vendor/linesweeper/src/` and the path data in `vendor/linesweeper/benches/painted_dreams.rs` (all unmodified; hashes in `vendor/linesweeper/SOURCE.json`) | As published in the package, whose manifest names Joe Neeman as author and records no other source | [linesweeper 0.5.0](https://crates.io/crates/linesweeper/0.5.0) | MIT OR Apache-2.0 (the package's `license` field) | | `crates/i18n/data/collation.postcard` | Unicode, Inc. (ICU 78.1 collation data, CLDR 48.2.1); generated by `crates/i18n/data/generate-collation.sh` | [ICU](https://github.com/unicode-org/icu/releases/tag/release-78.1rc) | Unicode-3.0 | +| `crates/i18n/data/numbers.postcard` | Unicode, Inc. (CLDR 48.2.1 decimal symbols, digits and plural rules); generated by `crates/i18n/data/generate.sh` with `icu4x-datagen` 2.3.0 | [CLDR 48.2.1](https://cldr.unicode.org/) | Unicode-3.0 | +| `crates/i18n/data/dates.postcard` | Unicode, Inc. (CLDR 48.2.1 Gregorian date and time patterns, month and weekday names, week data); generated by `crates/i18n/data/generate.sh` with `icu4x-datagen` 2.3.0 | [CLDR 48.2.1](https://cldr.unicode.org/) | Unicode-3.0 | | `crates/text/assets/hyphen/en-us.dic` | Grady Ward (Moby Hyphenator II), converted by DesignCraft | [Project Gutenberg eBook #3204](https://www.gutenberg.org/ebooks/3204) | Public domain | | `crates/proof/data/en-words.dic` | Grady Ward (Moby Hyphenator II word list); break points dropped by craft-proof contributors with `crates/proof/examples/en_words.rs` | [Project Gutenberg eBook #3204](https://www.gutenberg.org/ebooks/3204), via craft-i18n `language-data/en-us/en-us.dic` | Public domain | | `crates/proof/data/en-extra.txt` | WordCraft contributors (original list, no other dictionary copied) | craft-i18n `language-data/en-us/en-extra.txt` | MIT OR Apache-2.0 | @@ -22,9 +24,7 @@ author, source and license. Library code and original assets are under the repos | Word-break dictionaries and LSTM models embedded through `icu_segmenter_data` (optional `craft-text` features `thai`, `lao`, `khmer`, `burmese`) | Unicode, Inc. and ICU4X contributors | [ICU4X](https://github.com/unicode-org/icu4x) | Unicode-3.0 | | `crates/ui/tests/fonts/NotoSansArabic-test.ttf` (subset to the test strings, default weight set to 100, width axis dropped) | The Noto Project Authors | [google/fonts@7085eb8 `ofl/notosansarabic`](https://github.com/google/fonts/tree/7085eb89a950e85db5b166b7a58d414544b4140c/ofl/notosansarabic), via craft-fonts | OFL-1.1 (`licenses/ui-test-fonts/OFL-NotoSansArabic.txt`) | | `crates/ui/tests/fonts/NotoSansCJKsc-test.otf` (subset to the test strings) | The Noto Project Authors (Adobe, Google) | [notofonts/noto-cjk@f8d1575 `Sans/OTF/SimplifiedChinese`](https://github.com/notofonts/noto-cjk/tree/f8d157532fbfaeda587e826d4cd5b21a49186f7c/Sans/OTF/SimplifiedChinese), via craft-fonts | OFL-1.1 (`licenses/ui-test-fonts/OFL-NotoSansCJK.txt`) | -| `crates/ui/tests/fonts/NotoSansArabic-screens.ttf` (instance at weight 400 and width 100, subset to the screen test strings) | The Noto Project Authors | [google/fonts@7085eb8 `ofl/notosansarabic`](https://github.com/google/fonts/tree/7085eb89a950e85db5b166b7a58d414544b4140c/ofl/notosansarabic), via craft-fonts | OFL-1.1 (`licenses/ui-test-fonts/OFL-NotoSansArabic.txt`) | -| `crates/ui/tests/fonts/NotoSansCJKsc-screens.otf` (subset to printable ASCII and the screen test strings) | The Noto Project Authors (Adobe, Google) | [notofonts/noto-cjk@f8d1575 `Sans/OTF/SimplifiedChinese`](https://github.com/notofonts/noto-cjk/tree/f8d157532fbfaeda587e826d4cd5b21a49186f7c/Sans/OTF/SimplifiedChinese), via craft-fonts | OFL-1.1 (`licenses/ui-test-fonts/OFL-NotoSansCJK.txt`) | -| `crates/ui/tests/fonts/NotoSansThai-screens.ttf` (instance at weight 400 and width 100, subset to the screen test strings) | The Noto Project Authors | [google/fonts@8b0a1d0 `ofl/notosansthai`](https://github.com/google/fonts/tree/8b0a1d0f5983c89bc2b93f1b5fb55f9e252744b5/ofl/notosansthai), via craft-fonts | OFL-1.1 (`licenses/ui-test-fonts/OFL-NotoSansThai.txt`) | +| `crates/imaging/tests/fonts/NotoSansArabic-digits.ttf` (instance at weight 400 and width 100, subset to the Arabic-Indic digits and separators U+0660–U+066C) | The Noto Project Authors | [google/fonts@7085eb8 `ofl/notosansarabic`](https://github.com/google/fonts/tree/7085eb89a950e85db5b166b7a58d414544b4140c/ofl/notosansarabic), via craft-fonts | OFL-1.1 (`licenses/ui-test-fonts/OFL-NotoSansArabic.txt`) | | `crates/crw/tests/samples.json` (manifest only; the 11 raw files are not bundled, `scripts/fetch-crw-samples.py` downloads them outside the checkout) | The photographers who contributed each file to raw.pixls.us (Canon EOS D30, D60, 10D ×3, 300D ×2, Digital Rebel, PowerShot G1, G5, G6) | [raw.pixls.us](https://raw.pixls.us/), each file's `getfile.php` URL and SHA-256 in the manifest | CC0-1.0 (as published by raw.pixls.us for each file) | | `crates/crw/src/tables.rs`, `crates/crw/clean-room/logs/table_sel*.json` | craft-crw contributors (derived in LightCraft, 2026-10, by known-plaintext alignment of the sample files' entropy streams; `crates/crw/clean-room/02-crw-format.md`) | this repository | MIT OR Apache-2.0 | | `crates/crw/clean-room/logs/private-corpus.tsv` (file names, sizes and SHA-256 of the maintainer's own EOS D60 files; no image content) | craft-crw contributors (LightCraft derivation record) | this repository | MIT OR Apache-2.0 | diff --git a/Cargo.lock b/Cargo.lock index 6e69086f3..a7d6adb2c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -8,8 +8,6 @@ version = "0.25.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ad442f58ee04714aaa0ba0a2768c1ea1935b29507bb22ddece8cbbc76db02932" dependencies = [ - "enumn", - "serde", "uuid", ] @@ -29,17 +27,6 @@ version = "2.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "320119579fcad9c21884f5c4861d16174d0e06250625266f50fe6898340abefa" -[[package]] -name = "aes" -version = "0.9.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fc0fc36d7440d015b45468ba08a21e80e056ebbd014c611c6298bb7503e04bd1" -dependencies = [ - "cipher", - "cpubits", - "cpufeatures 0.3.1", -] - [[package]] name = "ahash" version = "0.8.12" @@ -48,39 +35,32 @@ checksum = "5a15f179cd60c4584b8a8c596927aadc462e27f2ca70c04e0071964a73ba7a75" dependencies = [ "cfg-if", "once_cell", - "serde", "version_check", "zerocopy", ] +[[package]] +name = "aho-corasick" +version = "1.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c982642fa9e8606056828ee9a8505737230110bb1099153c79efe865c59d12ba" +dependencies = [ + "memchr", +] + [[package]] name = "alloc-no-stdlib" version = "2.0.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "cc7bb162ec39d46ab1ca8c77bf72e890535becd1751bb45f64c597edb4c8c6b3" -[[package]] -name = "alloc-no-stdlib" -version = "3.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c2fb6cfd47bf496ff64095c20eaba0c201404ee38714d4142fcfa1dc334fcc7a" - [[package]] name = "alloc-stdlib" version = "0.2.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0e76a019e91224d279006ff972f1e984179a6e9feb050adba6ce8274aef23195" dependencies = [ - "alloc-no-stdlib 2.0.4", -] - -[[package]] -name = "alloc-stdlib" -version = "0.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0b5c1865780388bfa186411ab5f247819487fc4864c6e9c3106611fa347586e1" -dependencies = [ - "alloc-no-stdlib 3.0.0", + "alloc-no-stdlib", ] [[package]] @@ -130,10 +110,85 @@ dependencies = [ ] [[package]] -name = "anyhow" -version = "1.0.104" +name = "annotate-snippets" +version = "0.11.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "330a5ed07fa54e4702c9d6c4174f74427fc0ef6e214bbd677ae50a5099946470" +checksum = "710e8eae58854cdc1790fcb56cca04d712a17be849eeb81da2a724bf4bae2bc4" +dependencies = [ + "anstyle", + "unicode-width", +] + +[[package]] +name = "anstream" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "824a212faf96e9acacdbd09febd34438f8f711fb84e09a8916013cd7815ca28d" +dependencies = [ + "anstyle", + "anstyle-parse", + "anstyle-query", + "anstyle-wincon", + "colorchoice", + "is_terminal_polyfill", + "utf8parse", +] + +[[package]] +name = "anstyle" +version = "1.0.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "940b3a0ca603d1eade50a4846a2afffd5ef57a9feac2c0e2ec2e14f9ead76000" + +[[package]] +name = "anstyle-parse" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "52ce7f38b242319f7cabaa6813055467063ecdc9d355bbb4ce0c68908cd8130e" +dependencies = [ + "utf8parse", +] + +[[package]] +name = "anstyle-query" +version = "1.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "40c48f72fd53cd289104fc64099abca73db4166ad86ea0b4341abe65af83dadc" +dependencies = [ + "windows-sys 0.61.2", +] + +[[package]] +name = "anstyle-wincon" +version = "3.0.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "291e6a250ff86cd4a820112fb8898808a366d8f9f58ce16d1f538353ad55747d" +dependencies = [ + "anstyle", + "once_cell_polyfill", + "windows-sys 0.61.2", +] + +[[package]] +name = "arboard" +version = "3.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aeb9553e62312c8756a5979254fc6d7da8bbeb5986a1e17037fab932f7037917" +dependencies = [ + "clipboard-win", + "image", + "log", + "objc2 0.6.5", + "objc2-app-kit 0.3.2", + "objc2-core-foundation", + "objc2-core-graphics", + "objc2-foundation 0.3.2", + "parking_lot", + "percent-encoding", + "windows-sys 0.61.2", + "wl-clipboard-rs", + "x11rb", +] [[package]] name = "arrayref" @@ -350,6 +405,25 @@ version = "1.8.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2af50177e190e07a26ab74f8b1efbfe2ef87da2116221318cb1c2e82baf7de06" +[[package]] +name = "bindgen" +version = "0.72.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "993776b509cfb49c750f11b8f07a46fa23e0a1386ffc01fb1e7d343efc387895" +dependencies = [ + "annotate-snippets", + "bitflags 2.13.2", + "cexpr", + "clang-sys", + "itertools 0.13.0", + "proc-macro2", + "quote", + "regex", + "rustc-hash 2.1.3", + "shlex 1.3.0", + "syn 2.0.119", +] + [[package]] name = "bit-set" version = "0.10.0" @@ -384,12 +458,6 @@ dependencies = [ "serde", ] -[[package]] -name = "bit_field" -version = "0.10.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cb2907cc03d08cdb1c6724ad0670ce67c4a71e1c45a6d7635224011714cfc4b1" - [[package]] name = "bitflags" version = "1.3.2" @@ -415,6 +483,12 @@ dependencies = [ "cpufeatures 0.3.1", ] +[[package]] +name = "block" +version = "0.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0d8c1fef690941d3e7788d328517591fecc684c084084702d6ff1641e993699a" + [[package]] name = "block-buffer" version = "0.10.4" @@ -424,15 +498,6 @@ dependencies = [ "generic-array", ] -[[package]] -name = "block-buffer" -version = "0.12.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d2f6c7dbe95a6ed67ad9f18e57daf93a2f034c524b99fd2b76d18fdfeb6660aa" -dependencies = [ - "hybrid-array", -] - [[package]] name = "block2" version = "0.5.1" @@ -494,20 +559,9 @@ version = "8.0.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5cc91aac060a7a1e25823bdccbfb6af1875b88f17c6daac97894eed8207166b3" dependencies = [ - "alloc-no-stdlib 2.0.4", - "alloc-stdlib 0.2.4", - "brotli-decompressor 5.0.3", -] - -[[package]] -name = "brotli" -version = "9.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "627b7cfb0578f0eafce087a90fcd40add1231900b69e4d4de2d456260a4f5d81" -dependencies = [ - "alloc-no-stdlib 3.0.0", - "alloc-stdlib 0.3.0", - "brotli-decompressor 6.3.1", + "alloc-no-stdlib", + "alloc-stdlib", + "brotli-decompressor", ] [[package]] @@ -516,18 +570,8 @@ version = "5.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3a32acac15fe1967bc3986b2a6347dffc965602354ea6f450ad07e8bfd253583" dependencies = [ - "alloc-no-stdlib 2.0.4", - "alloc-stdlib 0.2.4", -] - -[[package]] -name = "brotli-decompressor" -version = "6.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "75c74c9c51b9140663e196b5fb88bc94c334d7a497c8311cb759d8557874747f" -dependencies = [ - "alloc-no-stdlib 3.0.0", - "alloc-stdlib 0.3.0", + "alloc-no-stdlib", + "alloc-stdlib", ] [[package]] @@ -568,6 +612,16 @@ version = "1.12.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fc652a48c352aef3ea3aed32080501cf3ef6ed5da78602a020c991775b0aff04" +[[package]] +name = "calendrical_calculations" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5abbd6eeda6885048d357edc66748eea6e0268e3dd11f326fff5bd248d779c26" +dependencies = [ + "core_maths", + "displaydoc", +] + [[package]] name = "calloop" version = "0.13.0" @@ -615,18 +669,26 @@ dependencies = [ "find-msvc-tools", "jobserver", "libc", - "shlex", + "shlex 2.0.1", ] [[package]] -name = "cfb" -version = "0.15.0" +name = "cexpr" +version = "0.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0f13298d9178622b7916ec5d01d470425c04273c8ed07e87b1c38b34c4f4612b" +checksum = "6fac387a98bb7c37292057cffc56d62ecb629900026402633ae9160df93a8766" dependencies = [ - "fnv", - "uuid", - "web-time", + "nom 7.1.3", +] + +[[package]] +name = "cfg-expr" +version = "0.20.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9ba9e9ec16c447027685b1f897b720e18e9a8afd00bd7332c483537e38086c9f" +dependencies = [ + "smallvec", + "target-lexicon", ] [[package]] @@ -661,17 +723,6 @@ dependencies = [ "rand_core 0.10.1", ] -[[package]] -name = "chardetng" -version = "1.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "13de944a44b5064ee5d3a5ceccc49a41bfec50f2580e66f82e87703acdb88b53" -dependencies = [ - "cfg-if", - "encoding_rs", - "memchr", -] - [[package]] name = "chrono" version = "0.4.45" @@ -687,13 +738,63 @@ dependencies = [ ] [[package]] -name = "cipher" -version = "0.5.2" +name = "clang-sys" +version = "1.9.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e8cf2a2c93cd704877c0858356ed03480ff301ee950b43f1cbe4573b088bfa6c" +checksum = "157a8ba7b480713b56f4c09fd13fc3e0a22a5dfab8097ba61cbc5feef950788a" dependencies = [ - "crypto-common 0.2.2", - "inout", + "glob", + "libc", + "libloading", +] + +[[package]] +name = "clap" +version = "4.6.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aa8876b300ab35ba921adea3dfd70157a46249b33f95c9084ae5709785478946" +dependencies = [ + "clap_builder", + "clap_derive", +] + +[[package]] +name = "clap_builder" +version = "4.6.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ec0797fb7aeb1406c84efac526901f7ec3ead2124f946b494e72879d4b54704d" +dependencies = [ + "anstream", + "anstyle", + "clap_lex", + "strsim", +] + +[[package]] +name = "clap_derive" +version = "4.6.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f9c751b79415d4e559e3d1fcf128e09e720eb673a06d26cf6f392d37d75b66e0" +dependencies = [ + "heck", + "proc-macro2", + "quote", + "syn 3.0.6", +] + +[[package]] +name = "clap_lex" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1c133bc6a41be0d194c306b5506d15e6feeea7b1d6604bd3f8310dfb2ca96486" + +[[package]] +name = "clipboard-win" +version = "5.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "052af7878466feccda12ba7a6a67d019d712f296809559b47c12c8cc196d3a9a" +dependencies = [ + "error-code", ] [[package]] @@ -705,12 +806,6 @@ dependencies = [ "cc", ] -[[package]] -name = "cmov" -version = "0.5.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0c9ea0ac24bc397ab3c98583a3c9ba74fa56b09a4449bbe172b9b1ddb016027a" - [[package]] name = "cmpv2" version = "0.2.0" @@ -729,7 +824,7 @@ version = "0.2.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7b77c319abfd5219629c45c34c89ba945ed3c5e49fcde9d16b6c3885f118a730" dependencies = [ - "const-oid 0.9.6", + "const-oid", "der", "spki", "x509-cert", @@ -771,14 +866,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3d7b894f5411737b7867f4827955924d7c254fc9f4d91a6aad6b097804b1018b" [[package]] -name = "colored" -version = "2.2.0" +name = "colorchoice" +version = "1.0.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "117725a109d387c937a1533ce01b450cbde6b88abceea8473c4d7a85853cda3c" -dependencies = [ - "lazy_static", - "windows-sys 0.59.0", -] +checksum = "1d07550c9036bf2ae0c684c4297d503f838287c83c53686d05370d0e139ae570" [[package]] name = "combine" @@ -805,18 +896,18 @@ version = "0.9.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c2459377285ad874054d797f3ccebf984978aa39129f6eafde5cdc8315b612f8" -[[package]] -name = "const-oid" -version = "0.10.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "be95d4a884358a21a199689323c29e9256b4a1b315e22f183d155422041d3a9a" - [[package]] name = "constant_time_eq" version = "0.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3d52eff69cd5e647efe296129160853a42795992097e8af39800e1060caeea9b" +[[package]] +name = "cookie-factory" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9885fa71e26b8ab7855e2ec7cae6e9b380edff76cd052e07c683a0319d51b3a2" + [[package]] name = "core-foundation" version = "0.9.4" @@ -867,6 +958,19 @@ dependencies = [ "libc", ] +[[package]] +name = "core-graphics2" +version = "0.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5b65858d95344d2711161cd92196732f67d6c5fea238cf12f994584828731a5c" +dependencies = [ + "bitflags 2.13.2", + "block", + "cfg-if", + "core-foundation 0.10.1", + "libc", +] + [[package]] name = "core_detect" version = "1.0.0" @@ -882,12 +986,6 @@ dependencies = [ "libm", ] -[[package]] -name = "cpubits" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "15b85f9c39137c3a891689859392b1bd49812121d0d61c9caf00d46ed5ce06ae" - [[package]] name = "cpufeatures" version = "0.2.17" @@ -907,29 +1005,56 @@ dependencies = [ ] [[package]] -name = "craft-aaf" +name = "craft" version = "0.1.0" dependencies = [ + "craft-ai-core", + "craft-atomic", "craft-audio", - "craft-cfb", + "craft-automation", + "craft-browse", + "craft-cms", + "craft-color", + "craft-crw", + "craft-dialogs", + "craft-doc", + "craft-docpath", + "craft-draw", + "craft-ecproj-format", + "craft-font-catalog", + "craft-font-manager", + "craft-font-store", + "craft-host", + "craft-i18n", + "craft-imaging", + "craft-jpeg", + "craft-keymap", + "craft-layers", + "craft-media", + "craft-menu", + "craft-pages", + "craft-pcraft-format", + "craft-pdf", + "craft-platform", + "craft-prepress", + "craft-print", + "craft-proof", + "craft-quit", + "craft-review", + "craft-settings", + "craft-table", + "craft-text", + "craft-theme", + "craft-theme-store", "craft-timeline", - "thiserror 2.0.21", -] - -[[package]] -name = "craft-aep" -version = "0.1.0" - -[[package]] -name = "craft-affinity" -version = "0.1.0" -dependencies = [ - "crc32fast", - "flate2", - "image", - "proptest", - "ruzstd", - "sha2 0.10.9", + "craft-ui", + "craft-update", + "craft-vectorcraft-format", + "craft-web-api", + "craft-web-host", + "craft-window", + "egui", + "toml", ] [[package]] @@ -941,14 +1066,6 @@ dependencies = [ "serde_json", ] -[[package]] -name = "craft-assuan" -version = "0.1.0" -dependencies = [ - "proptest", - "thiserror 2.0.21", -] - [[package]] name = "craft-atomic" version = "0.1.0" @@ -966,78 +1083,112 @@ dependencies = [ "proptest", "rayon", "serde", - "serde_json", "symphonia", "thiserror 2.0.21", ] [[package]] -name = "craft-captions" +name = "craft-automation" version = "0.1.0" dependencies = [ - "craft-timeline", - "craft-xml", - "proptest", - "roxmltree 0.21.2", + "base64 0.22.1", + "craft-behavior", + "craft-keymap", + "craft-platform", + "craft-theme", + "craft-ui", + "egui", + "getrandom 0.3.4", + "log", + "png 0.17.16", + "serde", + "serde_json", "thiserror 2.0.21", ] [[package]] -name = "craft-cfb" +name = "craft-behavior" version = "0.1.0" dependencies = [ - "craft-media-testkit", + "accesskit", + "bitflags 2.13.2", + "craft-host", + "craft-keymap", + "craft-theme", + "emath", + "kurbo 0.13.1", + "serde", + "serde_json", + "smallvec", +] + +[[package]] +name = "craft-browse" +version = "0.1.0" +dependencies = [ + "craft-behavior", + "craft-docpath", + "craft-host", + "craft-i18n", + "craft-platform", + "craft-settings", + "craft-theme", + "craft-ui", + "egui", + "kurbo 0.13.1", + "serde", + "tempfile", ] [[package]] name = "craft-cms" version = "0.1.0" dependencies = [ - "md-5 0.10.6", + "md-5", "moxcms", "rayon", ] [[package]] -name = "craft-codepage" +name = "craft-color" version = "0.1.0" dependencies = [ - "encoding_rs", -] - -[[package]] -name = "craft-crs" -version = "0.1.0" -dependencies = [ - "craft-metadata", - "craft-xml", - "thiserror 2.0.21", + "craft-behavior", + "craft-cms", + "craft-host", + "craft-i18n", + "craft-keymap", + "craft-platform", + "craft-settings", + "craft-theme", + "craft-ui", + "craft-window", + "egui", + "egui_kittest", + "serde", ] [[package]] name = "craft-crw" version = "0.1.0" dependencies = [ - "proptest", "serde", "serde_json", - "sha2 0.10.9", + "sha2", "thiserror 2.0.21", ] [[package]] -name = "craft-csv" +name = "craft-design-lint" version = "0.1.0" dependencies = [ - "thiserror 2.0.21", -] - -[[package]] -name = "craft-dav" -version = "0.1.0" -dependencies = [ - "craft-xml", - "proptest", + "proc-macro2", + "quote", + "serde", + "serde_json", + "syn 2.0.119", + "toml", + "toml_edit", ] [[package]] @@ -1045,11 +1196,21 @@ name = "craft-dialogs" version = "0.1.0" dependencies = [ "block2 0.6.2", + "craft-atomic", + "craft-behavior", + "craft-host", + "craft-i18n", + "craft-platform", + "craft-ui", + "egui", + "futures-lite", + "log", "objc2 0.6.5", "objc2-app-kit 0.3.2", "objc2-foundation 0.3.2", "raw-window-handle", "rfd", + "zbus", ] [[package]] @@ -1061,82 +1222,40 @@ dependencies = [ "craft-pcraft-format", "craft-vectorcraft-format", "flate2", - "proptest", "ruzstd", "serde", "serde_json", "thiserror 2.0.21", ] -[[package]] -name = "craft-doc-binary" -version = "0.1.0" -dependencies = [ - "cfb", - "chrono", - "craft-cfb", - "craft-codepage", - "craft-wordmodel", - "image", - "log", - "miniz_oxide 0.9.1", - "proptest", - "serde_json", - "sha1 0.11.0", - "thiserror 2.0.21", -] - [[package]] name = "craft-docpath" version = "0.1.0" - -[[package]] -name = "craft-docx" -version = "0.1.0" dependencies = [ - "base64 0.23.1", - "chrono", - "craft-cfb", - "craft-drawingml", - "craft-math", - "craft-offcrypto", - "craft-opc", - "craft-wordmodel", - "craft-xml", - "image", - "log", - "proptest", - "quick-xml 0.41.0", - "serde_json", - "thiserror 2.0.21", - "unicode-bidi", - "zeroize", - "zip", -] - -[[package]] -name = "craft-dpx" -version = "0.1.0" -dependencies = [ - "thiserror 2.0.21", -] - -[[package]] -name = "craft-drawingml" -version = "0.1.0" -dependencies = [ - "craft-xml", - "kurbo 0.13.1", - "log", "serde", - "serde_json", +] + +[[package]] +name = "craft-draw" +version = "0.1.0" +dependencies = [ + "craft-behavior", + "craft-color", + "craft-host", + "craft-i18n", + "craft-keymap", + "craft-settings", + "craft-theme", + "craft-ui", + "egui", + "kurbo 0.13.1", + "serde", ] [[package]] name = "craft-dxf" version = "0.1.0" dependencies = [ - "craft-codepage", "encoding_rs", "log", "thiserror 2.0.21", @@ -1151,72 +1270,6 @@ dependencies = [ "thiserror 2.0.21", ] -[[package]] -name = "craft-eps" -version = "0.1.0" - -[[package]] -name = "craft-epub" -version = "0.1.0" -dependencies = [ - "craft-xml", - "craft-zip", - "thiserror 2.0.21", - "zip", -] - -[[package]] -name = "craft-ews" -version = "0.1.0" -dependencies = [ - "craft-xml", - "proptest", -] - -[[package]] -name = "craft-exr" -version = "0.1.0" -dependencies = [ - "exr", - "flate2", - "half", - "serde_json", - "thiserror 2.0.21", -] - -[[package]] -name = "craft-fig" -version = "0.1.0" -dependencies = [ - "craft-figma-rest", - "craft-kiwi", - "craft-zip", - "flate2", - "kurbo 0.13.1", - "ruzstd", - "serde_json", - "thiserror 2.0.21", - "zip", -] - -[[package]] -name = "craft-figma-rest" -version = "0.1.0" -dependencies = [ - "serde", - "serde_json", - "thiserror 2.0.21", -] - -[[package]] -name = "craft-flow" -version = "0.1.0" -dependencies = [ - "craft-wordmodel", - "image", - "log", -] - [[package]] name = "craft-font-catalog" version = "0.1.0" @@ -1232,17 +1285,19 @@ dependencies = [ name = "craft-font-manager" version = "0.1.0" dependencies = [ + "craft-behavior", "craft-font-catalog", + "craft-font-manager", "craft-font-store", + "craft-host", "craft-i18n", + "craft-theme", "craft-ui", "egui", - "egui_kittest", - "egui_system_font_provider", "epaint_default_fonts", - "image", "log", "serde", + "skrifa 0.44.0", ] [[package]] @@ -1257,7 +1312,7 @@ dependencies = [ "ruzstd", "serde", "serde_json", - "sha2 0.10.9", + "sha2", "skrifa 0.47.0", "tar", "thiserror 2.0.21", @@ -1282,13 +1337,6 @@ dependencies = [ "craft-fonts-build", ] -[[package]] -name = "craft-gainmap" -version = "0.1.0" -dependencies = [ - "thiserror 2.0.21", -] - [[package]] name = "craft-gcode" version = "0.1.0" @@ -1296,20 +1344,6 @@ dependencies = [ "thiserror 2.0.21", ] -[[package]] -name = "craft-gif" -version = "0.1.0" -dependencies = [ - "image", -] - -[[package]] -name = "craft-hdr" -version = "0.1.0" -dependencies = [ - "thiserror 2.0.21", -] - [[package]] name = "craft-heif" version = "0.1.0" @@ -1319,24 +1353,26 @@ dependencies = [ ] [[package]] -name = "craft-html" +name = "craft-host" version = "0.1.0" dependencies = [ - "craft-codepage", - "craft-flow", - "craft-math", - "craft-mime", - "craft-wordmodel", - "encoding_rs", - "proptest", + "bitflags 2.13.2", + "craft-i18n", + "egui", + "serde", + "toml", + "web-time", ] [[package]] name = "craft-i18n" version = "0.1.0" dependencies = [ + "chrono", "fixed_decimal", + "icu_calendar", "icu_collator", + "icu_datetime", "icu_decimal", "icu_locale_core", "icu_locale_fallback", @@ -1346,6 +1382,7 @@ dependencies = [ "icu_provider", "icu_provider_adapters", "icu_provider_blob", + "icu_time", "log", "objc2-foundation 0.3.2", "sys-locale", @@ -1355,36 +1392,26 @@ dependencies = [ ] [[package]] -name = "craft-ical" +name = "craft-imaging" version = "0.1.0" dependencies = [ - "chrono", - "proptest", -] - -[[package]] -name = "craft-idml" -version = "0.1.0" -dependencies = [ - "craft-xml", - "craft-zip", - "thiserror 2.0.21", - "zip", -] - -[[package]] -name = "craft-jmap" -version = "0.1.0" -dependencies = [ - "proptest", - "serde_json", + "craft-behavior", + "craft-host", + "craft-i18n", + "craft-keymap", + "craft-theme", + "craft-ui", + "egui", + "egui_kittest", + "kurbo 0.13.1", + "serde", ] [[package]] name = "craft-jpeg" version = "0.1.0" dependencies = [ - "jpeg-encoder 0.6.1", + "jpeg-encoder", "thiserror 2.0.21", "zune-jpeg", ] @@ -1393,67 +1420,26 @@ dependencies = [ name = "craft-keymap" version = "0.1.0" dependencies = [ + "craft-host", "craft-i18n", "craft-settings", - "craft-ui", "egui", - "egui_kittest", - "image", + "roxmltree 0.21.2", "serde", "serde_json", - "sha2 0.10.9", "tempfile", ] [[package]] -name = "craft-kiwi" -version = "0.1.0" - -[[package]] -name = "craft-kra" +name = "craft-layers" version = "0.1.0" dependencies = [ - "craft-xml", - "craft-zip", - "thiserror 2.0.21", - "zip", -] - -[[package]] -name = "craft-latex" -version = "0.1.0" -dependencies = [ - "craft-flow", - "craft-markdown", - "craft-math", - "craft-mime", - "craft-wordmodel", - "proptest", -] - -[[package]] -name = "craft-lottie" -version = "0.1.0" -dependencies = [ - "serde_json", - "thiserror 2.0.21", -] - -[[package]] -name = "craft-markdown" -version = "0.1.0" -dependencies = [ - "craft-flow", - "craft-html", - "craft-wordmodel", -] - -[[package]] -name = "craft-math" -version = "0.1.0" -dependencies = [ - "craft-xml", - "proptest", + "craft-behavior", + "craft-i18n", + "craft-keymap", + "craft-theme", + "craft-ui", + "egui", "serde", "serde_json", ] @@ -1462,7 +1448,6 @@ dependencies = [ name = "craft-media" version = "0.1.0" dependencies = [ - "chrono", "craft-media-testkit", "proptest", "serde", @@ -1478,140 +1463,31 @@ version = "0.1.0" name = "craft-menu" version = "0.1.0" dependencies = [ + "craft-behavior", + "craft-host", + "craft-i18n", "craft-keymap", "craft-quit", + "craft-theme", + "craft-ui", + "craft-window", "egui", - "muda", - "objc2 0.6.5", - "objc2-app-kit 0.3.2", -] - -[[package]] -name = "craft-mesh" -version = "0.1.0" -dependencies = [ - "craft-opc", - "craft-xml", - "miniz_oxide 0.9.1", - "serde_json", -] - -[[package]] -name = "craft-metadata" -version = "0.1.0" -dependencies = [ - "brotli 9.1.1", - "brotli-decompressor 6.3.1", - "chrono", - "craft-tiff", - "proptest", - "quick-xml 0.41.0", "serde", "serde_json", ] [[package]] -name = "craft-metafile" +name = "craft-pages" version = "0.1.0" dependencies = [ - "encoding_rs", - "image", + "craft-behavior", + "craft-i18n", + "craft-text", + "craft-theme", + "craft-ui", + "egui", "kurbo 0.13.1", - "thiserror 2.0.21", -] - -[[package]] -name = "craft-midi" -version = "0.1.0" -dependencies = [ - "proptest", "serde", - "serde_json", - "thiserror 2.0.21", -] - -[[package]] -name = "craft-mime" -version = "0.1.0" -dependencies = [ - "chardetng", - "chrono", - "craft-codepage", - "encoding_rs", - "proptest", -] - -[[package]] -name = "craft-odf" -version = "0.1.0" -dependencies = [ - "aes", - "base64 0.23.1", - "chrono", - "craft-flow", - "craft-math", - "craft-metafile", - "craft-wordmodel", - "craft-xml", - "craft-zip", - "flate2", - "getrandom 0.3.4", - "hmac", - "image", - "js-sys", - "log", - "sha1 0.11.0", - "sha2 0.11.1", - "thiserror 2.0.21", - "zeroize", - "zip", -] - -[[package]] -name = "craft-ods" -version = "0.1.0" -dependencies = [ - "craft-odf", - "craft-sheet", - "craft-xml", - "thiserror 2.0.21", -] - -[[package]] -name = "craft-offcrypto" -version = "0.1.0" -dependencies = [ - "aes", - "base64 0.23.1", - "craft-cfb", - "craft-xml", - "getrandom 0.3.4", - "hmac", - "sha1 0.11.0", - "sha2 0.11.1", - "thiserror 2.0.21", - "zeroize", -] - -[[package]] -name = "craft-opc" -version = "0.1.0" -dependencies = [ - "craft-xml", - "craft-zip", - "log", - "thiserror 2.0.21", - "zip", -] - -[[package]] -name = "craft-ora" -version = "0.1.0" -dependencies = [ - "craft-xml", - "craft-zip", - "thiserror 2.0.21", - "zip", ] [[package]] @@ -1627,48 +1503,17 @@ dependencies = [ name = "craft-pdf" version = "0.1.0" dependencies = [ - "aes", "bytemuck", - "chrono", - "craft-stream-codecs", - "flate2", "hayro", "hayro-cmap", "hayro-interpret", "hayro-syntax", - "js-sys", "krilla", "kurbo 0.13.1", - "md-5 0.11.0", - "proptest", - "serde_json", - "sha2 0.11.1", - "stringprep", + "serde", "thiserror 2.0.21", "ttf-parser", - "wasm-bindgen", "wasm-bindgen-test", - "zeroize", -] - -[[package]] -name = "craft-pdn" -version = "0.1.0" -dependencies = [ - "flate2", - "proptest", - "thiserror 2.0.21", -] - -[[package]] -name = "craft-penpot" -version = "0.1.0" -dependencies = [ - "craft-zip", - "serde", - "serde_json", - "thiserror 2.0.21", - "zip", ] [[package]] @@ -1688,50 +1533,36 @@ dependencies = [ name = "craft-platform" version = "0.1.0" dependencies = [ + "arboard", "async-channel", "async-io", "async-process", - "egui", + "clipboard-win", + "core-graphics", + "core-graphics2", + "craft-atomic", + "craft-docpath", + "craft-host", + "craft-theme", "futures-lite", "js-sys", + "log", + "objc2-app-kit 0.3.2", + "objc2-foundation 0.3.2", + "serde", + "serde_json", + "sysinfo", "wasm-bindgen", "wasm-bindgen-futures", "wasm-bindgen-test", "web-sys", + "web-time", + "wl-clipboard-rs", + "x11rb", + "xcap", "zbus", ] -[[package]] -name = "craft-plotter" -version = "0.1.0" -dependencies = [ - "serde", - "thiserror 2.0.21", -] - -[[package]] -name = "craft-pptx" -version = "0.1.0" -dependencies = [ - "craft-drawingml", - "craft-opc", - "craft-xml", - "kurbo 0.13.1", - "log", - "serde", - "serde_json", - "thiserror 2.0.21", -] - -[[package]] -name = "craft-prc" -version = "0.1.0" -dependencies = [ - "flate2", - "proptest", - "thiserror 2.0.21", -] - [[package]] name = "craft-prepress" version = "0.1.0" @@ -1749,7 +1580,9 @@ dependencies = [ name = "craft-print" version = "0.1.0" dependencies = [ + "craft-ui", "craft-winprint-gdi", + "egui", "log", "miniz_oxide 0.9.1", "roxmltree 0.21.2", @@ -1769,78 +1602,31 @@ dependencies = [ "unicode-normalization", ] -[[package]] -name = "craft-psd" -version = "0.1.0" -dependencies = [ - "craft-psd", - "encoding_rs", - "flate2", - "proptest", - "rayon", - "serde", - "thiserror 2.0.21", -] - -[[package]] -name = "craft-pst" -version = "0.1.0" -dependencies = [ - "proptest", -] - [[package]] name = "craft-quit" version = "0.1.0" dependencies = [ "dispatch2", "egui", - "muda", "objc2 0.6.5", "objc2-app-kit 0.3.2", ] [[package]] -name = "craft-raster-codecs" +name = "craft-review" version = "0.1.0" dependencies = [ - "rayon", - "thiserror 2.0.21", -] - -[[package]] -name = "craft-raw" -version = "0.1.0" -dependencies = [ - "chrono", - "craft-crw", - "craft-metadata", - "craft-tiff", - "jpeg-encoder 0.7.1", - "jxl-oxide", - "miniz_oxide 0.9.1", - "proptest", - "rayon", - "serde", - "sha2 0.10.9", - "thiserror 2.0.21", - "zune-core", - "zune-jpeg", - "zune-jpegxl", -] - -[[package]] -name = "craft-rtf" -version = "0.1.0" -dependencies = [ - "craft-codepage", - "craft-flow", - "craft-metafile", - "craft-mime", - "craft-wordmodel", - "encoding_rs", + "craft-behavior", + "craft-host", + "craft-i18n", + "craft-keymap", + "craft-theme", + "craft-ui", + "egui", "image", - "proptest", + "kurbo 0.13.1", + "serde", + "serde_json", ] [[package]] @@ -1848,24 +1634,15 @@ name = "craft-settings" version = "0.1.0" dependencies = [ "craft-atomic", + "craft-host", "dirs", "serde", + "serde_json", "tempfile", + "toml", "toml_edit", ] -[[package]] -name = "craft-sf2" -version = "0.1.0" -dependencies = [ - "craft-sf2", - "thiserror 2.0.21", -] - -[[package]] -name = "craft-sheet" -version = "0.1.0" - [[package]] name = "craft-silhouette-studio" version = "0.1.0" @@ -1874,57 +1651,43 @@ dependencies = [ "thiserror 2.0.21", ] -[[package]] -name = "craft-sketch" -version = "0.1.0" -dependencies = [ - "craft-figma-rest", - "craft-zip", - "kurbo 0.13.1", - "serde_json", - "thiserror 2.0.21", - "zip", -] - -[[package]] -name = "craft-stream-codecs" -version = "0.1.0" -dependencies = [ - "fax", - "hayro-ccitt", - "hayro-jbig2", - "proptest", - "thiserror 2.0.21", - "weezl 0.2.1", -] - -[[package]] -name = "craft-svg" -version = "0.1.0" -dependencies = [ - "craft-xml", - "flate2", - "kurbo 0.13.1", - "roxmltree 0.21.2", - "thiserror 2.0.21", - "usvg 0.48.1", -] - [[package]] name = "craft-svg-paths" version = "0.1.0" dependencies = [ - "craft-svg", "kurbo 0.13.1", + "roxmltree 0.21.2", + "thiserror 2.0.21", +] + +[[package]] +name = "craft-table" +version = "0.1.0" +dependencies = [ + "craft-behavior", + "craft-keymap", + "craft-table", + "craft-theme", + "craft-ui", + "egui", ] [[package]] name = "craft-text" version = "0.1.0" dependencies = [ + "craft-behavior", + "craft-font-manager", + "craft-host", + "craft-theme", + "craft-ui", + "egui", "hypher", "icu_segmenter", "miniz_oxide 0.8.9", + "regex", + "regex-syntax", + "serde", "unicode-bidi", "unicode-bidi-mirroring", "unicode-general-category", @@ -1933,10 +1696,31 @@ dependencies = [ ] [[package]] -name = "craft-tga" +name = "craft-theme" version = "0.1.0" dependencies = [ - "thiserror 2.0.21", + "bitflags 2.13.2", + "ecolor", + "log", + "proptest", + "serde", + "serde_json", + "smallvec", +] + +[[package]] +name = "craft-theme-store" +version = "0.1.0" +dependencies = [ + "craft-atomic", + "craft-behavior", + "craft-theme", + "craft-ui", + "dirs", + "egui", + "serde", + "serde_json", + "tempfile", ] [[package]] @@ -1952,38 +1736,230 @@ dependencies = [ name = "craft-timeline" version = "0.1.0" dependencies = [ - "craft-xml", - "proptest", + "craft-behavior", + "craft-keymap", + "craft-theme", + "craft-ui", + "egui", "serde", - "serde_json", + "web-time", ] [[package]] name = "craft-ui" version = "0.1.0" dependencies = [ - "craft-fonts-build", + "craft-behavior", "craft-i18n", - "eframe", + "craft-ui", + "craft-ui-canvas", + "craft-ui-contract", + "craft-ui-panels", + "craft-ui-patterns", + "craft-ui-shell", + "craft-ui-widgets", + "egui", + "syn 2.0.119", + "toml", +] + +[[package]] +name = "craft-ui-bench" +version = "0.1.0" +dependencies = [ + "craft-behavior", + "craft-host", + "craft-ui", + "craft-window", "egui", - "egui_extras", - "egui_kittest", - "epaint", - "fontique", - "image", - "js-sys", - "log", - "objc2 0.6.5", - "objc2-app-kit 0.3.2", - "objc2-foundation 0.3.2", "serde", "serde_json", +] + +[[package]] +name = "craft-ui-canvas" +version = "0.1.0" +dependencies = [ + "craft-behavior", + "craft-i18n", + "craft-keymap", + "craft-theme", + "craft-ui-canvas", + "craft-ui-macros", + "craft-ui-panels", + "craft-ui-test-kit", + "egui", + "serde", +] + +[[package]] +name = "craft-ui-contract" +version = "0.1.0" +dependencies = [ + "accesskit", + "craft-behavior", + "craft-font-catalog", + "craft-fonts-build", + "craft-host", + "craft-i18n", + "craft-keymap", + "craft-quit", + "craft-theme", + "craft-ui-contract", + "craft-ui-macros", + "craft-ui-test-kit", + "craft-window", + "egui", + "egui_kittest", + "epaint", + "epaint_default_fonts", + "flate2", + "fontique", + "image", + "inventory", + "libtest-mimic", + "log", + "proc-macro2", + "resvg", + "serde", "skrifa 0.44.0", - "unicode-script", - "wasm-bindgen", + "smallvec", + "syn 2.0.119", + "toml", + "web-time", +] + +[[package]] +name = "craft-ui-gallery" +version = "0.1.0" +dependencies = [ + "craft-automation", + "craft-behavior", + "craft-browse", + "craft-color", + "craft-dialogs", + "craft-draw", + "craft-font-manager", + "craft-i18n", + "craft-imaging", + "craft-layers", + "craft-menu", + "craft-pages", + "craft-print", + "craft-review", + "craft-settings", + "craft-table", + "craft-text", + "craft-theme", + "craft-theme-store", + "craft-timeline", + "craft-ui", + "craft-update", + "craft-window", + "eframe", + "egui", + "proc-macro2", + "quote", + "serde", + "serde_json", + "syn 2.0.119", "wasm-bindgen-futures", - "wasm-bindgen-test", - "web-sys", + "web-time", +] + +[[package]] +name = "craft-ui-macros" +version = "0.1.0" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "craft-ui-panels" +version = "0.1.0" +dependencies = [ + "craft-behavior", + "craft-host", + "craft-i18n", + "craft-keymap", + "craft-quit", + "craft-theme", + "craft-ui-macros", + "craft-ui-panels", + "craft-ui-widgets", + "egui", + "serde", + "toml", +] + +[[package]] +name = "craft-ui-patterns" +version = "0.1.0" +dependencies = [ + "craft-behavior", + "craft-host", + "craft-i18n", + "craft-keymap", + "craft-pdf", + "craft-theme", + "craft-ui-macros", + "craft-ui-panels", + "craft-ui-patterns", + "craft-ui-test-kit", + "egui", + "serde", + "toml", + "toml_edit", + "zeroize", +] + +[[package]] +name = "craft-ui-shell" +version = "0.1.0" +dependencies = [ + "craft-behavior", + "craft-host", + "craft-i18n", + "craft-theme", + "craft-ui-macros", + "craft-ui-panels", + "craft-ui-shell", + "craft-ui-test-kit", + "craft-window", + "eframe", + "egui", + "resvg", + "web-time", +] + +[[package]] +name = "craft-ui-test-kit" +version = "0.1.0" +dependencies = [ + "craft-behavior", + "craft-host", + "craft-ui-contract", + "egui", +] + +[[package]] +name = "craft-ui-widgets" +version = "0.1.0" +dependencies = [ + "craft-behavior", + "craft-host", + "craft-i18n", + "craft-keymap", + "craft-theme", + "craft-ui-contract", + "craft-ui-macros", + "craft-ui-test-kit", + "craft-ui-widgets", + "egui", + "serde", + "smallvec", ] [[package]] @@ -1991,10 +1967,11 @@ name = "craft-update" version = "0.1.0" dependencies = [ "chrono", + "craft-host", + "craft-theme", + "craft-ui", "dunce", "egui", - "egui_kittest", - "epaint_default_fonts", "flate2", "getrandom 0.3.4", "image", @@ -2004,7 +1981,7 @@ dependencies = [ "semver", "serde", "serde_json", - "sha2 0.10.9", + "sha2", "tar", "tempfile", "ureq", @@ -2014,15 +1991,6 @@ dependencies = [ "zip", ] -[[package]] -name = "craft-vcard" -version = "0.1.0" -dependencies = [ - "chrono", - "craft-mime", - "proptest", -] - [[package]] name = "craft-vectorcraft-format" version = "0.1.0" @@ -2033,14 +2001,6 @@ dependencies = [ "thiserror 2.0.21", ] -[[package]] -name = "craft-vectordrawable" -version = "0.1.0" -dependencies = [ - "craft-xml", - "kurbo 0.13.1", -] - [[package]] name = "craft-video" version = "0.1.0" @@ -2072,22 +2032,32 @@ dependencies = [ ] [[package]] -name = "craft-webp" +name = "craft-win32" version = "0.1.0" dependencies = [ - "craft-video", - "image", - "thiserror 2.0.21", + "winsafe", ] [[package]] name = "craft-window" version = "0.1.0" dependencies = [ + "craft-atomic", + "craft-behavior", + "craft-host", + "craft-settings", + "craft-win32", "egui", + "muda", "objc2 0.6.5", "objc2-app-kit 0.3.2", + "objc2-foundation 0.3.2", + "raw-window-handle", + "serde", + "serde_json", + "tempfile", "wayland-client", + "winsafe", ] [[package]] @@ -2098,76 +2068,6 @@ dependencies = [ "windows-sys 0.61.2", ] -[[package]] -name = "craft-wordmodel" -version = "0.1.0" -dependencies = [ - "base64 0.23.1", - "craft-math", - "log", - "proptest", - "serde", - "serde_json", - "thiserror 2.0.21", - "unicode-segmentation", -] - -[[package]] -name = "craft-xcf" -version = "0.1.0" -dependencies = [ - "flate2", - "thiserror 2.0.21", -] - -[[package]] -name = "craft-xls" -version = "0.1.0" -dependencies = [ - "craft-cfb", - "craft-sheet", - "md-5 0.10.6", - "miniz_oxide 0.9.1", - "sha1 0.10.7", - "thiserror 2.0.21", -] - -[[package]] -name = "craft-xlsx" -version = "0.1.0" -dependencies = [ - "craft-drawingml", - "craft-opc", - "craft-sheet", - "craft-xml", - "thiserror 2.0.21", -] - -[[package]] -name = "craft-xml" -version = "0.1.0" -dependencies = [ - "quick-xml 0.41.0", - "thiserror 2.0.21", -] - -[[package]] -name = "craft-y4m" -version = "0.1.0" -dependencies = [ - "thiserror 2.0.21", -] - -[[package]] -name = "craft-zip" -version = "0.1.0" -dependencies = [ - "craft-zip", - "flate2", - "thiserror 2.0.21", - "zip", -] - [[package]] name = "crc32fast" version = "1.5.2" @@ -2239,24 +2139,6 @@ dependencies = [ "typenum", ] -[[package]] -name = "crypto-common" -version = "0.2.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ce6e4c961d6cd6c9a86db418387425e8bdeaf05b3c8bc1411e6dca4c252f1453" -dependencies = [ - "hybrid-array", -] - -[[package]] -name = "ctutils" -version = "0.4.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "261af4dc7a06ea8a527a8717d8cbba3417530d6ea14e1edb3de6b67806be474f" -dependencies = [ - "cmov", -] - [[package]] name = "cursor-icon" version = "1.2.0" @@ -2275,7 +2157,7 @@ version = "0.7.10" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e7c1832837b905bbfb5101e07cc24c8deddf52f93225eee6ead5f4d63d53ddcb" dependencies = [ - "const-oid 0.9.6", + "const-oid", "der_derive", "flagset", "pem-rfc7468", @@ -2299,39 +2181,14 @@ version = "0.5.9" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9e9de72ce2ad1f90dc62fa25f0f430ef85eb4b0d8fa0be4f30373bc40a21d28e" -[[package]] -name = "dify" -version = "0.8.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "90ce0fb972943b4e88cd03b8f92953df0c71bb05e0bde8e5b684895d808013cc" -dependencies = [ - "anyhow", - "colored", - "getopts", - "image", - "rayon", -] - [[package]] name = "digest" version = "0.10.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292" dependencies = [ - "block-buffer 0.10.4", - "crypto-common 0.1.7", -] - -[[package]] -name = "digest" -version = "0.11.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f1dd6dbb5841937940781866fa1281a1ff7bd3bf827091440879f9994983d5c2" -dependencies = [ - "block-buffer 0.12.1", - "const-oid 0.10.3", - "crypto-common 0.2.2", - "ctutils", + "block-buffer", + "crypto-common", ] [[package]] @@ -2414,6 +2271,61 @@ version = "0.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d8b14ccef22fc6f5a8f4d7d768562a182c04ce9a3b3157b91390b52ddfdf1a76" +[[package]] +name = "drm" +version = "0.14.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "80bc8c5c6c2941f70a55c15f8d9f00f9710ebda3ffda98075f996a0e6c92756f" +dependencies = [ + "bitflags 2.13.2", + "bytemuck", + "drm-ffi", + "drm-fourcc", + "libc", + "rustix 0.38.44", +] + +[[package]] +name = "drm" +version = "0.15.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7a41816e58f47f49acfd956651055ddcf137c4882c2098c30c448817af21183a" +dependencies = [ + "bitflags 2.13.2", + "bytemuck", + "bytemuck_derive", + "drm-ffi", + "drm-fourcc", + "libc", + "rustix 1.1.5", +] + +[[package]] +name = "drm-ffi" +version = "0.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "51a91c9b32ac4e8105dec255e849e0d66e27d7c34d184364fb93e469db08f690" +dependencies = [ + "drm-sys", + "rustix 1.1.5", +] + +[[package]] +name = "drm-fourcc" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0aafbcdb8afc29c1a7ee5fbe53b5d62f4565b35a042a662ca9fecd0b54dae6f4" + +[[package]] +name = "drm-sys" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ecc8e1361066d91f5ffccff060a3c3be9c3ecde15be2959c1937595f7a82a9f8" +dependencies = [ + "libc", + "linux-raw-sys 0.9.4", +] + [[package]] name = "dunce" version = "1.0.5" @@ -2423,17 +2335,16 @@ checksum = "92773504d58c093f6de2459af4af33faa518c13451eb8f2b5698ed3d36e7c813" [[package]] name = "ecolor" version = "0.37.0" -source = "git+https://github.com/storytold/egui.git?rev=6d518fc799681571963842f95b55a6b68431b15a#6d518fc799681571963842f95b55a6b68431b15a" +source = "git+https://github.com/aiongg/egui.git?rev=4b93a86c52348eb53e883c9b6b9f59c573608e07#4b93a86c52348eb53e883c9b6b9f59c573608e07" dependencies = [ "bytemuck", "emath", - "serde", ] [[package]] name = "eframe" version = "0.37.0" -source = "git+https://github.com/storytold/egui.git?rev=6d518fc799681571963842f95b55a6b68431b15a#6d518fc799681571963842f95b55a6b68431b15a" +source = "git+https://github.com/aiongg/egui.git?rev=4b93a86c52348eb53e883c9b6b9f59c573608e07#4b93a86c52348eb53e883c9b6b9f59c573608e07" dependencies = [ "ahash", "bytemuck", @@ -2468,18 +2379,17 @@ dependencies = [ [[package]] name = "egui" version = "0.37.0" -source = "git+https://github.com/storytold/egui.git?rev=6d518fc799681571963842f95b55a6b68431b15a#6d518fc799681571963842f95b55a6b68431b15a" +source = "git+https://github.com/aiongg/egui.git?rev=4b93a86c52348eb53e883c9b6b9f59c573608e07#4b93a86c52348eb53e883c9b6b9f59c573608e07" dependencies = [ "accesskit", "ahash", "bitflags 2.13.2", "emath", "epaint", - "itertools", + "itertools 0.15.0", "log", "nohash-hasher", "profiling", - "serde", "smallvec", "unicode-segmentation", "web-sys", @@ -2488,7 +2398,7 @@ dependencies = [ [[package]] name = "egui-wgpu" version = "0.37.0" -source = "git+https://github.com/storytold/egui.git?rev=6d518fc799681571963842f95b55a6b68431b15a#6d518fc799681571963842f95b55a6b68431b15a" +source = "git+https://github.com/aiongg/egui.git?rev=4b93a86c52348eb53e883c9b6b9f59c573608e07#4b93a86c52348eb53e883c9b6b9f59c573608e07" dependencies = [ "ahash", "bytemuck", @@ -2507,7 +2417,7 @@ dependencies = [ [[package]] name = "egui-winit" version = "0.37.0" -source = "git+https://github.com/storytold/egui.git?rev=6d518fc799681571963842f95b55a6b68431b15a#6d518fc799681571963842f95b55a6b68431b15a" +source = "git+https://github.com/aiongg/egui.git?rev=4b93a86c52348eb53e883c9b6b9f59c573608e07#4b93a86c52348eb53e883c9b6b9f59c573608e07" dependencies = [ "block2 0.6.2", "bytemuck", @@ -2524,24 +2434,10 @@ dependencies = [ "winit", ] -[[package]] -name = "egui_extras" -version = "0.37.0" -source = "git+https://github.com/storytold/egui.git?rev=6d518fc799681571963842f95b55a6b68431b15a#6d518fc799681571963842f95b55a6b68431b15a" -dependencies = [ - "ahash", - "egui", - "enum-map", - "itertools", - "log", - "profiling", - "resvg", -] - [[package]] name = "egui_glow" version = "0.37.0" -source = "git+https://github.com/storytold/egui.git?rev=6d518fc799681571963842f95b55a6b68431b15a#6d518fc799681571963842f95b55a6b68431b15a" +source = "git+https://github.com/aiongg/egui.git?rev=4b93a86c52348eb53e883c9b6b9f59c573608e07#4b93a86c52348eb53e883c9b6b9f59c573608e07" dependencies = [ "bytemuck", "egui", @@ -2554,37 +2450,20 @@ dependencies = [ [[package]] name = "egui_kittest" version = "0.37.0" -source = "git+https://github.com/storytold/egui.git?rev=6d518fc799681571963842f95b55a6b68431b15a#6d518fc799681571963842f95b55a6b68431b15a" +source = "git+https://github.com/aiongg/egui.git?rev=4b93a86c52348eb53e883c9b6b9f59c573608e07#4b93a86c52348eb53e883c9b6b9f59c573608e07" dependencies = [ - "dify", "eframe", "egui", "egui-wgpu", "image", "kittest", "log", - "open", "pollster 1.0.1", "serde", - "tempfile", "toml", "wgpu", ] -[[package]] -name = "egui_system_font_provider" -version = "0.37.0" -source = "git+https://github.com/storytold/egui.git?rev=6d518fc799681571963842f95b55a6b68431b15a#6d518fc799681571963842f95b55a6b68431b15a" -dependencies = [ - "epaint", - "fontique", - "log", - "poll-promise", - "skrifa 0.44.0", - "sys-locale", - "unicode-script", -] - [[package]] name = "either" version = "1.19.0" @@ -2594,10 +2473,9 @@ checksum = "0e9c71c2167ca323c882b99918929403426e2373ea17242ff5653e0d5e1058be" [[package]] name = "emath" version = "0.37.0" -source = "git+https://github.com/storytold/egui.git?rev=6d518fc799681571963842f95b55a6b68431b15a#6d518fc799681571963842f95b55a6b68431b15a" +source = "git+https://github.com/aiongg/egui.git?rev=4b93a86c52348eb53e883c9b6b9f59c573608e07#4b93a86c52348eb53e883c9b6b9f59c573608e07" dependencies = [ "bytemuck", - "serde", ] [[package]] @@ -2632,26 +2510,6 @@ version = "1.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "66b7e2430c6dff6a955451e2cfc438f09cea1965a9d6f87f7e3b90decc014099" -[[package]] -name = "enum-map" -version = "3.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d4532960034c15ba2f55e9eee631040ecc473c32e6c4b200828c759840f13a06" -dependencies = [ - "enum-map-derive", -] - -[[package]] -name = "enum-map-derive" -version = "1.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7127272f64b3e098f7d81f350d672081b879bff896d219c42370dc858b1af9ff" -dependencies = [ - "proc-macro2", - "quote", - "syn 3.0.6", -] - [[package]] name = "enumflags2" version = "0.7.12" @@ -2673,21 +2531,10 @@ dependencies = [ "syn 2.0.119", ] -[[package]] -name = "enumn" -version = "0.1.14" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2f9ed6b3789237c8a0c1c505af1c7eb2c560df6186f01b098c3a1064ea532f38" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.119", -] - [[package]] name = "epaint" version = "0.37.0" -source = "git+https://github.com/storytold/egui.git?rev=6d518fc799681571963842f95b55a6b68431b15a#6d518fc799681571963842f95b55a6b68431b15a" +source = "git+https://github.com/aiongg/egui.git?rev=4b93a86c52348eb53e883c9b6b9f59c573608e07#4b93a86c52348eb53e883c9b6b9f59c573608e07" dependencies = [ "ahash", "bytemuck", @@ -2701,7 +2548,6 @@ dependencies = [ "parking_lot", "profiling", "self_cell", - "serde", "skrifa 0.44.0", "smallvec", "unicode-bidi", @@ -2714,7 +2560,7 @@ dependencies = [ [[package]] name = "epaint_default_fonts" version = "0.37.0" -source = "git+https://github.com/storytold/egui.git?rev=6d518fc799681571963842f95b55a6b68431b15a#6d518fc799681571963842f95b55a6b68431b15a" +source = "git+https://github.com/aiongg/egui.git?rev=4b93a86c52348eb53e883c9b6b9f59c573608e07#4b93a86c52348eb53e883c9b6b9f59c573608e07" [[package]] name = "equivalent" @@ -2732,6 +2578,18 @@ dependencies = [ "windows-sys 0.61.2", ] +[[package]] +name = "error-code" +version = "3.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b5343afd4a8365a643ac588dab4cf234a190c7f6c88c9f6dd6ffe00837661b7" + +[[package]] +name = "escape8259" +version = "0.5.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9f1f0d310082fd5de539d4f41601182241147498444a7695c520288a0cdbead6" + [[package]] name = "euclid" version = "0.22.14" @@ -2761,21 +2619,6 @@ dependencies = [ "pin-project-lite", ] -[[package]] -name = "exr" -version = "1.74.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cb29d0be702adf92c645d9b2f93472906ba83d400e59f98adb3770ce5c18c2f6" -dependencies = [ - "bit_field", - "half", - "lebe", - "miniz_oxide 0.8.9", - "multiversion", - "smallvec", - "zune-inflate", -] - [[package]] name = "extended" version = "0.1.0" @@ -2836,6 +2679,12 @@ dependencies = [ "writeable", ] +[[package]] +name = "fixedbitset" +version = "0.5.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1d674e81391d1e1ab681a28d99df07927c6d4aa5b027d7da16ba32d1d21ecd99" + [[package]] name = "flagset" version = "0.4.7" @@ -2890,6 +2739,12 @@ version = "1.0.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" +[[package]] +name = "foldhash" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d9c4f5dac5e15c24eb999c26181a6ca40b39fe946cbe4c263c7209467bc83af2" + [[package]] name = "foldhash" version = "0.2.0" @@ -2912,28 +2767,6 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "835ae9d781464a79026cde387f9cbc650c9a4909d7cf7e658b127e3c35d2f35d" dependencies = [ "bytemuck", - "serde", -] - -[[package]] -name = "fontconfig-parser" -version = "0.5.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bbc773e24e02d4ddd8395fd30dc147524273a83e54e0f312d986ea30de5f5646" -dependencies = [ - "roxmltree 0.20.0", -] - -[[package]] -name = "fontdb" -version = "0.24.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2660c5e9157bf76d2db1294e4a9feba604ef610819a3b591088d0d8392a3290f" -dependencies = [ - "fontconfig-parser", - "log", - "slotmap", - "tinyvec", ] [[package]] @@ -3073,6 +2906,30 @@ dependencies = [ "slab", ] +[[package]] +name = "gbm" +version = "0.18.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ce852e998d3ca5e4a97014fb31c940dc5ef344ec7d364984525fd11e8a547e6a" +dependencies = [ + "bitflags 2.13.2", + "drm 0.14.1", + "drm-fourcc", + "gbm-sys", + "libc", + "wayland-backend", + "wayland-server", +] + +[[package]] +name = "gbm-sys" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c13a5f2acc785d8fb6bf6b7ab6bfb0ef5dad4f4d97e8e70bb8e470722312f76f" +dependencies = [ + "libc", +] + [[package]] name = "generic-array" version = "0.14.7" @@ -3093,15 +2950,6 @@ dependencies = [ "windows-link", ] -[[package]] -name = "getopts" -version = "0.2.24" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cfe4fbac503b8d1f88e6676011885f34b7174f46e59956bba534ba83abded4df" -dependencies = [ - "unicode-width", -] - [[package]] name = "getrandom" version = "0.2.17" @@ -3122,11 +2970,9 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "899def5c37c4fd7b2664648c28120ecec138e4d395b459e5ca34f9cce2dd77fd" dependencies = [ "cfg-if", - "js-sys", "libc", "r-efi 5.3.0", "wasip2", - "wasm-bindgen", ] [[package]] @@ -3150,7 +2996,16 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ee8cfcc411d9adbbaba82fb72661cc1bcca13e8bba98b364e62b2dba8f960159" dependencies = [ "color_quant", - "weezl 0.1.12", + "weezl", +] + +[[package]] +name = "gl" +version = "0.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a94edab108827d67608095e269cf862e60d920f144a5026d3dbcfd8b877fb404" +dependencies = [ + "gl_generator", ] [[package]] @@ -3171,7 +3026,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d99fc21d493812643aae86d53b7bbd02f376434a90317e8a790bc209fdd6605e" dependencies = [ "bytemuck", - "foldhash", + "foldhash 0.2.0", "hashbrown 0.17.1", "log", "peniko", @@ -3188,7 +3043,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "282a26c1e23de04bdab3e34a21b6f877a479b96737792516b9b8b8f69b6661be" dependencies = [ "bytemuck", - "foldhash", + "foldhash 0.2.0", "hashbrown 0.17.1", "log", "peniko", @@ -3198,6 +3053,12 @@ dependencies = [ "vello_common 0.2.0", ] +[[package]] +name = "glob" +version = "0.3.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e4eba85ea1d0a966a983acd07deee566e67395d2d96b6fb39e62b5a833f1eb0b" + [[package]] name = "glow" version = "0.17.0" @@ -3341,6 +3202,15 @@ dependencies = [ "smallvec", ] +[[package]] +name = "hashbrown" +version = "0.15.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9229cfe53dfd69f0609a49f65461bd93001ea1ef889cd5529dd176593f5338a1" +dependencies = [ + "foldhash 0.1.5", +] + [[package]] name = "hashbrown" version = "0.16.1" @@ -3349,7 +3219,7 @@ checksum = "841d1cc9bed7f9236f321df977030373f4a4163ae1a7dbfe1a51a2c1a51d9100" dependencies = [ "allocator-api2", "equivalent", - "foldhash", + "foldhash 0.2.0", ] [[package]] @@ -3358,7 +3228,7 @@ version = "0.17.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ed5909b6e89a2db4456e54cd5f673791d7eca6732202bbf2a9cc504fe2f9b84a" dependencies = [ - "foldhash", + "foldhash 0.2.0", ] [[package]] @@ -3384,7 +3254,7 @@ checksum = "9f4d0e94ddd48749f06bbe4e5389fb9799a0c45bcaf00495042076ef05e3241a" name = "hayro-cmap" version = "0.1.0" dependencies = [ - "brotli 8.0.4", + "brotli", "hayro-postscript", ] @@ -3479,15 +3349,6 @@ version = "0.4.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70" -[[package]] -name = "hmac" -version = "0.13.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6303bc9732ae41b04cb554b844a762b4115a61bfaa81e3e83050991eeb56863f" -dependencies = [ - "digest 0.11.3", -] - [[package]] name = "http" version = "1.5.0" @@ -3527,15 +3388,6 @@ version = "1.10.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6dbf3de79e51f3d586ab4cb9d5c3e2c14aa28ed23d180cf89b4df0454a69cc87" -[[package]] -name = "hybrid-array" -version = "0.4.15" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "27f864f10dfb56725ce5ce5472bc52252c8f93a4ab86327122cebf62c5f59a17" -dependencies = [ - "typenum", -] - [[package]] name = "hyper" version = "1.12.0" @@ -3628,6 +3480,21 @@ dependencies = [ "cc", ] +[[package]] +name = "icu_calendar" +version = "2.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "58655df2f728e46e4eee80bddebefacf52ec3e77cdb925014b47c5a5905eb55c" +dependencies = [ + "calendrical_calculations", + "displaydoc", + "icu_locale_core", + "icu_provider", + "serde", + "tinystr", + "zerovec", +] + [[package]] name = "icu_collator" version = "2.3.1" @@ -3661,6 +3528,30 @@ dependencies = [ "zerovec", ] +[[package]] +name = "icu_datetime" +version = "2.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c44df99c4c5297b05653d1a1629f13bdc9fd4044acfbbaf30b15194a1eed4cd6" +dependencies = [ + "displaydoc", + "fixed_decimal", + "icu_calendar", + "icu_decimal", + "icu_locale_core", + "icu_pattern", + "icu_plurals", + "icu_provider", + "icu_time", + "potential_utf", + "serde", + "smallvec", + "tinystr", + "writeable", + "zerotrie", + "zerovec", +] + [[package]] name = "icu_decimal" version = "2.3.0" @@ -3849,6 +3740,22 @@ version = "2.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ae293c039020f9ec10710af98d29ce6aa2051486638b49c9a6409f3b4a9e98ad" +[[package]] +name = "icu_time" +version = "2.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "af37e1c3b9f3ab564b619fdf4b22de169f6381eb0f7048e3ca454290c438126b" +dependencies = [ + "calendrical_calculations", + "displaydoc", + "icu_calendar", + "icu_locale_core", + "icu_provider", + "serde", + "zerotrie", + "zerovec", +] + [[package]] name = "idna" version = "1.1.0" @@ -3878,9 +3785,6 @@ checksum = "85ab80394333c02fe689eaf900ab500fbd0c2213da414687ebf995a65d5a6104" dependencies = [ "bytemuck", "byteorder-lite", - "color_quant", - "gif", - "image-webp", "moxcms", "num-traits", "png 0.18.1", @@ -3911,12 +3815,6 @@ version = "0.14.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "09e54e57b4c48b40f7aec75635392b12b3421fa26fe8b4332e63138ed278459c" -[[package]] -name = "imagesize" -version = "0.15.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "65b27460c2c92b037f3f94c538ed9a3342f3fdf923606781629ccb35f82d042a" - [[package]] name = "indexmap" version = "2.14.2" @@ -3928,12 +3826,12 @@ dependencies = [ ] [[package]] -name = "inout" -version = "0.2.6" +name = "inventory" +version = "0.3.25" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3a580c13f0ffc335ef42dd3f6b1a41b726051c5e1656d9a3aa6fddb3c5dfbbf9" +checksum = "6928282826c822ad91bf1c9a1cb90a30ba1c26770749929b4656cd6be829cd7c" dependencies = [ - "hybrid-array", + "rustversion", ] [[package]] @@ -3965,22 +3863,18 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "791930b43c0d5973160d90a8f3894509f2b273430f5c5c73b668636d0287c5c0" [[package]] -name = "is-docker" -version = "0.2.0" +name = "is_terminal_polyfill" +version = "1.70.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "928bae27f42bc99b60d9ac7334e3a21d10ad8f1835a4e12ec3ec0464765ed1b3" -dependencies = [ - "once_cell", -] +checksum = "a6cb138bb79a146c1bd460005623e142ef0181e3d0219cb493e02f7d08a35695" [[package]] -name = "is-wsl" -version = "0.4.0" +name = "itertools" +version = "0.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "173609498df190136aa7dea1a91db051746d339e18476eed5ca40521f02d7aa5" +checksum = "413ee7dfc52ee1a4949ceeb7dbc8a33f2d6c088194d9f922fb8318faf1f01186" dependencies = [ - "is-docker", - "once_cell", + "either", ] [[package]] @@ -4072,12 +3966,6 @@ version = "0.6.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b454d911ac55068f53495488d8ccd0646eaa540c033a28ee15b07838afafb01f" -[[package]] -name = "jpeg-encoder" -version = "0.7.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a0370574b86f7eca156b9f298392b5e69a23f8c86f3f865add60bbc2e79467a6" - [[package]] name = "js-sys" version = "0.3.106" @@ -4089,182 +3977,6 @@ dependencies = [ "wasm-bindgen", ] -[[package]] -name = "jxl-bitstream" -version = "1.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b480e752277e29eb4054f69546887a9b84656fe78c08f54ba5850ced98a378fe" -dependencies = [ - "tracing", -] - -[[package]] -name = "jxl-coding" -version = "1.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cd972bcd125e776f1eb241ac50e39f956095a1c2770c64736c968f8946bd9a3c" -dependencies = [ - "jxl-bitstream", - "tracing", -] - -[[package]] -name = "jxl-color" -version = "0.11.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f316b1358c1711755b3ee8e8cb5c4a1dad12e796233088a7a513440782de80b2" -dependencies = [ - "jxl-bitstream", - "jxl-coding", - "jxl-grid", - "jxl-image", - "jxl-oxide-common", - "jxl-threadpool", - "tracing", -] - -[[package]] -name = "jxl-frame" -version = "0.13.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2d967c6fd669c7c01060b5022d8835fa82fd46b06ffc98b549f17600a097c2b3" -dependencies = [ - "jxl-bitstream", - "jxl-coding", - "jxl-grid", - "jxl-image", - "jxl-modular", - "jxl-oxide-common", - "jxl-threadpool", - "jxl-vardct", - "tracing", -] - -[[package]] -name = "jxl-grid" -version = "0.6.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "01671307879a033bfa52e6e8784b941aca770b3f3a7d33830b455b6844f793fb" -dependencies = [ - "tracing", -] - -[[package]] -name = "jxl-image" -version = "0.13.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c5f752d62577c702a94dbbce4045caf08cb58639e8a4d56464b40ecf33ffe565" -dependencies = [ - "jxl-bitstream", - "jxl-grid", - "jxl-oxide-common", - "tracing", -] - -[[package]] -name = "jxl-jbr" -version = "0.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e35d032bcec660647828527ff42c6f5776d2fd44b8357f9f6d9ac6dc07218e46" -dependencies = [ - "brotli-decompressor 5.0.3", - "jxl-bitstream", - "jxl-frame", - "jxl-grid", - "jxl-image", - "jxl-modular", - "jxl-oxide-common", - "jxl-threadpool", - "jxl-vardct", - "tracing", -] - -[[package]] -name = "jxl-modular" -version = "0.11.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2a2f045b24c738dd91d482be385512b512721ae08a671bd4b27bf1c47f215235" -dependencies = [ - "jxl-bitstream", - "jxl-coding", - "jxl-grid", - "jxl-oxide-common", - "jxl-threadpool", - "tracing", -] - -[[package]] -name = "jxl-oxide" -version = "0.12.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d36c662923f47586880211f3bc7c0d83fb3a9b410d278c7bde93450748abeef3" -dependencies = [ - "brotli-decompressor 5.0.3", - "jxl-bitstream", - "jxl-color", - "jxl-frame", - "jxl-grid", - "jxl-image", - "jxl-jbr", - "jxl-oxide-common", - "jxl-render", - "jxl-threadpool", - "tracing", -] - -[[package]] -name = "jxl-oxide-common" -version = "1.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b62394c5021b3a9e7e0dbb2d639d555d019090c9946c39f6d3b09d390db4157b" -dependencies = [ - "jxl-bitstream", -] - -[[package]] -name = "jxl-render" -version = "0.12.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d34386bfdb6a19b5a30cc9beb4d475d537422c31ae8c39bb69640fcce3fcaf19" -dependencies = [ - "bytemuck", - "jxl-bitstream", - "jxl-coding", - "jxl-color", - "jxl-frame", - "jxl-grid", - "jxl-image", - "jxl-modular", - "jxl-oxide-common", - "jxl-threadpool", - "jxl-vardct", - "tracing", -] - -[[package]] -name = "jxl-threadpool" -version = "1.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "25f15eb830aa77a7f21148d72e153562a26bfe570139bd4922eab1908dd499d3" -dependencies = [ - "tracing", -] - -[[package]] -name = "jxl-vardct" -version = "0.11.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ce72a18c6d3a47172ab6c479be2bdb56f22066b5d7092663f03b4490820b4511" -dependencies = [ - "jxl-bitstream", - "jxl-coding", - "jxl-grid", - "jxl-modular", - "jxl-oxide-common", - "jxl-threadpool", - "tracing", -] - [[package]] name = "keyboard-types" version = "0.8.3" @@ -4359,12 +4071,6 @@ version = "1.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "20870f649af7073d53e38067b2a84312175d56ea15217e1b15bc83506ec50afb" -[[package]] -name = "lebe" -version = "0.5.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7a79a3332a6609480d7d0c9eab957bca6b455b91bb84e66d19f5ff66294b85b8" - [[package]] name = "libc" version = "0.2.190" @@ -4399,6 +4105,66 @@ dependencies = [ "redox_syscall 0.9.4", ] +[[package]] +name = "libspa" +version = "0.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "882f7427e7989dcc9d388b7f05c4630390a1d7696f9ffa469cd4a7a48f0b4c40" +dependencies = [ + "bitflags 2.13.2", + "cc", + "cookie-factory", + "libc", + "libspa-sys", + "nom 8.0.0", + "rustix 1.1.5", + "system-deps", +] + +[[package]] +name = "libspa-sys" +version = "0.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3b6e17bdaf63ed0d5e4144022624032b41fd9733112e8c74ac26fc9bf1291924" +dependencies = [ + "bindgen", + "cc", + "system-deps", +] + +[[package]] +name = "libtest-mimic" +version = "0.8.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "14e6ba06f0ade6e504aff834d7c34298e5155c6baca353cc6a4aaff2f9fd7f33" +dependencies = [ + "anstream", + "anstyle", + "clap", + "escape8259", +] + +[[package]] +name = "libwayshot-xcap" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ea8a46e4d016ef464e386e4970f5415fe0939c2d63abe0c2f539c05ef88c5fe5" +dependencies = [ + "drm 0.15.0", + "gbm", + "gl", + "image", + "khronos-egl", + "memmap2", + "rustix 1.1.5", + "thiserror 2.0.21", + "tracing", + "wayland-backend", + "wayland-client", + "wayland-protocols", + "wayland-protocols-wlr", +] + [[package]] name = "linebender_resource_handle" version = "0.1.1" @@ -4422,6 +4188,12 @@ version = "0.4.15" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d26c52dbd32dccf2d10cac7725f8eae5296885fb5703b261f7d0a0739ec807ab" +[[package]] +name = "linux-raw-sys" +version = "0.9.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cd945864f07fe9f5371a27ad7b52a172b4b499999f1d97574c9fa68373937e12" + [[package]] name = "linux-raw-sys" version = "0.12.1" @@ -4477,17 +4249,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d89e7ee0cfbedfc4da3340218492196241d89eefb6dab27de5df917a6d2e78cf" dependencies = [ "cfg-if", - "digest 0.10.7", -] - -[[package]] -name = "md-5" -version = "0.11.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "69b6441f590336821bb897fb28fc622898ccceb1d6cea3fde5ea86b090c4de98" -dependencies = [ - "cfg-if", - "digest 0.11.3", + "digest", ] [[package]] @@ -4530,6 +4292,12 @@ dependencies = [ "walkdir", ] +[[package]] +name = "minimal-lexical" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a" + [[package]] name = "miniz_oxide" version = "0.8.9" @@ -4589,28 +4357,6 @@ dependencies = [ "windows-sys 0.61.2", ] -[[package]] -name = "multiversion" -version = "0.8.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eb8a68be21d0755f83bfe47e79b896cc732687cf1903f0e50585e8d6ecc53076" -dependencies = [ - "multiversion-macros", - "target-features", -] - -[[package]] -name = "multiversion-macros" -version = "0.8.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a05e0c3c3e4edaa21d87c645852ed0b0c3663752bcc6ec43353bd6189dce35e1" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.119", - "target-features", -] - [[package]] name = "multiversion_no_op" version = "1.0.0" @@ -4703,6 +4449,34 @@ version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2bf50223579dc7cdcfb3bfcacf7069ff68243f8c363f62ffa99cf000a6b9c451" +[[package]] +name = "nom" +version = "7.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d273983c5a657a70a3e8f2a01329822f3b8c8172b73826411a55751e404a0a4a" +dependencies = [ + "memchr", + "minimal-lexical", +] + +[[package]] +name = "nom" +version = "8.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "df9761775871bdef83bee530e60050f7e54b1105350d6884eb0fb4f46c2f9405" +dependencies = [ + "memchr", +] + +[[package]] +name = "ntapi" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c3b335231dfd352ffb0f8017f3b6027a4917f7df785ea2143d8af2adc66980ae" +dependencies = [ + "winapi", +] + [[package]] name = "nu-ansi-term" version = "0.50.3" @@ -4794,8 +4568,8 @@ dependencies = [ "block2 0.5.1", "libc", "objc2 0.5.3", - "objc2-core-data", - "objc2-core-image", + "objc2-core-data 0.2.2", + "objc2-core-image 0.2.2", "objc2-foundation 0.2.2", "objc2-quartz-core 0.2.2", ] @@ -4808,8 +4582,48 @@ checksum = "d49e936b501e5c5bf01fda3a9452ff86dc3ea98ad5f283e1455153142d97518c" dependencies = [ "bitflags 2.13.2", "block2 0.6.2", + "libc", "objc2 0.6.5", + "objc2-cloud-kit 0.3.2", + "objc2-core-data 0.3.2", "objc2-core-foundation", + "objc2-core-graphics", + "objc2-core-image 0.3.2", + "objc2-core-text", + "objc2-core-video", + "objc2-foundation 0.3.2", + "objc2-quartz-core 0.3.2", +] + +[[package]] +name = "objc2-av-foundation" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "478ae33fcac9df0a18db8302387c666b8ef08a3e2d62b510ca4fc278a384b6c0" +dependencies = [ + "bitflags 2.13.2", + "block2 0.6.2", + "dispatch2", + "objc2 0.6.5", + "objc2-avf-audio", + "objc2-core-audio-types", + "objc2-core-foundation", + "objc2-core-graphics", + "objc2-core-image 0.3.2", + "objc2-core-video", + "objc2-foundation 0.3.2", + "objc2-image-io", + "objc2-media-toolbox", + "objc2-quartz-core 0.3.2", +] + +[[package]] +name = "objc2-avf-audio" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "13a380031deed8e99db00065c45937da434ca987c034e13b87e4441f9e4090be" +dependencies = [ + "objc2 0.6.5", "objc2-foundation 0.3.2", ] @@ -4826,6 +4640,17 @@ dependencies = [ "objc2-foundation 0.2.2", ] +[[package]] +name = "objc2-cloud-kit" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "73ad74d880bb43877038da939b7427bba67e9dd42004a18b809ba7d87cee241c" +dependencies = [ + "bitflags 2.13.2", + "objc2 0.6.5", + "objc2-foundation 0.3.2", +] + [[package]] name = "objc2-contacts" version = "0.2.2" @@ -4837,6 +4662,28 @@ dependencies = [ "objc2-foundation 0.2.2", ] +[[package]] +name = "objc2-core-audio" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e1eebcea8b0dbff5f7c8504f3107c68fc061a3eb44932051c8cf8a68d969c3b2" +dependencies = [ + "dispatch2", + "objc2 0.6.5", + "objc2-core-audio-types", + "objc2-core-foundation", +] + +[[package]] +name = "objc2-core-audio-types" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5a89f2ec274a0cf4a32642b2991e8b351a404d290da87bb6a9a9d8632490bd1c" +dependencies = [ + "bitflags 2.13.2", + "objc2 0.6.5", +] + [[package]] name = "objc2-core-data" version = "0.2.2" @@ -4849,6 +4696,17 @@ dependencies = [ "objc2-foundation 0.2.2", ] +[[package]] +name = "objc2-core-data" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b402a653efbb5e82ce4df10683b6b28027616a2715e90009947d50b8dd298fa" +dependencies = [ + "bitflags 2.13.2", + "objc2 0.6.5", + "objc2-foundation 0.3.2", +] + [[package]] name = "objc2-core-foundation" version = "0.3.2" @@ -4856,7 +4714,9 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2a180dd8642fa45cdb7dd721cd4c11b1cadd4929ce112ebd8b9f5803cc79d536" dependencies = [ "bitflags 2.13.2", + "block2 0.6.2", "dispatch2", + "libc", "objc2 0.6.5", ] @@ -4866,10 +4726,14 @@ version = "0.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e022c9d066895efa1345f8e33e584b9f958da2fd4cd116792e15e07e4720a807" dependencies = [ + "bitflags 2.13.2", + "block2 0.6.2", "dispatch2", + "libc", "objc2 0.6.5", "objc2-core-foundation", "objc2-io-surface", + "objc2-metal 0.3.2", ] [[package]] @@ -4884,6 +4748,16 @@ dependencies = [ "objc2-metal 0.2.2", ] +[[package]] +name = "objc2-core-image" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e5d563b38d2b97209f8e861173de434bd0214cf020e3423a52624cd1d989f006" +dependencies = [ + "objc2 0.6.5", + "objc2-foundation 0.3.2", +] + [[package]] name = "objc2-core-location" version = "0.2.2" @@ -4896,6 +4770,22 @@ dependencies = [ "objc2-foundation 0.2.2", ] +[[package]] +name = "objc2-core-media" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "05ec576860167a15dd9fce7fbee7512beb4e31f532159d3482d1f9c6caedf31d" +dependencies = [ + "bitflags 2.13.2", + "block2 0.6.2", + "dispatch2", + "objc2 0.6.5", + "objc2-core-audio", + "objc2-core-audio-types", + "objc2-core-foundation", + "objc2-core-video", +] + [[package]] name = "objc2-core-text" version = "0.3.2" @@ -4903,7 +4793,24 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0cde0dfb48d25d2b4862161a4d5fcc0e3c24367869ad306b0c9ec0073bfed92d" dependencies = [ "bitflags 2.13.2", + "objc2 0.6.5", "objc2-core-foundation", + "objc2-core-graphics", +] + +[[package]] +name = "objc2-core-video" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d425caf1df73233f29fd8a5c3e5edbc30d2d4307870f802d18f00d83dc5141a6" +dependencies = [ + "bitflags 2.13.2", + "block2 0.6.2", + "objc2 0.6.5", + "objc2-core-foundation", + "objc2-core-graphics", + "objc2-io-surface", + "objc2-metal 0.3.2", ] [[package]] @@ -4933,10 +4840,32 @@ checksum = "e3e0adef53c21f888deb4fa59fc59f7eb17404926ee8a6f59f5df0fd7f9f3272" dependencies = [ "bitflags 2.13.2", "block2 0.6.2", + "libc", "objc2 0.6.5", "objc2-core-foundation", ] +[[package]] +name = "objc2-image-io" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32b0446e98cf4a784cc7a0177715ff317eeaa8463841c616cfc78aa4f953c4ea" +dependencies = [ + "objc2 0.6.5", + "objc2-core-foundation", + "objc2-core-graphics", +] + +[[package]] +name = "objc2-io-kit" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "33fafba39597d6dc1fb709123dfa8289d39406734be322956a69f0931c73bb15" +dependencies = [ + "libc", + "objc2-core-foundation", +] + [[package]] name = "objc2-io-surface" version = "0.3.2" @@ -4960,6 +4889,18 @@ dependencies = [ "objc2-foundation 0.2.2", ] +[[package]] +name = "objc2-media-toolbox" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "edd9fdde720df3da7046bb9097811000c1e7ab5cd579fa89d96b27d56781fb30" +dependencies = [ + "objc2 0.6.5", + "objc2-core-audio-types", + "objc2-core-foundation", + "objc2-core-media", +] + [[package]] name = "objc2-metal" version = "0.2.2" @@ -5030,9 +4971,9 @@ dependencies = [ "bitflags 2.13.2", "block2 0.5.1", "objc2 0.5.3", - "objc2-cloud-kit", - "objc2-core-data", - "objc2-core-image", + "objc2-cloud-kit 0.2.2", + "objc2-core-data 0.2.2", + "objc2-core-image 0.2.2", "objc2-core-location", "objc2-foundation 0.2.2", "objc2-link-presentation", @@ -5084,22 +5025,18 @@ version = "1.21.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50" +[[package]] +name = "once_cell_polyfill" +version = "1.70.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "384b8ab6d37215f3c5301a95a4accb5d64aa607f1fcb26a11b5303878451b4fe" + [[package]] name = "oorandom" version = "11.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d6790f58c7ff633d8771f42965289203411a5e5c68388703c06e14f24770b41e" -[[package]] -name = "open" -version = "5.4.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8d8c8b8e725ad26404d6896eb2f064294a0a7b4f1d9120210d85544684c4ca95" -dependencies = [ - "is-wsl", - "libc", -] - [[package]] name = "openssl-probe" version = "0.2.1" @@ -5141,6 +5078,16 @@ dependencies = [ "pin-project-lite", ] +[[package]] +name = "os_pipe" +version = "1.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7d8fae84b431384b68627d0f9b3b1245fcf9f46f6c0e3dc902e9dce64edd1967" +dependencies = [ + "libc", + "windows-sys 0.61.2", +] + [[package]] name = "parking" version = "2.2.1" @@ -5226,6 +5173,17 @@ version = "2.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9b4f627cb1b25917193a259e49bdad08f671f8d9708acfd5fe0a8c1455d87220" +[[package]] +name = "petgraph" +version = "0.8.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8701b58ea97060d5e5b155d383a69952a60943f0e6dfe30b04c287beb0b27455" +dependencies = [ + "fixedbitset", + "hashbrown 0.15.5", + "indexmap", +] + [[package]] name = "phf" version = "0.13.1" @@ -5321,6 +5279,31 @@ dependencies = [ "futures-io", ] +[[package]] +name = "pipewire" +version = "0.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bde71084c4e25959d68f1ea54daa75e5ecdb338e5caf0b5510143b79baa32d5c" +dependencies = [ + "bitflags 2.13.2", + "libc", + "libspa", + "libspa-sys", + "pipewire-sys", + "rustix 1.1.5", +] + +[[package]] +name = "pipewire-sys" +version = "0.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9ce653f53e63e5b93853218092ee9a8906a5d082c92f3f1db26316955dd63ce0" +dependencies = [ + "bindgen", + "libspa-sys", + "system-deps", +] + [[package]] name = "pkg-config" version = "0.3.34" @@ -5372,16 +5355,6 @@ dependencies = [ "miniz_oxide 0.8.9", ] -[[package]] -name = "poll-promise" -version = "0.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5f6a58fecbf9da8965bcdb20ce4fd29788d1acee68ddbb64f0ba1b81bccdb7df" -dependencies = [ - "document-features", - "static_assertions", -] - [[package]] name = "polling" version = "3.11.0" @@ -5773,7 +5746,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4edc8db0d972de88e53a085b1f01fb3fbdae7bb0cb7a0ce2b2f8285a412fe3ef" dependencies = [ "bytemuck", - "foldhash", + "foldhash 0.2.0", "font-types 0.12.7", "once_cell", "yoke", @@ -5816,6 +5789,29 @@ dependencies = [ "thiserror 2.0.21", ] +[[package]] +name = "regex" +version = "1.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f020237b6c8eed93db2e2cb53c00c60a8e1bc73da7d073199a1180401450218d" +dependencies = [ + "aho-corasick", + "memchr", + "regex-automata", + "regex-syntax", +] + +[[package]] +name = "regex-automata" +version = "0.4.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ad8553b9b26413251cbf30e620595c7a41b3887f03da04579c0e6b0d6a06b4b2" +dependencies = [ + "aho-corasick", + "memchr", + "regex-syntax", +] + [[package]] name = "regex-lite" version = "0.1.9" @@ -5886,9 +5882,9 @@ dependencies = [ "log", "pico-args", "rgb", - "svgtypes 0.15.3", + "svgtypes", "tiny-skia", - "usvg 0.45.1", + "usvg", ] [[package]] @@ -6159,6 +6155,12 @@ dependencies = [ "windows-sys 0.61.2", ] +[[package]] +name = "scoped-tls" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e1cf6437eb19a8f4a6cc0f7dca544973b0b78843adbfeb3683d1a94a0024a294" + [[package]] name = "scopeguard" version = "1.2.0" @@ -6304,18 +6306,7 @@ checksum = "a978451301f4db1d02937a4ab3ccce137717b81826e79b7d49ffe3244a13c3b8" dependencies = [ "cfg-if", "cpufeatures 0.2.17", - "digest 0.10.7", -] - -[[package]] -name = "sha1" -version = "0.11.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "aacc4cc499359472b4abe1bf11d0b12e688af9a805fa5e3016f9a386dc2d0214" -dependencies = [ - "cfg-if", - "cpufeatures 0.3.1", - "digest 0.11.3", + "digest", ] [[package]] @@ -6326,19 +6317,14 @@ checksum = "a7507d819769d01a365ab707794a4084392c824f54a7a6a7862f8c3d0892b283" dependencies = [ "cfg-if", "cpufeatures 0.2.17", - "digest 0.10.7", + "digest", ] [[package]] -name = "sha2" -version = "0.11.1" +name = "shlex" +version = "1.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "47d7069beb7d6ac7b9acd1039986e73443f24234f41074da099d6f994ac9ad19" -dependencies = [ - "cfg-if", - "cpufeatures 0.3.1", - "digest 0.11.3", -] +checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64" [[package]] name = "shlex" @@ -6391,12 +6377,12 @@ checksum = "da90c3d9af638898a5fdc347479b18f950bb0dde11ecf2244f94cd28135da53b" dependencies = [ "aws-lc-rs", "base64 0.22.1", - "const-oid 0.9.6", + "const-oid", "der", - "digest 0.10.7", + "digest", "pem", "rand_core 0.10.1", - "sha2 0.10.9", + "sha2", "signature", "sigstore-types", "spki", @@ -6465,7 +6451,7 @@ dependencies = [ "chrono", "cmpv2", "cms", - "const-oid 0.9.6", + "const-oid", "der", "hex", "rand", @@ -6504,7 +6490,7 @@ dependencies = [ "base64 0.22.1", "chrono", "cms", - "const-oid 0.9.6", + "const-oid", "hex", "pem", "rustls-pki-types", @@ -6688,6 +6674,16 @@ version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f" +[[package]] +name = "story-render" +version = "0.1.0" +dependencies = [ + "craft-ui", + "craft-ui-gallery", + "egui", + "image", +] + [[package]] name = "strict-num" version = "0.1.1" @@ -6708,6 +6704,12 @@ dependencies = [ "unicode-properties", ] +[[package]] +name = "strsim" +version = "0.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f" + [[package]] name = "strum" version = "0.28.0" @@ -6757,16 +6759,6 @@ dependencies = [ "siphasher", ] -[[package]] -name = "svgtypes" -version = "0.16.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9f12b12995e3638c70618c1facb1ce65302f6a6f706b675f07c58a5d7391120e" -dependencies = [ - "kurbo 0.13.1", - "siphasher", -] - [[package]] name = "symphonia" version = "0.6.1" @@ -7028,6 +7020,20 @@ dependencies = [ "web-sys", ] +[[package]] +name = "sysinfo" +version = "0.39.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d2071df9448915b71c4fe6d25deaf1c22f12bd234f01540b77312bb8e41361e6" +dependencies = [ + "libc", + "memchr", + "ntapi", + "objc2-core-foundation", + "objc2-io-kit", + "windows", +] + [[package]] name = "system-configuration" version = "0.7.0" @@ -7049,6 +7055,19 @@ dependencies = [ "libc", ] +[[package]] +name = "system-deps" +version = "7.0.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "396a35feb67335377e0251fcbc1092fc85c484bd4e3a7a54319399da127796e7" +dependencies = [ + "cfg-expr", + "heck", + "pkg-config", + "toml", + "version-compare", +] + [[package]] name = "tar" version = "0.4.46" @@ -7061,10 +7080,10 @@ dependencies = [ ] [[package]] -name = "target-features" -version = "0.1.6" +name = "target-lexicon" +version = "0.13.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c1bbb9f3c5c463a01705937a24fdabc5047929ac764b2d5b9cf681c1f5041ed5" +checksum = "adb6935a6f5c20170eeceb1a3835a49e12e19d792f6dd344ccc76a985ca5a6ca" [[package]] name = "tempfile" @@ -7138,7 +7157,7 @@ dependencies = [ "flate2", "half", "quick-error 2.0.1", - "weezl 0.1.12", + "weezl", "zune-jpeg", ] @@ -7415,6 +7434,17 @@ dependencies = [ "once_cell", ] +[[package]] +name = "tree_magic_mini" +version = "3.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b8765b90061cba6c22b5831f675da109ae5561588290f9fa2317adab2714d5a6" +dependencies = [ + "memchr", + "nom 8.0.0", + "petgraph", +] + [[package]] name = "try-lock" version = "0.2.5" @@ -7531,12 +7561,6 @@ version = "1.13.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c6f5d3c3b1bf09027a88a6bc961fc00497d651009560b5463668dc81b0fa87a8" -[[package]] -name = "unicode-vo" -version = "0.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b1d386ff53b415b7fe27b50bb44679e2cc4660272694b7b6f3326d8480823a94" - [[package]] name = "unicode-width" version = "0.2.2" @@ -7614,38 +7638,11 @@ dependencies = [ "simplecss", "siphasher", "strict-num", - "svgtypes 0.15.3", + "svgtypes", "tiny-skia-path 0.11.4", "xmlwriter", ] -[[package]] -name = "usvg" -version = "0.48.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "977d0a4abdef933f424a99fe09f95576e089b90aebc6f016a3bc813762493e91" -dependencies = [ - "base64 0.23.1", - "data-url", - "fontdb", - "harfrust", - "imagesize 0.15.0", - "kurbo 0.13.1", - "log", - "pico-args", - "roxmltree 0.21.2", - "simplecss", - "siphasher", - "skrifa 0.44.0", - "strict-num", - "svgtypes 0.16.2", - "tiny-skia-path 0.12.0", - "unicode-bidi", - "unicode-script", - "unicode-vo", - "xmlwriter", -] - [[package]] name = "utf16_iter" version = "1.0.5" @@ -7664,6 +7661,12 @@ version = "1.0.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b6c140620e7ffbb22c2dee59cafe6084a59b5ffc27a8859a5f0d494b5d52b6be" +[[package]] +name = "utf8parse" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821" + [[package]] name = "uuid" version = "1.27.0" @@ -7761,6 +7764,12 @@ dependencies = [ "windows-sys 0.61.2", ] +[[package]] +name = "version-compare" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "03c2856837ef78f57382f06b2b8563a2f512f7185d732608fd9176cb3b8edf0e" + [[package]] name = "version_check" version = "0.9.5" @@ -7914,6 +7923,7 @@ dependencies = [ "cc", "downcast-rs", "rustix 1.1.5", + "scoped-tls", "smallvec", "wayland-sys", ] @@ -7930,6 +7940,31 @@ dependencies = [ "wayland-scanner", ] +[[package]] +name = "wayland-protocols" +version = "0.32.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "23d0c813de3daa2ed6520af85a3bd49b0e722a3078506899aa9686fea58dc4b6" +dependencies = [ + "bitflags 2.13.2", + "wayland-backend", + "wayland-client", + "wayland-scanner", +] + +[[package]] +name = "wayland-protocols-wlr" +version = "0.3.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eb04e52f7836d7c7976c78ca0250d61e33873c34156a2a1fc9474828ec268234" +dependencies = [ + "bitflags 2.13.2", + "wayland-backend", + "wayland-client", + "wayland-protocols", + "wayland-scanner", +] + [[package]] name = "wayland-scanner" version = "0.31.11" @@ -7941,6 +7976,19 @@ dependencies = [ "quote", ] +[[package]] +name = "wayland-server" +version = "0.31.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0dde9c29be0f723a573977de51ee455bf3dfa03652730a74f9dd3b337e374d75" +dependencies = [ + "bitflags 2.13.2", + "downcast-rs", + "rustix 1.1.5", + "wayland-backend", + "wayland-scanner", +] + [[package]] name = "wayland-sys" version = "0.31.11" @@ -7948,7 +7996,9 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d8eab23fefc9e41f8e841df4a9c707e8a8c4ed26e944ef69297184de2785e3be" dependencies = [ "dlib", + "libc", "log", + "memoffset", "once_cell", "pkg-config", ] @@ -7997,12 +8047,6 @@ version = "0.1.12" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a28ac98ddc8b9274cb41bb4d9d4d5c425b6020c50c46f25559911905610b4a88" -[[package]] -name = "weezl" -version = "0.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d4ca08e5ef825b65b056d9efbd95c8750683f0a6d0466d02e96dc2e4e360f3d2" - [[package]] name = "wgpu" version = "30.0.1" @@ -8186,6 +8230,28 @@ dependencies = [ "web-sys", ] +[[package]] +name = "widestring" +version = "1.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "72069c3113ab32ab29e5584db3c6ec55d416895e60715417b5b883a357c3e471" + +[[package]] +name = "winapi" +version = "0.3.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419" +dependencies = [ + "winapi-i686-pc-windows-gnu", + "winapi-x86_64-pc-windows-gnu", +] + +[[package]] +name = "winapi-i686-pc-windows-gnu" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" + [[package]] name = "winapi-util" version = "0.1.11" @@ -8195,6 +8261,12 @@ dependencies = [ "windows-sys 0.61.2", ] +[[package]] +name = "winapi-x86_64-pc-windows-gnu" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" + [[package]] name = "windows" version = "0.62.2" @@ -8513,6 +8585,24 @@ version = "0.57.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1ebf944e87a7c253233ad6766e082e3cd714b5d03812acc24c318f549614536e" +[[package]] +name = "wl-clipboard-rs" +version = "0.9.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "959c7ac3b8afde864f7a7448ac16f29b2b83350b7eccbf77fb781c3999aa6848" +dependencies = [ + "libc", + "log", + "os_pipe", + "rustix 1.1.5", + "thiserror 2.0.21", + "tree_magic_mini", + "wayland-backend", + "wayland-client", + "wayland-protocols", + "wayland-protocols-wlr", +] + [[package]] name = "write-fonts" version = "0.48.1" @@ -8592,9 +8682,9 @@ version = "0.2.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1301e935010a701ae5f8655edc0ad17c44bad3ac5ce8c39185f75453b720ae94" dependencies = [ - "const-oid 0.9.6", + "const-oid", "der", - "sha1 0.10.7", + "sha1", "signature", "spki", "tls_codec", @@ -8621,6 +8711,48 @@ dependencies = [ "rustix 1.1.5", ] +[[package]] +name = "xcap" +version = "0.9.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "da270fd7c8581d43d731cb690bcc791fc0a7b3bc96e131a4b6552d0379640a9e" +dependencies = [ + "dispatch2", + "image", + "libwayshot-xcap", + "log", + "objc2 0.6.5", + "objc2-app-kit 0.3.2", + "objc2-av-foundation", + "objc2-core-foundation", + "objc2-core-graphics", + "objc2-core-media", + "objc2-core-video", + "objc2-foundation 0.3.2", + "percent-encoding", + "pipewire", + "rand", + "scopeguard", + "serde", + "thiserror 2.0.21", + "url", + "widestring", + "windows", + "xcb", + "zbus", +] + +[[package]] +name = "xcb" +version = "1.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a6c2ad15e0e922856ee89afe862b8992334bbe7953adad56cd1199358cb30566" +dependencies = [ + "bitflags 2.13.2", + "libc", + "quick-xml 0.41.0", +] + [[package]] name = "xkbcommon-dl" version = "0.4.2" @@ -8900,15 +9032,6 @@ version = "0.5.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d56377fd46368984a170bc5aac5567e52ca5da874caa60bea39fcbca78fb658b" -[[package]] -name = "zune-inflate" -version = "0.2.54" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "73ab332fe2f6680068f3582b16a24f90ad7096d5d39b974d1c0aff0125116f02" -dependencies = [ - "simd-adler32", -] - [[package]] name = "zune-jpeg" version = "0.5.15" @@ -8918,15 +9041,6 @@ dependencies = [ "zune-core", ] -[[package]] -name = "zune-jpegxl" -version = "0.5.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cba11ecd07cc23351500e840ae03841b7e4997923ec8e4832ee3ae199ea0b6b4" -dependencies = [ - "zune-core", -] - [[package]] name = "zvariant" version = "5.15.1" @@ -8971,9 +9085,19 @@ dependencies = [ [[patch.unused]] name = "egui_demo_lib" version = "0.37.0" -source = "git+https://github.com/storytold/egui.git?rev=6d518fc799681571963842f95b55a6b68431b15a#6d518fc799681571963842f95b55a6b68431b15a" +source = "git+https://github.com/aiongg/egui.git?rev=4b93a86c52348eb53e883c9b6b9f59c573608e07#4b93a86c52348eb53e883c9b6b9f59c573608e07" + +[[patch.unused]] +name = "egui_extras" +version = "0.37.0" +source = "git+https://github.com/aiongg/egui.git?rev=4b93a86c52348eb53e883c9b6b9f59c573608e07#4b93a86c52348eb53e883c9b6b9f59c573608e07" [[patch.unused]] name = "egui_inspection" version = "0.37.0" -source = "git+https://github.com/storytold/egui.git?rev=6d518fc799681571963842f95b55a6b68431b15a#6d518fc799681571963842f95b55a6b68431b15a" +source = "git+https://github.com/aiongg/egui.git?rev=4b93a86c52348eb53e883c9b6b9f59c573608e07#4b93a86c52348eb53e883c9b6b9f59c573608e07" + +[[patch.unused]] +name = "egui_system_font_provider" +version = "0.37.0" +source = "git+https://github.com/aiongg/egui.git?rev=4b93a86c52348eb53e883c9b6b9f59c573608e07#4b93a86c52348eb53e883c9b6b9f59c573608e07" diff --git a/Cargo.toml b/Cargo.toml index 303922646..d6ff48c3c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,6 +15,7 @@ repository = "https://github.com/storytold/craft-libs" craft-platform = { path = "crates/platform" } craft-aep = { path = "crates/aep" } craft-affinity = { path = "crates/affinity" } +craft-win32 = { path = "crates/win32" } craft-ai-core = { path = "crates/ai-core" } craft-pdf = { path = "crates/pdf", version = "=0.1.0" } craft-pdn = { path = "crates/pdn" } @@ -27,6 +28,7 @@ bytemuck = "1" kurbo = "0.13" thiserror = "2" craft-aaf = { path = "crates/aaf" } +craft-behavior = { path = "crates/behavior" } craft-atomic = { path = "crates/atomic" } craft-captions = { path = "crates/captions" } craft-cfb = { path = "crates/cfb" } @@ -36,6 +38,11 @@ craft-crs = { path = "crates/crs" } craft-crw = { path = "crates/crw" } craft-csv = { path = "crates/csv" } craft-dav = { path = "crates/dav" } +craft-automation = { path = "crates/automation" } +craft-browse = { path = "crates/browse" } +craft = { path = "crates/craft" } +craft-color = { path = "crates/color" } +craft-design-lint = { path = "crates/design-lint" } craft-dialogs = { path = "crates/dialogs" } craft-doc-binary = { path = "crates/doc-binary" } craft-docx = { path = "crates/docx" } @@ -45,6 +52,7 @@ craft-eps = { path = "crates/eps" } craft-doc = { path = "crates/doc" } craft-docpath = { path = "crates/docpath" } craft-dpx = { path = "crates/dpx" } +craft-draw = { path = "crates/draw" } craft-ecproj-format = { path = "crates/ecproj-format" } craft-figma-rest = { path = "crates/figma-rest" } craft-exr = { path = "crates/exr" } @@ -61,15 +69,18 @@ craft-html = { path = "crates/html" } craft-heif = { path = "crates/heif" } craft-fig = { path = "crates/fig" } craft-fonts-build = { path = "crates/fonts-build" } +craft-host = { path = "crates/host" } craft-i18n = { path = "crates/i18n" } craft-idml = { path = "crates/idml" } craft-jmap = { path = "crates/jmap" } craft-ical = { path = "crates/ical" } +craft-imaging = { path = "crates/imaging" } craft-jpeg = { path = "crates/jpeg" } craft-kiwi = { path = "crates/kiwi" } craft-keymap = { path = "crates/keymap" } craft-assuan = { path = "crates/assuan" } craft-kra = { path = "crates/kra" } +craft-layers = { path = "crates/layers" } craft-audio = { path = "crates/audio" } # No default features, so craft-audio's `encode` builds craft-media without `isobmff`. craft-latex = { path = "crates/latex" } @@ -94,6 +105,7 @@ craft-penpot = { path = "crates/penpot" } craft-pcraft-format = { path = "crates/pcraft-format" } craft-plotter = { path = "crates/plotter" } craft-prepress = { path = "crates/prepress" } +craft-pages = { path = "crates/pages" } craft-print = { path = "crates/print" } craft-proof = { path = "crates/proof" } craft-raster-codecs = { path = "crates/raster-codecs" } @@ -104,6 +116,7 @@ craft-rtf = { path = "crates/rtf" } craft-raw = { path = "crates/raw" } craft-sheet = { path = "crates/sheet" } craft-sketch = { path = "crates/sketch" } +craft-review = { path = "crates/review" } craft-settings = { path = "crates/settings" } craft-silhouette-studio = { path = "crates/silhouette-studio" } craft-svg = { path = "crates/svg" } @@ -114,7 +127,18 @@ craft-tga = { path = "crates/tga" } craft-timeline = { path = "crates/timeline" } craft-tiff = { path = "crates/tiff" } craft-metadata = { path = "crates/metadata" } +craft-table = { path = "crates/table" } +craft-theme = { path = "crates/theme" } +craft-theme-store = { path = "crates/theme-store" } craft-ui = { path = "crates/ui" } +craft-ui-canvas = { path = "crates/ui-canvas" } +craft-ui-contract = { path = "crates/ui-contract" } +craft-ui-panels = { path = "crates/ui-panels" } +craft-ui-patterns = { path = "crates/ui-patterns" } +craft-ui-shell = { path = "crates/ui-shell" } +craft-ui-test-kit = { path = "crates/ui-test-kit" } +craft-ui-widgets = { path = "crates/ui-widgets" } +craft-ui-macros = { path = "crates/ui-macros" } craft-update = { path = "crates/update" } craft-vcard = { path = "crates/vcard" } craft-vectorcraft-format = { path = "crates/vectorcraft-format" } @@ -131,11 +155,15 @@ craft-ews = { path = "crates/ews" } craft-video = { path = "crates/video" } craft-web-api = { path = "crates/web-api" } craft-window = { path = "crates/window" } +# egui's colour types alone, for crates that convert to and from them without egui. +ecolor = { version = "0.37", default-features = false } craft-web-host = { path = "crates/web-host" } craft-webp = { path = "crates/webp" } egui = { version = "0.37", default-features = false } +bitflags = "2" md5 = { package = "md-5", version = "0.10", default-features = false } rayon = "1" +smallvec = "1" serde = { version = "1", features = ["derive"] } serde_json = "1" proptest = "1" @@ -146,6 +174,9 @@ chrono = { version = "0.4.45", default-features = false, features = ["std"] } [workspace.lints.rust] unsafe_code = "forbid" +# Every public item has a doc comment; a self-evident field or variant carries +# `#[allow(missing_docs)]` instead. +missing_docs = "warn" unexpected_cfgs = { level = "warn", check-cfg = ["cfg(craft_pdf_unicode_fixtures)"] } [workspace.lints.clippy] @@ -165,20 +196,20 @@ hayro-jbig2 = { path = "vendor/hayro-jbig2" } hayro-cmap = { path = "vendor/hayro-cmap" } hayro-postscript = { path = "vendor/hayro-postscript" } linesweeper = { path = "vendor/linesweeper" } -ecolor = { git = "https://github.com/storytold/egui.git", rev = "6d518fc799681571963842f95b55a6b68431b15a" } -emath = { git = "https://github.com/storytold/egui.git", rev = "6d518fc799681571963842f95b55a6b68431b15a" } -epaint = { git = "https://github.com/storytold/egui.git", rev = "6d518fc799681571963842f95b55a6b68431b15a" } -epaint_default_fonts = { git = "https://github.com/storytold/egui.git", rev = "6d518fc799681571963842f95b55a6b68431b15a" } -egui = { git = "https://github.com/storytold/egui.git", rev = "6d518fc799681571963842f95b55a6b68431b15a" } -egui-winit = { git = "https://github.com/storytold/egui.git", rev = "6d518fc799681571963842f95b55a6b68431b15a" } -egui-wgpu = { git = "https://github.com/storytold/egui.git", rev = "6d518fc799681571963842f95b55a6b68431b15a" } -egui_glow = { git = "https://github.com/storytold/egui.git", rev = "6d518fc799681571963842f95b55a6b68431b15a" } -egui_extras = { git = "https://github.com/storytold/egui.git", rev = "6d518fc799681571963842f95b55a6b68431b15a" } -egui_kittest = { git = "https://github.com/storytold/egui.git", rev = "6d518fc799681571963842f95b55a6b68431b15a" } -egui_system_font_provider = { git = "https://github.com/storytold/egui.git", rev = "6d518fc799681571963842f95b55a6b68431b15a" } -eframe = { git = "https://github.com/storytold/egui.git", rev = "6d518fc799681571963842f95b55a6b68431b15a" } -egui_demo_lib = { git = "https://github.com/storytold/egui.git", rev = "6d518fc799681571963842f95b55a6b68431b15a" } -egui_inspection = { git = "https://github.com/storytold/egui.git", rev = "6d518fc799681571963842f95b55a6b68431b15a" } +ecolor = { git = "https://github.com/aiongg/egui.git", rev = "4b93a86c52348eb53e883c9b6b9f59c573608e07" } +emath = { git = "https://github.com/aiongg/egui.git", rev = "4b93a86c52348eb53e883c9b6b9f59c573608e07" } +epaint = { git = "https://github.com/aiongg/egui.git", rev = "4b93a86c52348eb53e883c9b6b9f59c573608e07" } +epaint_default_fonts = { git = "https://github.com/aiongg/egui.git", rev = "4b93a86c52348eb53e883c9b6b9f59c573608e07" } +egui = { git = "https://github.com/aiongg/egui.git", rev = "4b93a86c52348eb53e883c9b6b9f59c573608e07" } +egui-winit = { git = "https://github.com/aiongg/egui.git", rev = "4b93a86c52348eb53e883c9b6b9f59c573608e07" } +egui-wgpu = { git = "https://github.com/aiongg/egui.git", rev = "4b93a86c52348eb53e883c9b6b9f59c573608e07" } +egui_glow = { git = "https://github.com/aiongg/egui.git", rev = "4b93a86c52348eb53e883c9b6b9f59c573608e07" } +egui_extras = { git = "https://github.com/aiongg/egui.git", rev = "4b93a86c52348eb53e883c9b6b9f59c573608e07" } +egui_kittest = { git = "https://github.com/aiongg/egui.git", rev = "4b93a86c52348eb53e883c9b6b9f59c573608e07" } +egui_system_font_provider = { git = "https://github.com/aiongg/egui.git", rev = "4b93a86c52348eb53e883c9b6b9f59c573608e07" } +eframe = { git = "https://github.com/aiongg/egui.git", rev = "4b93a86c52348eb53e883c9b6b9f59c573608e07" } +egui_demo_lib = { git = "https://github.com/aiongg/egui.git", rev = "4b93a86c52348eb53e883c9b6b9f59c573608e07" } +egui_inspection = { git = "https://github.com/aiongg/egui.git", rev = "4b93a86c52348eb53e883c9b6b9f59c573608e07" } winit = { git = "https://github.com/storytold/winit.git", rev = "a517b3846ee8457d84ee4975110bfda6797c44dc" } # symphonia's FLAC decoder restores LPC samples as `residual + (prediction as i32)`. In a valid @@ -196,3 +227,46 @@ opt-level = 3 # 2 MiB stack of a test thread. The apps this reader came from build their crates at this level. [profile.dev.package.craft-affinity] opt-level = 1 +# Dev and test builds never run LTO: with `lto = false` (cargo's default) rustc runs thin-local LTO across every +# optimised crate's 256 codegen units on each rebuild, which multiplied the incremental rebuild of the framework +# crates. Off, a one-line edit re-optimises only the changed units. +[profile.dev] +lto = "off" + +# Dependencies (egui, rendering, text shaping, syn) run optimised in dev and test builds, so +# screen tests, design-lint and the debug gallery run at a usable speed. They build once per +# target dir; the workspace's own crates stay unoptimised and incremental. +[profile.dev.package."*"] +opt-level = 2 + +# The workspace crates whose code runs in every screen-test frame (the framework runtime, the theme's colour maths +# and the behaviour cores), and craft-proof, whose tests parse and check whole dictionaries, build at opt-level 1: +# unoptimised, they made the test binaries several times slower. The crates above the runtime (widgets, panels, +# canvas, patterns, shell) stay at opt-level 0: their code is a few percent of a frame, and at opt-level 0 a one-line +# edit rebuilds in seconds instead of the better part of a minute. +[profile.dev.package.craft-ui-contract] +opt-level = 1 +[profile.dev.package.craft-theme] +opt-level = 1 +[profile.dev.package.craft-behavior] +opt-level = 1 +[profile.dev.package.craft-proof] +opt-level = 1 + +# The gallery on the Mac: optimised like release, but the workspace's crates build in many small +# units, incrementally, so a change to craft-ui rebuilds in minutes. Dependencies keep release +# settings and build once in target/gallery. `cargo run --profile gallery -p craft-ui-gallery`. +[profile.gallery] +inherits = "release" +incremental = true +codegen-units = 256 +opt-level = 1 + +# The workspace's own crates build at opt-level 1 in the gallery profile: rustc shares generic instantiations across +# crates at opt-level 0, 1, s and z only, so at 1 a change in a framework crate no longer makes every dependant +# re-generate its own copies of that crate's generics and inlined functions (a one-line edit rebuilt the gallery in +# 25 s at opt-level 1 and 69–84 s at 3). `package."*"` matches the dependencies only: they keep release optimisation, +# so this changes nothing in their settings. +[profile.gallery.package."*"] +codegen-units = 16 +opt-level = 3 diff --git a/NOTICE b/NOTICE index abb651318..6753d6b94 100644 --- a/NOTICE +++ b/NOTICE @@ -53,6 +53,12 @@ craft-proof Language data, embedded at build time from craft-i18n's language-dat OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. crates/text/assets/hyphen/en-us.pat: CC0-1.0, trained from en-us.dic by DesignCraft's trainer. +crates/text/assets/spell/en-us-scowl-50.txt.deflate: SCOWL (Spell Checker Oriented Word Lists) + 2020.12.07, size 50, American English, Copyright 2000-2018 by Kevin Atkinson, http://wordlist.aspell.net/. + Permission to use, copy, modify, distribute and sell these word lists is granted without fee + provided the copyright and permission notice appears in all copies; the full notice, with the + notices of the lists SCOWL draws on, is in crates/text/assets/spell/LICENSE-SCOWL.txt and must + ship with any application that enables craft-text's `spell` feature. Hyphenation patterns for other languages, embedded through the hypher crate only when the matching craft-text feature is enabled (none are by default). They come from hyph-utf8, https://github.com/hyphenation/tex-hyphen, as packaged in https://github.com/typst/hypher diff --git a/README.md b/README.md index fba3a4cff..d8a53dd50 100644 --- a/README.md +++ b/README.md @@ -26,18 +26,19 @@ craft- = { git = "https://github.com/storytold/craft-libs", rev = " = { git = "https://github.com/storytold/craft-libs", rev = " = { git = "https://github.com/storytold/craft-libs", rev = " = { git = "https://github.com/storytold/craft-libs", rev = " = { git = "https://github.com/storytold/craft-libs", rev = " = { git = "https://github.com/storytold/craft-libs", rev = " = { git = "https://github.com/storytold/craft-libs", rev = " = { git = "https://github.com/storytold/craft-libs", rev = "` with the document as a type parameter, `TileRef`, the entry paths, the manifest decode limits and the migration runner. The document model stays in PhotoCraft. @@ -271,7 +288,6 @@ craft- = { git = "https://github.com/storytold/craft-libs", rev = " = { git = "https://github.com/storytold/craft-libs", rev = " = { git = "https://github.com/storytold/craft-libs", rev = " = { git = "https://github.com/storytold/craft-libs", rev = " cargo test -p craft-crw --release --test samples`. +`CRAFT_CRW_SAMPLES= cargo test -p craft-crw --release -- integration::samples`. """ import argparse diff --git a/scripts/plate-check.sh b/scripts/plate-check.sh index d10a4a90f..946182a27 100755 --- a/scripts/plate-check.sh +++ b/scripts/plate-check.sh @@ -11,11 +11,11 @@ fi cd "$root" case "${1:-}" in "") - cargo test -p craft-plate-test --test ghostscript -- --ignored --nocapture + cargo test -p craft-plate-test -- integration::ghostscript --ignored --nocapture echo "report: ${CARGO_TARGET_DIR:-target}/plate-test/report.md" ;; --flatten) - cargo test -p craft-prepress --features flatten --test flatten_plates -- --ignored --nocapture + cargo test -p craft-prepress --features flatten -- integration::flatten_plates --ignored --nocapture echo "report: ${CARGO_TARGET_DIR:-target}/plate-test/flattened/report.md" ;; *) diff --git a/tools/cl b/tools/cl new file mode 100755 index 000000000..ea29217fd --- /dev/null +++ b/tools/cl @@ -0,0 +1,258 @@ +#!/usr/bin/env -S python3 -I +"""The craft-libs build loop: cargo with one fixed feature set, so every local build shares one variant of each crate. + + cl check [cargo args] cargo check -p --tests, canonical features + cl test [cargo args] [-- test args] cargo test -p --tests, canonical features + cl build gallery [cargo args] the debug gallery binary (target/debug/craft-ui-gallery) + cl build [cargo args] cargo build -p , canonical features + cl render [--story ] [--out ] [--threads N] + the component's stories as PNGs through the story-render bin + cl features print the canonical --features value for + cl doctor check the manifests for drift from the one feature set + cl cargo cargo through the job pool, no features added + +Every cargo command runs through a job-pool launcher when it is on the +PATH, else plain cargo. CARGO_TARGET_DIR defaults to -target when that directory exists beside the worktree. + +Why one feature set: cargo builds a crate once per distinct feature set, and everything above it again. The gallery +turns on craft-ui's `app`, the story renderer `snapshot`, the tests `testing` and the domain crates' `screen-testing`; +a command that leaves one of them off builds a second variant of the framework (minutes) and the dependants above it. +The canonical set for a crate is its own test feature (`screen-testing`, else `testing`) plus, for every crate that +depends on the framework, craft-ui's `app`, `testing` and `snapshot` (or craft-ui-contract's `testing` and `snapshot` +and craft-ui-shell's `app` for the framework crates themselves). Builds that take other features (CI's +`--all-features`, wasm checks) belong on GitHub. docs/development.md has the whole picture. + +Guards: `--all-features`, `--bins` and workspace-wide builds are refused with the reason; after every command, a new +feature variant of a framework crate in the target directory is named, with its feature set; `cl doctor` (also run +before every command, it reads a few manifests) reports manifest lines that would bring the churn back. +""" + +import json +import os +import re +import shutil +import subprocess +import sys + +FRAMEWORK = ["craft-ui-contract", "craft-ui-widgets", "craft-ui-panels", "craft-ui-canvas", "craft-ui-patterns", "craft-ui-shell", "craft-ui"] +ANCHORS = { + # package -> the features of its framework dependencies that every local build keeps on + "craft-ui": ["craft-ui-contract/snapshot", "craft-ui-shell/app"], + "craft-ui-shell": ["app", "craft-ui-contract/snapshot"], + "craft-ui-patterns": ["craft-ui-contract/snapshot"], + "craft-ui-canvas": ["craft-ui-contract/snapshot"], + "craft-ui-panels": ["craft-ui-contract/snapshot"], + "craft-ui-widgets": ["craft-ui-contract/snapshot"], + "craft-ui-contract": ["snapshot"], + "craft-ui-test-kit": ["craft-ui-contract/snapshot"], + "craft-ui-gallery": ["apps", "craft-ui/snapshot"], + "story-render": [], +} +FACADE_ANCHORS = ["craft-ui/app", "craft-ui/testing", "craft-ui/snapshot"] +# Domain crates the story renderer can link, by the crate's short name. +RENDER_FEATURES = { + "automation", "browse", "color", "draw", "imaging", "layers", "menu", "pages", "print", "review", "table", "text", + "theme-store", "timeline", "dialogs", "font-manager", "update", +} +REFUSED = { + "--all-features": "it enables snapshot, system_fonts, color_fonts, all-languages and more, a set no loop uses, which rebuilds every dependency and the whole framework once; CI runs it", + "--bins": "the gallery's binaries are 1 GB links each; build the one you need (`cl build gallery`)", + "--workspace": "a workspace-wide build or test takes the better part of an hour; build the crate you changed, CI runs the rest", + "--all": "a workspace-wide build or test takes the better part of an hour; build the crate you changed, CI runs the rest", + "--all-targets": "it builds every binary and benchmark too; use `cl check` or `cl test` (--tests)", +} +# The manifest lines the one feature set rests on: (file, regex that must match, what its absence brings back). +PINS = [ + ("crates/ui-macros/Cargo.toml", r'^syn = \{[^\n]*"full"[^\n]*"visit"[^\n]*"visit-mut"[^\n]*"fold"[^\n]*"extra-traits"', + "craft-ui-macros must ask syn for full, visit, visit-mut, fold and extra-traits, or any derive crate in a build changes the shared syn and rebuilds the framework"), + ("crates/ui-macros/Cargo.toml", r'^proc-macro2 = \{[^\n]*"span-locations"', + "craft-ui-macros must ask proc-macro2 for span-locations, or a build with design-lint in it changes the shared proc-macro2 and rebuilds the framework"), + ("crates/ui-contract/Cargo.toml", r'^craft-window = \{[^\n]*features = \[[^\]]*"ui"', + "craft-ui-contract must depend on craft-window with ui, or the shell's app flips craft-window under the whole framework"), +] + + +def fail(message): + print(f"cl: {message}", file=sys.stderr) + sys.exit(2) + + +def worktree(): + top = subprocess.run(["git", "rev-parse", "--show-toplevel"], capture_output=True, text=True) + if top.returncode != 0: + fail("not inside a git worktree") + return top.stdout.strip() + + +def metadata(top): + out = subprocess.run( + ["cargo", "metadata", "--no-deps", "--format-version", "1", "--offline"], cwd=top, capture_output=True, text=True + ) + if out.returncode != 0: + fail("cargo metadata failed:\n" + out.stderr) + return {p["name"]: p for p in json.loads(out.stdout)["packages"]} + + +def package(packages, name): + if name in packages: + return packages[name] + if "craft-" + name in packages: + return packages["craft-" + name] + fail(f"no workspace package named {name}") + + +def canonical(packages, name): + """The canonical feature list of a package.""" + p = package(packages, name) + features = [] + if "screen-testing" in p["features"]: + features.append("screen-testing") + elif "testing" in p["features"] and p["name"] != "craft-ui-test-kit": + features.append("testing") + if p["name"] in ANCHORS: + features += ANCHORS[p["name"]] + elif any(d["name"] == "craft-ui" for d in p["dependencies"]): + features += FACADE_ANCHORS + return p["name"], features + + +def doctor(top, packages, quiet=False): + """Manifest lines that would bring the variant churn back. Returns the number of problems.""" + problems = [] + for path, pattern, why in PINS: + text = open(os.path.join(top, path)).read() + if not re.search(pattern, text, re.M): + problems.append(f"{path}: {why}") + for p in packages.values(): + manifest = os.path.relpath(p["manifest_path"], top) + for d in p["dependencies"]: + if d["name"] == "egui" and d["kind"] == "dev" and d["features"]: + problems.append(f"{manifest}: the egui dev-dependency asks for {d['features']}; a feature on a dev-dependency " + "line changes egui under the framework between a crate's tests and its render") + gallery = packages.get("craft-ui-gallery") + if gallery: + for d in gallery["dependencies"]: + if d["name"].startswith("craft-") and "screen-testing" in d["features"] and not d["optional"]: + problems.append(f"crates/ui-gallery/Cargo.toml: {d['name']} must be optional (one feature per domain crate), or the story renderer links every crate") + for problem in problems: + print(f"cl doctor: {problem}", file=sys.stderr) + if not problems and not quiet: + print("cl doctor: the manifests keep the one feature set", file=sys.stderr) + return len(problems) + + +def target_dir(top, env): + if "CARGO_TARGET_DIR" not in env and os.path.isdir(top + "-target"): + env["CARGO_TARGET_DIR"] = top + "-target" + return env.get("CARGO_TARGET_DIR", os.path.join(top, "target")) + + +def variants(target): + """The framework crates' lib variants in the target dir's debug profile: {(crate, hash): features}.""" + found = {} + fp = os.path.join(target, "debug", ".fingerprint") + if not os.path.isdir(fp): + return found + for d in os.listdir(fp): + m = re.match(r"(craft-ui(?:-[a-z]+)?)-([0-9a-f]{16})$", d) + if not m or m.group(1) not in FRAMEWORK: + continue + for f in os.listdir(os.path.join(fp, d)): + if f.startswith("lib-") and f.endswith(".json"): + try: + j = json.load(open(os.path.join(fp, d, f))) + except (OSError, ValueError): + continue + found[(m.group(1), m.group(2))] = j.get("features", "") + return found + + +def report_new_variants(before, after): + new = {k: v for k, v in after.items() if k not in before} + if not new: + return + by_crate, olds = {}, {} + for (crate, _), feats in new.items(): + by_crate.setdefault(crate, set()).add(feats) + for (crate, _), feats in before.items(): + olds.setdefault(crate, set()).add(feats) + for crate in FRAMEWORK: + if crate not in by_crate: + continue + feats = " | ".join(sorted(by_crate[crate])) + same = [f for f in by_crate[crate] if f in olds.get(crate, set())] + why = ("same features as a variant already here, so a crate below it changed its features (another crate's dependencies " + "or dev-dependencies, or the gallery's apps)" if same else "a feature set this target dir had not built") + print(f"cl: new variant of {crate} built, features {feats}: {why}; {len(olds.get(crate, []))} variant(s) were there before. " + "Expected once per crate family (docs/development.md); otherwise check the command against `cl features`.", + file=sys.stderr) + + +def run(top, cargo_args): + for arg in cargo_args: + if arg in REFUSED: + fail(f"{arg} refused: {REFUSED[arg]}") + env = dict(os.environ) + target = target_dir(top, env) + launcher = ["job-pool"] if shutil.which("job-pool") else [] + cmd = launcher + ["cargo"] + cargo_args + print("cl: " + " ".join(cmd) + f" (target {target})", file=sys.stderr) + sys.stdout.flush() + before = variants(target) + rc = subprocess.run(cmd, cwd=top, env=env).returncode + report_new_variants(before, variants(target)) + sys.exit(rc) + + +def with_features(args, features): + return args + (["--features", ",".join(features)] if features else []) + + +def main(): + if len(sys.argv) < 2 or sys.argv[1] in ("-h", "--help"): + print(__doc__.strip()) + sys.exit(0) + command, rest = sys.argv[1], sys.argv[2:] + top = worktree() + packages = metadata(top) + if command == "doctor": + sys.exit(1 if doctor(top, packages) else 0) + doctor(top, packages, quiet=True) + if command == "cargo": + run(top, rest) + if command == "features": + if not rest: + fail("cl features ") + print(",".join(canonical(packages, rest[0])[1])) + return + if command in ("check", "test", "build"): + if not rest: + fail(f"cl {command} [args]") + name, args = rest[0], rest[1:] + if command == "build" and name == "gallery": + pkg, features = canonical(packages, "craft-ui-gallery") + run(top, with_features(["build", "-p", pkg, "--bin", "craft-ui-gallery"], features) + args) + pkg, features = canonical(packages, name) + if command == "check": + run(top, with_features(["check", "-p", pkg, "--tests"], features) + args) + if command == "test": + run(top, with_features(["test", "-p", pkg, "--tests"], features) + args) + run(top, with_features(["build", "-p", pkg], features) + args) + if command == "render": + if len(rest) < 2: + fail("cl render [--story ] [--out ] [--threads N]") + crate, component, options = rest[0], rest[1], rest[2:] + short = crate.removeprefix("craft-") + features = [] + if short != "ui": + if short not in RENDER_FEATURES: + fail(f"{crate} is not a crate the story renderer links; one of: ui, " + ", ".join(sorted(RENDER_FEATURES))) + features = [short] + if "--out" not in options: + options += ["--out", os.path.join(os.environ.get("CL_RENDER_DIR", os.path.expanduser("~/.cache/story-render")), component)] + run(top, with_features(["run", "-q", "-p", "story-render", "--bin", "story-render"], features) + ["--", "--only", component] + options) + fail(f"unknown command {command}; see cl --help") + + +if __name__ == "__main__": + main()