mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-12-01 07:24:56 -10:00
54 lines
2.2 KiB
TOML
54 lines
2.2 KiB
TOML
[package]
|
|
name = "document-format"
|
|
description = "Typed handle for the .gdd document format, sitting over document-graph-storage and document-container"
|
|
version.workspace = true
|
|
license.workspace = true
|
|
authors.workspace = true
|
|
edition.workspace = true
|
|
repository.workspace = true
|
|
readme.workspace = true
|
|
homepage.workspace = true
|
|
rust-version.workspace = true
|
|
publish.workspace = true
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[features]
|
|
# Runtime bridge: the editor <-> storage conversion methods (stage/commit from a `NodeNetwork`,
|
|
# `network_ids`, `declarations`). Off lets a standalone migration tool build without `graph-craft`
|
|
# or `core-types`. Forwards to `document-graph-storage/conversion`.
|
|
conversion = ["document-graph-storage/conversion", "dep:graph-craft", "dep:core-types"]
|
|
# Compressed-archive export/open. Each forwards to the matching `document-container` feature and
|
|
# gates that format's `ExportFormat` arm and sink. The folder/memory codec-free core needs neither.
|
|
zip = ["document-container/zip"]
|
|
xz = ["document-container/xz"]
|
|
# Runs the format steps and node migrations the binary links (see migration-core) when a document opens, and persists the result.
|
|
migrations = ["conversion", "dep:migration-core", "dep:migration-runner"]
|
|
# Lets `Gdd` host or join a `peer_transport` session, mirroring hot ops and retired history to peers.
|
|
network = ["dep:peer-transport"]
|
|
default = ["conversion", "zip", "xz"]
|
|
|
|
[dependencies]
|
|
document-container = { workspace = true }
|
|
document-graph-storage = { workspace = true, default-features = false }
|
|
peer-transport = { workspace = true, optional = true }
|
|
graph-craft = { workspace = true, optional = true }
|
|
graphene-resource = { workspace = true }
|
|
migration-core = { workspace = true, optional = true, features = ["typed"] }
|
|
migration-runner = { workspace = true, optional = true }
|
|
core-types = { workspace = true, optional = true }
|
|
serde = { workspace = true }
|
|
serde_json = { workspace = true }
|
|
postcard = { workspace = true }
|
|
futures = { workspace = true }
|
|
thiserror = "2.0"
|
|
log = { workspace = true }
|
|
|
|
[dev-dependencies]
|
|
migration-core = { workspace = true, features = ["typed"] }
|
|
migration-formats = { workspace = true }
|
|
futures = { workspace = true }
|
|
graphene-resource = { workspace = true }
|
|
tempfile = "3"
|