mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-18 16:24:38 +00:00
* craft-suite-account: the suite account list and keychain token store
Carries crates/suite-account over from the cut-down craft-libs#160 branch. This follows RFC-0025 (storytold/craft-contrib#35).
service.rs is removed. It was the CollabCraft device-flow client. Its Service, Flow, Identity, Polled and SignedOut types went with it. Store::sign_out is also gone. The provider adapter now owns ending a session at the deployment. Store::discard and Store::forget cover the local half that stays here.
Every remaining CollabCraft-specific word is reworded to a provider-neutral description. The one serde alias and the one test fixture name that spelled the old provider out are gone too.
Adds a generation field to Account, per RFC-0025's cross-app lifecycle guarantees. A sign-in bumps it. Store::update_token refuses a write made against a stale generation. A fuller tombstone for the removal case is left as a TODO referencing the RFC, documented on Accounts::remove.
Also drops one unused restrict() function found while verifying clippy -D warnings on Linux. It was pre-existing dead code. The unix write path already sets the file mode at creation.
* craft-suite-account: lock list mutations, make generations monotonic across removal
Fixes the three review gates on PR #665 (rev 2e9c84f).
Every mutation of accounts.json now goes through an OS-level file lock. The
lock is a sibling .lock file taken with std::fs::File::try_lock and a
bounded retry, matching the mechanism craft-ai-integrations' store already
uses for the same problem. Two processes each completing 100 sign-ins into
one folder used to leave 101 rows on file. Both the real two-process and
two-thread conformance tests now land all 200 rows.
A removed account now leaves a tombstone holding its last generation. A
re-add continues past that tombstone. It never restarts at 0.
update_token checks the generation twice. The first check runs before the
keychain is touched at all. An already-stale caller never overwrites a
newer token. The second check runs under the lock, after the keychain
write. It catches a removal that landed in the window that write opened. A
tombstoned account answers StaleGeneration. It never answers Unknown. The
second check also removes the token it just wrote, under the same lock,
when the account turns out to be gone. A refresh racing a discard can then
resurrect neither the row nor the keychain entry. discard itself now
removes the keychain entry inside the same lock hold as the list write.
The module docs now name the chosen keychain-versus-list write order for
each operation. They also name the state a crash in that window leaves
behind for the next reader to repair, per RFC-0025 guarantee 1. A new test
simulates the window update_token opens between its keychain write and its
generation commit.
The conformance tests are adapted from the maintainer's review-reproduction
gist for this crate. Forget racing a refresh is the one gist case left out.
forget is deliberately generation-agnostic and local, per RFC-0025
guarantee 4. That fix would be a separate, broader change than these three
gates.
* craft-suite-account: close the review gaps CodeRabbit found in the rebase
Six fixes. Generation bumps in sign_in, update_token and remove_with_tombstone
now use checked_add. A bump at the maximum refuses with GenerationExhausted.
It never wraps back to a small number a stale caller could pass again.
accounts::write now refuses a list that would serialize
past MAX_BYTES before touching disk. An oversized display name can then
never brick the list for every later reader. NewAccount.linked now persists
onto Account. It used to be silently dropped at sign_in. update_token's
stale-write cleanup now only removes a keychain token that still matches the
token it wrote itself. A concurrent sign-in's token for the same handle
survives that cleanup now. Store::forget and Store::has_token now return
Error::Isolated before touching the keychain, matching every other mutator.
migrate::adopt re-reads the legacy file right before deleting it and skips
the delete when something rewrote it since. The read buffers are wrapped in
Zeroizing too. A parsed-but-unused token copy no longer outlives the one
Secret already covers.
Three findings were not valid against this code and are not changed. The
torn-state window CodeRabbit flagged in update_token's generation commit is
the same crash recovery the module docs already describe. The existing
torn-state test already exercises it. Forcing the keychain write under the
same lock as two concurrent sign-ins for one handle would reintroduce the
cross-process deadlock the lock module exists to avoid. A failed discard
already reports its own error. A refresh that re-establishes a full session
afterward is recovery. It is never a silent mismatch.
* craft-suite-account: apply cargo fmt to the review-gap fixes
cargo fmt wraps the long struct literals and assert calls the previous
commit added. The content is unchanged.
* craft-suite-account: factor the race test's join-handle type out
clippy::type_complexity flagged the four-deep generic on handle_slot in the
stale-refresh-vs-re-sign-in test. A type alias clears it without changing
the test.
* craft-suite-account: flush before the rename, re-check the token under the lock
Two review findings. The temporary file is now flushed with sync_all before the rename, keeping the crash story the doc tells. A discard racing a sign-in could delete the token the sign-in had just written and the sign-in still reported Ok. The lock closure re-checks the keychain right before committing the row and writes the token again when something else changed it.
* craft-suite-account: sync the parent directory after the rename
The temp-file flush persists the bytes. The rename changes a directory entry with its own durability on Linux. Power loss after write returned could otherwise resurrect the older list and lose a tombstone a discard already reported written. A sync failure now reports an error, never success. Unix only, since directories do not open for sync elsewhere.
* craft-suite-account: keep activation out of refresh, require an explicit format marker, stop logging paths
Three fixes. update_token no longer calls Accounts::put for its row commit.
That call always makes the written row active. Refreshing an account in
the background used to silently steal the selection from whatever account
the person had actually picked. A new Accounts::refresh_in_place replaces
the row without touching active. put stays exactly as it was for sign_in
and set_active, the two calls meant to change it.
Accounts::format no longer carries #[serde(default)]. Every other field
still does. A missing format key used to default through Accounts's own
Default impl. That impl answers FORMAT. A file that never declared a
format therefore read as exactly the one format this build understands.
read now also rejects any parsed format that is not exactly FORMAT. The
old check only rejected a newer one; format 0 passed it the same way a
missing key did.
accounts::read's error messages now name only the file, never the full
path. Store::shared logs a read failure at warn. The path sits under the
user's profile folder.
restrict on Windows stays a no-op. Its comment now states the guarantee's
real scope. The default per-user config folder gives it. A portable
install or an ARTCRAFT_SUITE_DIR override does not. A real fix needs the
Win32 authorization API. Every binding for it is an unsafe fn. This
workspace forbids unsafe_code outright. That part of the finding is
refused in part. Closing it for real needs a maintainer-approved exception
for this one call site, or a vetted dependency wrapping that API safely.
Either is a decision for its own PR.
* craft-suite-account: move update_token's keychain write inside the lock
skylartaylor's finding. update_token used to write the keychain, then take
the list lock. A newer sign-in, or a discard followed by a re-add, could
land for the same handle in between. The second check under the lock
already answered StaleGeneration in that case, but the earlier write had
already landed over the newer session's token. shared() then served the
new session's row with the stale refresh's bytes. Deleting the stale token
on its own was never going to fix this; that still loses the newer
session, it only changes which bytes go missing.
The keychain write now happens only inside the lock, in the second
generation check's own success arm, immediately before the row commits.
The first, unlocked check still exists, purely to reject an already-stale
caller before it ever takes the lock; it writes nothing. Every losing
path, a newer sign-in, a discard, a discard followed by a re-add, now
answers with an error having never touched the keychain at all. There is
nothing stale left in it to clean up or weigh against a winner's own
token. Store::remove_token_if_still is gone. Its two call sites in the
losing branches never write a token to begin with now. Nothing is left
for it to conditionally remove.
This keeps the lock discipline the module docs describe: the write is
conditional on the row commit going ahead, the same shape as discard's own
keychain call inside its lock hold and sign_in's existing re-check, never
an unconditional call made regardless.
Two deterministic tests reproduce both orderings skylartaylor named, each
proving the fix against the pre-fix code before passing against the fix:
a_refresh_racing_a_newer_sign_in_for_the_same_handle_never_overwrites_its_token
and a_refresh_racing_a_discard_and_re_add_for_the_same_handle_never_overwrites_its_token.
Both hold the real accounts lock on a background thread standing in for
the winning operation. They release it only after the refresh's own
unlocked first check has had the chance to read the pre-race state. Both
then assert shared() serves the winning session's own token afterward.
The crate's own pre-existing hook-based race tests could no longer reach
the window they were built for, since that window no longer has a
keychain call in it to hook. tests/review_repro.rs's two Hooked-based
tests are rewritten onto real threads racing on a Barrier instead, the
same device the file's own two-thread sign-in test already uses. The lock
makes their outcomes hold for either ordering now. A hook could only ever
force one. The now-unused Hooked harness is removed along with them.
src/tests.rs's own matching hook-based test is replaced outright by the
two new ones above. That covers its ground and the newly found gap
together.
* craft-suite-account: pin the race tests' second-check window
skylartaylor's review note on PR 665: the two update_token race tests in
src/tests.rs send their release signal and then immediately call
update_token, so the competing sign-in or discard-and-re-add can finish
before the refresh's first, unlocked check ever runs. A pre-fix build
could then pass the same assertions by rejecting early at that first
check, never reaching the second, locked one the tests are named for.
Adds race_hook, a test-only pause point inside update_token between its
two checks. A test arms it, starts the refresh, waits for the refresh to
signal that its first check has read the pre-race generation, runs the
competing operation to completion, then releases the refresh into its
second check. Both race tests are rewritten onto this instead of holding
the real accounts lock on a background thread, which left the same gap
skylartaylor found: the lock never blocked the refresh's unlocked first
read, only its second, locked one.
* craft-suite-account: make the race test hook per store instead of process wide
CI runs this crate's suite with the default, parallel test runner. The
hook update_token pauses on between its two generation checks lived
behind one process wide slot, so when the Workspace gate's parallel run
landed both race tests at the same time, one test's release on that
slot answered the other test's pause: the pinned ordering collapsed,
the refresh ran ahead of the competing write, its second check legitimately
matched, and update_token returned Ok where the test expected
StaleGeneration. Reproduced on the lab build host with the crate's
default threaded test run; failed on the first attempt, matching the
CI failure exactly.
The hook now lives on the Store instance, one per store, armed only on
the exact store a given test built. A concurrent test's own store keeps
its own hook, so there is nothing left for two tests to cross no matter
how the runner schedules them. Checked the rest of the suite for the
same kind of shared state: every other test builds its own tempdir and
its own in-memory keychain, and the two-process test spawns its own
child with --test-threads=1 for that child's own run, so none of them
depend on the parent suite running single threaded.
281 lines
13 KiB
TOML
281 lines
13 KiB
TOML
[workspace]
|
|
resolver = "3"
|
|
members = ["crates/*"]
|
|
exclude = ["vendor/krilla", "vendor/hayro", "vendor/hayro-interpret", "vendor/hayro-syntax", "vendor/hayro-jbig2", "vendor/hayro-cmap", "vendor/hayro-postscript", "vendor/linesweeper"]
|
|
|
|
[workspace.package]
|
|
version = "0.1.0"
|
|
edition = "2024"
|
|
license = "MIT OR Apache-2.0"
|
|
rust-version = "1.95"
|
|
repository = "https://github.com/storytold/craft-libs"
|
|
|
|
[workspace.dependencies]
|
|
craft-evm = { path = "crates/evm" }
|
|
craft-java-class = { path = "crates/java-class" }
|
|
craft-sourcemap = { path = "crates/sourcemap" }
|
|
craft-pcap = { path = "crates/pcap" }
|
|
craft-har = { path = "crates/har" }
|
|
craft-xfdf = { path = "crates/xfdf" }
|
|
craft-jsonc = { path = "crates/jsonc" }
|
|
craft-palette = { path = "crates/palette" }
|
|
craft-score = { path = "crates/score" }
|
|
craft-shx = { path = "crates/shx" }
|
|
craft-http-url = { path = "crates/http-url" }
|
|
craft-usd = { path = "crates/usd" }
|
|
craft-smime = { path = "crates/smime" }
|
|
craft-ssip = { path = "crates/ssip" }
|
|
craft-ber = { path = "crates/ber" }
|
|
craft-proto = { path = "crates/proto" }
|
|
craft-render-parity = { path = "crates/render-parity" }
|
|
acadrust = "=0.6.6"
|
|
log = "0.4"
|
|
# internal: add each crate here as `craft-<name> = { path = "crates/<name>" }`
|
|
craft-plist = { path = "crates/plist" }
|
|
craft-wasm = { path = "crates/wasm" }
|
|
craft-platform = { path = "crates/platform" }
|
|
craft-aep = { path = "crates/aep" }
|
|
craft-affinity = { path = "crates/affinity" }
|
|
craft-ai = { path = "crates/ai" }
|
|
craft-ai-core = { path = "crates/ai-core" }
|
|
craft-anicraft-format = { path = "crates/anicraft-format" }
|
|
craft-pdf = { path = "crates/pdf", version = "=0.1.0" }
|
|
craft-pe = { path = "crates/pe" }
|
|
craft-ps = { path = "crates/ps", version = "=0.1.0" }
|
|
craft-pdn = { path = "crates/pdn" }
|
|
craft-plate-test = { path = "crates/plate-test" }
|
|
pdf-writer = "0.15"
|
|
miniz_oxide = "0.8"
|
|
weezl = "0.1"
|
|
skrifa = "0.47"
|
|
krilla = { version = "=0.8.2", default-features = false, features = ["raster-images"] }
|
|
hayro = { version = "=0.7.1", default-features = false }
|
|
hayro-interpret = { version = "=0.7.0", default-features = false, features = ["embed-fonts", "embed-cmaps"] }
|
|
hayro-syntax = { version = "=0.7.2", default-features = false, features = ["std"] }
|
|
bytemuck = "1"
|
|
kurbo = "0.13"
|
|
thiserror = "2"
|
|
craft-gzip = { path = "crates/gzip" }
|
|
craft-gridcraft-format = { path = "crates/gridcraft-format" }
|
|
craft-aaf = { path = "crates/aaf" }
|
|
craft-atomic = { path = "crates/atomic" }
|
|
craft-xtask = { path = "crates/xtask" }
|
|
craft-captions = { path = "crates/captions" }
|
|
craft-cfb = { path = "crates/cfb" }
|
|
craft-codepage = { path = "crates/codepage" }
|
|
craft-cms = { path = "crates/cms" }
|
|
craft-cloud = { path = "crates/cloud" }
|
|
craft-cloud-local = { path = "crates/cloud-local" }
|
|
craft-color = { path = "crates/color" }
|
|
craft-frame = { path = "crates/frame" }
|
|
craft-crs = { path = "crates/crs" }
|
|
craft-crw = { path = "crates/crw" }
|
|
craft-csv = { path = "crates/csv" }
|
|
craft-dav = { path = "crates/dav" }
|
|
craft-dialogs = { path = "crates/dialogs" }
|
|
craft-doc-binary = { path = "crates/doc-binary" }
|
|
craft-docx = { path = "crates/docx" }
|
|
craft-document-bundle = { path = "crates/document-bundle" }
|
|
craft-mcmat = { path = "crates/mcmat" }
|
|
craft-deckcraft-format = { path = "crates/deckcraft-format" }
|
|
craft-designcraft-format = { path = "crates/designcraft-format" }
|
|
craft-dxf = { path = "crates/dxf" }
|
|
craft-drawingml = { path = "crates/drawingml" }
|
|
craft-eps = { path = "crates/eps" }
|
|
craft-elf = { path = "crates/elf" }
|
|
craft-file-formats = { path = "crates/file-formats" }
|
|
craft-file-import = { path = "crates/file-import" }
|
|
vectorcraft-doc = { git = "https://github.com/storytold/vectorcraft.git", rev = "6b3a6b8788ebcb420d69449199cbdf323888d27e" }
|
|
vectorcraft-eps = { git = "https://github.com/storytold/vectorcraft.git", rev = "6b3a6b8788ebcb420d69449199cbdf323888d27e" }
|
|
vectorcraft-geom = { git = "https://github.com/storytold/vectorcraft.git", rev = "6b3a6b8788ebcb420d69449199cbdf323888d27e" }
|
|
vectorcraft-pathops = { git = "https://github.com/storytold/vectorcraft.git", rev = "6b3a6b8788ebcb420d69449199cbdf323888d27e" }
|
|
craft-doc = { path = "crates/doc" }
|
|
craft-docpath = { path = "crates/docpath" }
|
|
craft-dpx = { path = "crates/dpx" }
|
|
craft-dwg = { path = "crates/dwg" }
|
|
craft-fcproj-format = { path = "crates/fcproj-format" }
|
|
craft-ecproj-format = { path = "crates/ecproj-format" }
|
|
craft-figma-rest = { path = "crates/figma-rest" }
|
|
craft-exr = { path = "crates/exr" }
|
|
craft-flags = { path = "crates/flags" }
|
|
craft-font-catalog = { path = "crates/font-catalog" }
|
|
craft-font-manager = { path = "crates/font-manager" }
|
|
craft-font-store = { path = "crates/font-store" }
|
|
craft-gainmap = { path = "crates/gainmap" }
|
|
craft-flow = { path = "crates/flow" }
|
|
craft-gcode = { path = "crates/gcode" }
|
|
craft-gif = { path = "crates/gif" }
|
|
craft-hdr = { path = "crates/hdr" }
|
|
craft-mesh = { path = "crates/mesh" }
|
|
craft-html = { path = "crates/html" }
|
|
craft-heif = { path = "crates/heif" }
|
|
craft-fig = { path = "crates/fig" }
|
|
craft-fonts-build = { path = "crates/fonts-build" }
|
|
craft-i18n = { path = "crates/i18n" }
|
|
craft-ipc = { path = "crates/ipc" }
|
|
craft-idml = { path = "crates/idml" }
|
|
craft-indd = { path = "crates/indd" }
|
|
craft-jmap = { path = "crates/jmap" }
|
|
craft-ical = { path = "crates/ical" }
|
|
craft-jpeg = { path = "crates/jpeg" }
|
|
craft-control-protocol = { path = "crates/control-protocol" }
|
|
craft-jsonrpc = { path = "crates/jsonrpc" }
|
|
craft-mcp = { path = "crates/mcp" }
|
|
craft-jxl = { path = "crates/jxl" }
|
|
craft-kiwi = { path = "crates/kiwi" }
|
|
craft-keymap = { path = "crates/keymap" }
|
|
craft-assuan = { path = "crates/assuan" }
|
|
craft-kra = { path = "crates/kra" }
|
|
craft-audio = { path = "crates/audio" }
|
|
craft-latex = { path = "crates/latex" }
|
|
craft-markdown = { path = "crates/markdown" }
|
|
craft-macho = { path = "crates/macho" }
|
|
craft-math = { path = "crates/math" }
|
|
# No default features: craft-audio turns on the craft-media modules each of its features needs.
|
|
craft-media = { path = "crates/media", default-features = false }
|
|
craft-media-source = { path = "crates/media-source" }
|
|
craft-materialx = { path = "crates/materialx" }
|
|
craft-media-testkit = { path = "crates/media-testkit" }
|
|
craft-midi = { path = "crates/midi" }
|
|
craft-sf2 = { path = "crates/sf2" }
|
|
craft-mime = { path = "crates/mime" }
|
|
craft-odf = { path = "crates/odf" }
|
|
craft-ods = { path = "crates/ods" }
|
|
craft-prc = { path = "crates/prc" }
|
|
craft-lottie = { path = "crates/lottie" }
|
|
craft-menu = { path = "crates/menu" }
|
|
craft-metafile = { path = "crates/metafile" }
|
|
craft-offcrypto = { path = "crates/offcrypto" }
|
|
craft-opc = { path = "crates/opc" }
|
|
craft-openpgp = { path = "crates/openpgp" }
|
|
craft-ora = { path = "crates/ora" }
|
|
craft-pptx = { path = "crates/pptx" }
|
|
craft-penpot = { path = "crates/penpot" }
|
|
craft-pcraft-format = { path = "crates/pcraft-format" }
|
|
craft-pcraft-bundle = { path = "crates/pcraft-bundle" }
|
|
craft-pkcs7 = { path = "crates/pkcs7" }
|
|
craft-plotter = { path = "crates/plotter" }
|
|
craft-prepress = { path = "crates/prepress" }
|
|
craft-press-print = { path = "crates/press-print" }
|
|
craft-print = { path = "crates/print" }
|
|
craft-proof = { path = "crates/proof" }
|
|
craft-raster-codecs = { path = "crates/raster-codecs" }
|
|
craft-image-codecs = { path = "crates/image-codecs" }
|
|
craft-dds = { path = "crates/dds" }
|
|
craft-psd = { path = "crates/psd" }
|
|
craft-pst = { path = "crates/pst" }
|
|
craft-quit = { path = "crates/quit" }
|
|
craft-rtf = { path = "crates/rtf" }
|
|
craft-raw = { path = "crates/raw" }
|
|
craft-sheet = { path = "crates/sheet" }
|
|
craft-sketch = { path = "crates/sketch" }
|
|
craft-settings = { path = "crates/settings" }
|
|
craft-scraft-format = { path = "crates/scraft-format" }
|
|
craft-time = { path = "crates/time" }
|
|
craft-silhouette-studio = { path = "crates/silhouette-studio" }
|
|
craft-suite-account = { path = "crates/suite-account" }
|
|
craft-svg = { path = "crates/svg" }
|
|
craft-stencilcraft-format = { path = "crates/stencilcraft-format" }
|
|
craft-stencilcraft-document = { path = "crates/stencilcraft-document" }
|
|
craft-svg-paths = { path = "crates/svg-paths" }
|
|
craft-stream-codecs = { path = "crates/stream-codecs" }
|
|
craft-testkit = { path = "crates/testkit" }
|
|
craft-text = { path = "crates/text" }
|
|
craft-tcraft = { path = "crates/tcraft" }
|
|
craft-texture = { path = "crates/texture" }
|
|
craft-tga = { path = "crates/tga" }
|
|
craft-timeline = { path = "crates/timeline" }
|
|
craft-tiff = { path = "crates/tiff" }
|
|
craft-metadata = { path = "crates/metadata" }
|
|
craft-ui = { path = "crates/ui" }
|
|
craft-update = { path = "crates/update" }
|
|
craft-vcard = { path = "crates/vcard" }
|
|
craft-vectorcraft-format = { path = "crates/vectorcraft-format" }
|
|
craft-vectordrawable = { path = "crates/vectordrawable" }
|
|
craft-xls = { path = "crates/xls" }
|
|
craft-xfl = { path = "crates/xfl" }
|
|
craft-wordmodel = { path = "crates/wordmodel" }
|
|
craft-xlsx = { path = "crates/xlsx" }
|
|
indd = { git = "https://github.com/storytold/indd-utils", rev = "7f3060e5bce78d21ea70e0d5eacb96edce15dfbe" }
|
|
craft-xcf = { path = "crates/xcf" }
|
|
craft-xml = { path = "crates/xml" }
|
|
craft-zip = { path = "crates/zip" }
|
|
craft-y4m = { path = "crates/y4m" }
|
|
craft-sniff = { path = "crates/sniff" }
|
|
craft-tar = { path = "crates/tar" }
|
|
craft-epub = { path = "crates/epub" }
|
|
craft-ews = { path = "crates/ews" }
|
|
craft-video = { path = "crates/video" }
|
|
craft-web-api = { path = "crates/web-api" }
|
|
craft-window = { path = "crates/window" }
|
|
craft-web-host = { path = "crates/web-host" }
|
|
craft-webp = { path = "crates/webp" }
|
|
egui = { version = "0.37", default-features = false }
|
|
md5 = { package = "md-5", version = "0.10", default-features = false }
|
|
jxl-oxide = { version = "0.12", default-features = false }
|
|
jixel = "=0.3.4"
|
|
rayon = "1"
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_json = "1"
|
|
proptest = "1"
|
|
# Character sets of the WHATWG Encoding Standard (craft-mime). (Apache-2.0 OR MIT) AND BSD-3-Clause.
|
|
encoding_rs = "0.8"
|
|
# All date/time conversion goes through chrono (no hand-rolled calendar code beyond the 400-year range extension; AGENTS.md).
|
|
chrono = { version = "0.4.45", default-features = false, features = ["std"] }
|
|
|
|
[workspace.lints.rust]
|
|
unsafe_code = "forbid"
|
|
unexpected_cfgs = { level = "warn", check-cfg = ["cfg(craft_pdf_unicode_fixtures)"] }
|
|
|
|
[workspace.lints.cargo]
|
|
unused_workspace_dependencies = "allow"
|
|
|
|
[workspace.lints.clippy]
|
|
cognitive_complexity = "deny"
|
|
too_many_arguments = "deny"
|
|
wildcard_imports = "deny"
|
|
dbg_macro = "warn"
|
|
todo = "warn"
|
|
|
|
[patch.crates-io]
|
|
krilla = { path = "vendor/krilla" }
|
|
|
|
hayro = { path = "vendor/hayro" }
|
|
hayro-interpret = { path = "vendor/hayro-interpret" }
|
|
hayro-syntax = { path = "vendor/hayro-syntax" }
|
|
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" }
|
|
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
|
|
# 32-bit stream the prediction can leave the i32 range while the sum does not, so a debug build
|
|
# panics where a release build wraps to the right sample. Apps that decode 32-bit FLAC through
|
|
# craft-audio's `decode` need the same override in their own workspace.
|
|
[profile.dev.package.symphonia-bundle-flac]
|
|
overflow-checks = false
|
|
|
|
# Codec hot loops: the oracle and conformance tests of a debug build take minutes below opt-level 3.
|
|
[profile.dev.package.craft-video]
|
|
opt-level = 3
|
|
|
|
# The object-stream parser follows nesting 384 levels deep: unoptimised, its frames overflow the
|
|
# 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
|