Rust

Overview

Rust library for reading, writing and manipulating .duc CAD files — backed by SQLite.

⚠️

This page is subject to change as the project is still in development.

How it works

A .duc file is a standard SQLite database. ducrs wraps it with a typed, idiomatic Rust API.

Installation

Add the crate to your Cargo.toml:

[dependencies]
ducrs = "*"

Basic Usage

use ducrs::DucFile;
 
fn main() -> anyhow::Result<()> {
    let doc = DucFile::open("drawing.duc")?;
    for element in doc.elements()? {
        println!("{:?}", element);
    }
    Ok(())
}
Edit on GitHub

Last updated on