[package]
edition = "2021"
name = "acadrust"
version = "0.6.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 = "entity_atlas"
path = "examples/entity_atlas.rs"
[[example]]
name = "gen_all_entities_all_versions"
path = "examples/gen_all_entities_all_versions.rs"
[[example]]
name = "roundtrip_analysis"
path = "examples/roundtrip_analysis.rs"
[[test]]
name = "annotative_context_encoder"
path = "tests/annotative_context_encoder.rs"
[[test]]
name = "anonymous_block_names"
path = "tests/anonymous_block_names.rs"
[[test]]
name = "associative_constraint_group"
path = "tests/associative_constraint_group.rs"
[[test]]
name = "associative_empty_value"
path = "tests/associative_empty_value.rs"
[[test]]
name = "block_base_point"
path = "tests/block_base_point.rs"
[[test]]
name = "block_definition_roundtrip"
path = "tests/block_definition_roundtrip.rs"
[[test]]
name = "current_style_header"
path = "tests/current_style_header.rs"
[[test]]
name = "datatable_roundtrip"
path = "tests/datatable_roundtrip.rs"
[[test]]
name = "deterministic_output"
path = "tests/deterministic_output.rs"
[[test]]
name = "dimension_dxf_roundtrip"
path = "tests/dimension_dxf_roundtrip.rs"
[[test]]
name = "dimstyle_dxf_defaults"
path = "tests/dimstyle_dxf_defaults.rs"
[[test]]
name = "dwg_object_capacity"
path = "tests/dwg_object_capacity.rs"
[[test]]
name = "dwg_review_regressions"
path = "tests/dwg_review_regressions.rs"
[[test]]
name = "dxf_autocad_conformance"
path = "tests/dxf_autocad_conformance.rs"
[[test]]
name = "dxf_reader_regressions"
path = "tests/dxf_reader_regressions.rs"
[[test]]
name = "dxf_style_roundtrip"
path = "tests/dxf_style_roundtrip.rs"
[[test]]
name = "dynamic_action_codecs"
path = "tests/dynamic_action_codecs.rs"
[[test]]
name = "entity_audit_regressions"
path = "tests/entity_audit_regressions.rs"
[[test]]
name = "field_count_regressions"
path = "tests/field_count_regressions.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 = "issue114"
path = "tests/issue114.rs"
[[test]]
name = "issue41"
path = "tests/issue41.rs"
[[test]]
name = "issue42"
path = "tests/issue42.rs"
[[test]]
name = "issue45"
path = "tests/issue45.rs"
[[test]]
name = "issue51"
path = "tests/issue51.rs"
[[test]]
name = "issue52"
path = "tests/issue52.rs"
[[test]]
name = "issue55"
path = "tests/issue55.rs"
[[test]]
name = "issue63"
path = "tests/issue63.rs"
[[test]]
name = "issue64"
path = "tests/issue64.rs"
[[test]]
name = "issue66"
path = "tests/issue66.rs"
[[test]]
name = "issue67"
path = "tests/issue67.rs"
[[test]]
name = "issue68"
path = "tests/issue68.rs"
[[test]]
name = "issue80"
path = "tests/issue80.rs"
[[test]]
name = "layer_color_book_roundtrip"
path = "tests/layer_color_book_roundtrip.rs"
[[test]]
name = "layer_description"
path = "tests/layer_description.rs"
[[test]]
name = "layer_rename"
path = "tests/layer_rename.rs"
[[test]]
name = "layer_table_records"
path = "tests/layer_table_records.rs"
[[test]]
name = "legacy_class_identity"
path = "tests/legacy_class_identity.rs"
[[test]]
name = "material_xrecord"
path = "tests/material_xrecord.rs"
[[test]]
name = "mpolygon"
path = "tests/mpolygon.rs"
[[test]]
name = "mtext_annotative"
path = "tests/mtext_annotative.rs"
[[test]]
name = "multiline_attribute_style"
path = "tests/multiline_attribute_style.rs"
[[test]]
name = "r12_dwg_roundtrip"
path = "tests/r12_dwg_roundtrip.rs"
[[test]]
name = "raw_all_acds"
path = "tests/raw_all_acds.rs"
[[test]]
name = "raw_all_compound"
path = "tests/raw_all_compound.rs"
[[test]]
name = "raw_all_exclusions"
path = "tests/raw_all_exclusions.rs"
[[test]]
name = "read_visiting"
path = "tests/read_visiting.rs"
[[test]]
name = "resolve_references_xdictionary"
path = "tests/resolve_references_xdictionary.rs"
[[test]]
name = "roundtrip"
path = "tests/roundtrip.rs"
[[test]]
name = "section_manager_roundtrip"
path = "tests/section_manager_roundtrip.rs"
[[test]]
name = "semantic_inventory"
path = "tests/semantic_inventory.rs"
[[test]]
name = "solid_history"
path = "tests/solid_history.rs"
[[test]]
name = "spline_knot_degree"
path = "tests/spline_knot_degree.rs"
[[test]]
name = "summary_info_roundtrip"
path = "tests/summary_info_roundtrip.rs"
[[test]]
name = "table_cell_conversion"
path = "tests/table_cell_conversion.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 = "true_color_unsigned_accmcolor"
path = "tests/true_color_unsigned_accmcolor.rs"
[[test]]
name = "underlay_roundtrip"
path = "tests/underlay_roundtrip.rs"
[[test]]
name = "viewport_angles"
path = "tests/viewport_angles.rs"
[[test]]
name = "viewport_clipping"
path = "tests/viewport_clipping.rs"
[[test]]
name = "xref_block_roundtrip"
path = "tests/xref_block_roundtrip.rs"
[[test]]
name = "xref_linetype_localization"
path = "tests/xref_linetype_localization.rs"
[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.foldhash]
version = "0.2"
[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 = "2"
[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