mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-19 19:11:26 +00:00
File › Open and File › Place read .cdr drawings of versions 1 to 27, and .cdt templates open as new untitled documents. A new L0 crate, vectorcraft-cdr, reads the WL files of versions 1 and 2, the RIFF chunk tree of versions 3 on with its compressed lists, and the ZIP packages of versions 14 on with their data streams. The importer maps pages to artboards side by side, layers by name, the master page's guidelines to guides, groups, curves, paths, rectangles, ellipses, arcs and polygons with uniform fills and outlines. Versions 1 and 2 open as one page and one layer of rectangles, whole ellipses and curves. Version 3 keeps transforms, fills and outlines in each object, and a group's matrix places its objects; envelopes are not applied, with a warning. Version 4 reads as version 5 with 12-byte u16 colors and fixed-point transforms. Text, bitmaps, blends, contours, brush strokes, fountain, pattern, texture and PostScript fills and arrowheads are left out, and the open warnings name each kind in every complete catalog. RIFF files that name a version before 3, drawings after 27 and encrypted, ZIP64 or split packages are refused with a message. crates/cdr/PROVENANCE.md lists the public source of each record layout.
101 lines
4.2 KiB
TOML
101 lines
4.2 KiB
TOML
[package]
|
|
name = "vectorcraft-engine"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
description = "VectorCraft engine: sessions, history, selection, the command registry"
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[features]
|
|
default = ["bundled-fonts", "heif"]
|
|
# The fonts vectorcraft-text bundles (see its `bundled-fonts`). Embedders that supply every font at
|
|
# run time (`vectorcraft_text::FontDb::add_font`) build with `default-features = false`.
|
|
bundled-fonts = ["vectorcraft-text/bundled-fonts"]
|
|
# HEIC and HEIF images open and place, decoded by heic-rs (an HEVC decoder). A build without this
|
|
# feature still recognizes the files and refuses them with a message. The apps list it beside
|
|
# `bundled-fonts`.
|
|
heif = ["dep:heic-rs", "dep:rayon"]
|
|
|
|
[dependencies]
|
|
# Which paths stored in documents may be opened.
|
|
craft-docpath = { workspace = true }
|
|
craft-proof = { workspace = true }
|
|
vectorcraft-geom = { workspace = true }
|
|
vectorcraft-color = { workspace = true }
|
|
vectorcraft-doc = { workspace = true }
|
|
vectorcraft-tools = { workspace = true }
|
|
vectorcraft-text = { workspace = true }
|
|
vectorcraft-render = { workspace = true }
|
|
vectorcraft-pathops = { workspace = true }
|
|
vectorcraft-brush = { workspace = true }
|
|
vectorcraft-trace = { workspace = true }
|
|
vectorcraft-svg = { workspace = true }
|
|
vectorcraft-format = { workspace = true }
|
|
vectorcraft-pdf = { workspace = true }
|
|
vectorcraft-cad = { workspace = true }
|
|
vectorcraft-eps = { workspace = true }
|
|
vectorcraft-metafile = { workspace = true }
|
|
vectorcraft-plugins = { workspace = true }
|
|
vectorcraft-affinity = { workspace = true }
|
|
vectorcraft-cdr = { workspace = true }
|
|
vectorcraft-scriptcheck = { workspace = true }
|
|
vectorcraft-js = { workspace = true }
|
|
# The commands' parameter schemas (schemas.rs).
|
|
vectorcraft-apischema = { workspace = true }
|
|
image = { workspace = true }
|
|
jxl-oxide = { workspace = true }
|
|
jxl-color = { workspace = true }
|
|
jxl-grid = { workspace = true }
|
|
hayro-jpeg2000 = { version = "=0.3.5", default-features = false, features = ["std", "simd"] }
|
|
# Pure Rust, no unsafe; pinned at the version photocraft-heif uses.
|
|
heic-rs = { version = "=0.1.4", default-features = false, features = ["std"], optional = true }
|
|
flate2 = { workspace = true }
|
|
chrono = { workspace = true }
|
|
# The XML parts of Word documents placed as type (place/docx.rs).
|
|
roxmltree = "0.21"
|
|
# The compound file that holds a Word 97-2003 document placed as type (place/doc.rs).
|
|
cfb = "0.15"
|
|
kurbo = { workspace = true }
|
|
serde = { workspace = true }
|
|
serde_json = { workspace = true }
|
|
thiserror = { workspace = true }
|
|
log = { workspace = true }
|
|
|
|
# Whether a recovery area folder is this account's own (`FolderStore::own_area`). Already in
|
|
# Cargo.lock (tempfile, ui-egui), so this adds no new crate.
|
|
[target.'cfg(unix)'.dependencies]
|
|
rustix = { workspace = true, features = ["std", "process"] }
|
|
|
|
# Whether a recovery area's lock file is still the one that was opened (`FolderStore::still_named`).
|
|
# Already in Cargo.lock (walkdir), so this adds no new crate.
|
|
[target.'cfg(windows)'.dependencies]
|
|
same-file = "1.0.6"
|
|
|
|
# The tiles of a HEIC photo decode in parallel on native; wasm stays single-threaded.
|
|
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
|
|
heic-rs = { version = "=0.1.4", default-features = false, features = ["std", "parallel"], optional = true }
|
|
rayon = { version = "1.12", optional = true }
|
|
|
|
[dev-dependencies]
|
|
vectorcraft-affinity = { workspace = true, features = ["synth"] }
|
|
vectorcraft-cdr = { workspace = true, features = ["synth"] }
|
|
crc32fast = { workspace = true }
|
|
vectorcraft-testkit = { workspace = true }
|
|
proptest = { workspace = true }
|
|
# A variable font built in code (no font file is committed).
|
|
vectorcraft-text = { workspace = true, features = ["test-fonts"] }
|
|
# How many times an open reads a PDF.
|
|
vectorcraft-pdf = { workspace = true, features = ["read-count"] }
|
|
wat = { workspace = true }
|
|
# Zstandard streams for the Illustrator editing data fuzz tests.
|
|
ruzstd = { workspace = true }
|
|
# JPEG XL files for the `.jxl` open and place tests.
|
|
zune-jpegxl = { workspace = true }
|
|
zune-core = { workspace = true }
|
|
# The JavaScript parser's lexer, compared with the script checker's on the same scripts.
|
|
vectorcraft-js = { workspace = true }
|
|
# A bundled font's own glyph boxes, for the glyph bounds tests.
|
|
skrifa = { workspace = true }
|