dxfbin 0.1.0

Streaming text DXF to binary DXF converter
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
// SPDX-License-Identifier: ISC
use std::io::{self, BufReader, BufWriter, Write};

use dxfbin::StreamConverter;

fn main() -> io::Result<()> {
    let stdin = BufReader::new(io::stdin().lock());
    let mut stdout = BufWriter::new(io::stdout().lock());
    let mut converter = StreamConverter::new(stdin);
    io::copy(&mut converter, &mut stdout)?;
    stdout.flush()
}