draftwright 0.6.1

Dimensioned engineering drawings from STEP, with SVG, PDF and editable DXF output.
Documentation
[package]
name = "draftwright"
version = "0.6.1"
edition = "2024"
autotests = false
license = "AGPL-3.0-only"
description = "Dimensioned engineering drawings from STEP, with SVG, PDF and editable DXF output."
repository = "https://github.com/pzfreo/draftwright"
homepage = "https://draftwright.io"
readme = "README.md"
keywords = ["cad", "step", "technical-drawing", "drafting", "manufacturing"]
categories = ["science", "command-line-utilities", "graphics"]
include = ["/src", "/build.rs", "/build_support.rs", "/fonts", "/schemas", "/docs/finding-impact.md", "/README.md", "/CHANGELOG.md", "/LICENSE", "/CLA.md"]

[[bin]]
name = "draftwright"
path = "src/bin/draftwright.rs"
required-features = ["cli"]

[[bin]]
name = "draftwright-mcp"
path = "src/bin/draftwright-mcp.rs"
required-features = ["cli"]

[features]
default = ["cli"]
# The `draftwright` command line's parser and its shell completion scripts. The WASM crate turns
# it off so clap stays out of the browser build.
cli = ["dep:clap", "dep:clap_complete"]

[dependencies]
base64 = "0.22.1"
chrono = { version = "0.4", default-features = false }
clap = { version = "4.6.1", features = ["derive"], optional = true }
clap_complete = { version = "4.6", optional = true }
dxf = { version = "0.6.2", features = ["serialize"] }
flate2 = "1.1.10"
haecceity = { version = "=0.5.4", features = ["json-import"] }
pdf-writer = "0.15"
png = "0.18.1"
quiddity = { version = "=0.5.4", default-features = false, features = ["presentation"] }
serde = { version = "1.0.229", features = ["derive"] }
serde_json = { version = "1.0.151", features = ["float_roundtrip", "raw_value"] }
sha2 = "0.11.0"
subsetter = { version = "0.2.6", default-features = false }
tiny-skia = { version = "0.12.0", default-features = false, features = ["std"] }
ttf-parser = "0.25.1"
uuid = { version = "1", default-features = false }

# dxf's uuid needs a browser random source even when this library is built directly.
[target.'cfg(target_arch = "wasm32")'.dependencies]
uuid = { version = "1", default-features = false, features = ["js"] }
getrandom = { version = "0.3", features = ["wasm_js"] }

[dev-dependencies]
syn = { version = "2", features = ["full", "visit"] }
flate2 = "1.1.10"
serde_json = { version = "1.0.151", features = ["float_roundtrip", "raw_value"] }

[build-dependencies]
sha2 = "0.11.0"

[workspace]
members = ["crates/draftwright-wasm", "crates/draftwright-py"]
default-members = ["."]
resolver = "3"

# Keep the native release build's compile time and behaviour unchanged.
[profile.wasm-release]
inherits = "release"
lto = true
codegen-units = 1
opt-level = 3

# Keep the drawing engine at speed optimization. Only generated STEP parsing uses size optimization.
[profile.wasm-release.package.step-io]
opt-level = "s"

# See docs/test-binaries.md; tools/check_test_binaries.py guards module coverage.

[[test]]
name = "core"
path = "tests/core/main.rs"

[[test]]
name = "dimensions"
path = "tests/dimensions/main.rs"

[[test]]
name = "rendering"
path = "tests/rendering/main.rs"

[[test]]
name = "audits"
path = "tests/audits/main.rs"

[[test]]
name = "issue_drafting"
path = "tests/issue_drafting.rs"

[[test]]
name = "issue_trust"
path = "tests/issue_trust.rs"

[[test]]
name = "session"
path = "tests/session.rs"

[[test]]
name = "multi_sheet_latency"
path = "tests/multi_sheet_latency.rs"

[[test]]
name = "steerability"
path = "tests/steerability.rs"