[package]
edition = "2021"
name = "acadrust"
version = "0.2.10"
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 = []
serde = [
"dep:serde",
"bitflags/serde",
"indexmap/serde",
]
[lib]
name = "acadrust"
path = "src/lib.rs"
[[example]]
name = "gen_all_entities_all_versions"
path = "examples/gen_all_entities_all_versions.rs"
[[example]]
name = "serde_json"
path = "examples/serde_json.rs"
required-features = ["serde"]
[[example]]
name = "viewport_layouts"
path = "examples/viewport_layouts.rs"
[[example]]
name = "write_3dsolid_dwg"
path = "examples/write_3dsolid_dwg.rs"
[[example]]
name = "write_3dsolid_dxf"
path = "examples/write_3dsolid_dxf.rs"
[[test]]
name = "roundtrip"
path = "tests/roundtrip.rs"
[dependencies.ahash]
version = "0.8"
[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.nalgebra]
version = "0.32"
[dependencies.nom]
version = "7.1"
[dependencies.once_cell]
version = "1.19"
[dependencies.rayon]
version = "1.7"
[dependencies.serde]
version = "1"
features = ["derive"]
optional = true
[dependencies.thiserror]
version = "1.0"
[dev-dependencies.criterion]
version = "0.5"
[dev-dependencies.proptest]
version = "1.4"
[dev-dependencies.serde_json]
version = "1"
[profile.bench]
inherits = "release"
[profile.release]
opt-level = 3
lto = true
codegen-units = 1