1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
//! DWG binary file format support.
//!
//! Read and write AutoCAD's native binary format. DWG files use
//! bit-granularity encoding, version-specific data layouts, and LZ77
//! compression (R2004+).
//!
//! # Reading
//!
//! ```rust,ignore
//! use acadrust::DwgReader;
//!
//! let doc = DwgReader::from_file("drawing.dwg")?.read()?;
//! ```
//!
//! # Writing
//!
//! ```rust,ignore
//! use acadrust::DwgWriter;
//!
//! DwgWriter::write_to_file("output.dwg", &doc)?;
//! ```
//!
//! ## Supported versions
//!
//! | DWG Version | AutoCAD | File format |
//! |-------------|---------|-------------|
//! | AC1012 | R13 | Linear |
//! | AC1014 | R14 | Linear |
//! | AC1015 | R2000 | Linear |
//! | AC1018 | R2004 | Paged + LZ77 |
//! | AC1021 | R2007 | Paged + LZ77 |
//! | AC1024 | R2010 | Paged + LZ77 |
//! | AC1027 | R2013 | Paged + LZ77 |
//! | AC1032 | R2018 | Paged + LZ77 |
pub use DwgReader;
pub use DwgReadOptions;
pub use DwgReferenceType;
pub use DwgVersion;
pub use DwgWriter;
pub use ;