[package]
edition = "2021"
name = "acadrust"
version = "0.5.2"
authors = ["Hakan AK"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A pure Rust library for reading and writing CAD files in DXF format (ASCII and Binary) and DWG format (Binary)."
homepage = "https://github.com/hakanaktt/acadrust"
documentation = "https://docs.rs/acadrust"
readme = "README.md"
keywords = [
"cad",
"dxf",
"dwg",
"drawing",
"vector-graphics",
]
categories = [
"parser-implementations",
"encoding",
]
license = "MPL-2.0"
repository = "https://github.com/hakanaktt/acadrust"
[features]
default = []
import = ["dep:quick-xml"]
serde = [
"dep:serde",
"bitflags/serde",
"indexmap/serde",
]
[lib]
name = "acadrust"
path = "src/lib.rs"
[[example]]
name = "diag_hatch"
path = "examples/diag_hatch.rs"
[[example]]
name = "gen_all_entities_all_versions"
path = "examples/gen_all_entities_all_versions.rs"
[[example]]
name = "gen_all_versions_rt"
path = "examples/gen_all_versions_rt.rs"
[[example]]
name = "issue51_roundtrip"
path = "examples/issue51_roundtrip.rs"
[[example]]
name = "roundtrip_analysis"
path = "examples/roundtrip_analysis.rs"
[[example]]
name = "viewport_layouts"
path = "examples/viewport_layouts.rs"
[[test]]
name = "annotative_context_encoder"
path = "tests/annotative_context_encoder.rs"
[[test]]
name = "block_base_point"
path = "tests/block_base_point.rs"
[[test]]
name = "current_style_header"
path = "tests/current_style_header.rs"
[[test]]
name = "dimension_dxf_roundtrip"
path = "tests/dimension_dxf_roundtrip.rs"
[[test]]
name = "helix_roundtrip"
path = "tests/helix_roundtrip.rs"
[[test]]
name = "import_collada"
path = "tests/import_collada.rs"
[[test]]
name = "import_stl"
path = "tests/import_stl.rs"
[[test]]
name = "issue45"
path = "tests/issue45.rs"
[[test]]
name = "issue51"
path = "tests/issue51.rs"
[[test]]
name = "issue55"
path = "tests/issue55.rs"
[[test]]
name = "issue63"
path = "tests/issue63.rs"
[[test]]
name = "issue64"
path = "tests/issue64.rs"
[[test]]
name = "layer_color_book_roundtrip"
path = "tests/layer_color_book_roundtrip.rs"
[[test]]
name = "layer_rename"
path = "tests/layer_rename.rs"
[[test]]
name = "mtext_annotative"
path = "tests/mtext_annotative.rs"
[[test]]
name = "resolve_references_xdictionary"
path = "tests/resolve_references_xdictionary.rs"
[[test]]
name = "roundtrip"
path = "tests/roundtrip.rs"
[[test]]
name = "table_dwg_read"
path = "tests/table_dwg_read.rs"
[[test]]
name = "table_dwg_roundtrip"
path = "tests/table_dwg_roundtrip.rs"
[[test]]
name = "table_dxf_roundtrip"
path = "tests/table_dxf_roundtrip.rs"
[[test]]
name = "transparency_roundtrip"
path = "tests/transparency_roundtrip.rs"
[[test]]
name = "underlay_roundtrip"
path = "tests/underlay_roundtrip.rs"
[[test]]
name = "xref_block_roundtrip"
path = "tests/xref_block_roundtrip.rs"
[dependencies.ahash]
version = "0.8"
features = ["serde"]
[dependencies.anyhow]
version = "1.0"
[dependencies.bitflags]
version = "2.4"
[dependencies.byteorder]
version = "1.5"
[dependencies.encoding_rs]
version = "0.8"
[dependencies.flate2]
version = "1.0"
[dependencies.indexmap]
version = "2.0"
[dependencies.itoa]
version = "1"
[dependencies.nom]
version = "7.1"
[dependencies.once_cell]
version = "1.19"
[dependencies.quick-xml]
version = "0.36"
optional = true
[dependencies.ryu]
version = "1"
[dependencies.serde]
version = "1"
features = [
"derive",
"rc",
]
optional = true
[dependencies.thiserror]
version = "1.0"
[dependencies.web-time]
version = "1"
[dev-dependencies.criterion]
version = "0.5"
[dev-dependencies.proptest]
version = "1.4"
[dev-dependencies.serde_json]
version = "1"
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.memmap2]
version = "0.9"
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.rayon]
version = "1"
[profile.bench]
inherits = "release"
[profile.release]
opt-level = 3
lto = true
codegen-units = 1