dxfbin 0.1.0

Streaming text DXF to binary DXF converter
Documentation
// SPDX-License-Identifier: ISC
//! Streaming text DXF to binary DXF converter.
//!
//! Mechanically converts text-format DXF files to the AutoCAD binary DXF
//! format without interpreting the DXF structure. The core library is
//! `no_std`; an optional `std` feature adds a [`StreamConverter`] that
//! bridges [`std::io::BufRead`] to [`std::io::Read`].

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

extern crate alloc;

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

/// Binary DXF output sink and the [`Output`] byte-writer trait.
pub mod binary_sink;
/// Streaming converter state machine and one-shot [`convert_all`] helper.
pub mod convert;
/// Error types returned by the converter and sink operations.
pub mod error;
/// DXF group code classification into [`ValueType`]s.
pub mod group_code;
/// `std`-only [`StreamConverter`] adapter (`BufRead` to `Read`).
#[cfg(feature = "std")]
pub mod reader;
/// The [`Sink`] trait for receiving typed DXF values.
pub mod sink;

pub use binary_sink::{BinarySink, Output};
pub use convert::{Converter, convert_all};
pub use error::Error;
pub use group_code::{ValueType, value_type_of};
#[cfg(feature = "std")]
pub use reader::StreamConverter;
pub use sink::Sink;