dxfscan 0.1.0

Binary DXF parser with typed entity data and lookup indices
Documentation
// SPDX-License-Identifier: ISC
//! Binary DXF parser.
//!
//! Parses binary DXF files from a `&[u8]` slice into typed entity data
//! with lookup indices for layers, styles, blocks, and entity handles.
//! Strings borrow directly from the input for zero-copy operation.
//! `no_std` compatible (requires `alloc`).

#![no_std]
#![forbid(unsafe_code)]

extern crate alloc;

#[cfg(feature = "std")]
extern crate std;

/// Block definitions.
pub mod block;
/// Top-level [`Drawing`] result type with lookup indices.
pub mod drawing;
/// Entity types and the [`Entity`] enum.
pub mod entity;
/// Parse errors.
pub mod error;
mod group_code;
/// [`Point3`] type.
pub mod point;
/// Low-level binary DXF group code reader.
pub mod reader;
/// Single-pass scanner that produces a [`Drawing`].
pub mod scan;
/// LAYER and STYLE table entries.
pub mod table;
mod value;

pub use block::Block;
pub use drawing::Drawing;
pub use entity::{Entity, EntityCommon};
pub use error::Error;
pub use point::Point3;
pub use reader::BinaryReader;
pub use scan::scan;
pub use value::GroupValue;