CADCraft is an open-source 2D/3D CAD application written in pure Rust, keeping the AutoCAD-style command-line workflow with object snaps, layers, dimensions, hatches, and DXF/DWG support across five desktop platforms and the browser.
- v0.20.1
- Published at
- 15d ago
- 8,460
- Stars
- 967,804
- Download
- Synced at
- 2d ago
Latest release
v0.20.1Nov 12, 2026, 12:23 AMDownloads slow? Switch the source anytime above
README
Project Overview
CADCraft is a drafting tool for designers and engineers who know the AutoCAD workflow, solving the problem of expensive, closed heavy CAD. Type L, click two points, type @5<45, press Enter — decades of drafting habit carry over intact. Built in pure Rust with egui, no Electron, no web view: one binary covers macOS, Windows, Linux, and FreeBSD, with a WebAssembly build for the browser.
| Item | Value |
|---|---|
| Platform | macOS / Windows / Linux / FreeBSD / browser (WASM) |
| Implementation | Pure Rust + egui, single binary |
| Drawing formats | DXF R12–2018 read/write, DWG R13–2018 read/write (acadrust library) |
| License | MIT OR Apache-2.0, no account, no subscription |
| Status | Early development |
AutoCAD's command-line feel, open source, and a single binary — all three.
Key Features
- Command-line drafting: aliases, AutoComplete,
@dx,dy,@d<a, direct distance entry,.scrscripts, transparent commands - Draw and modify: LINE, PLINE, CIRCLE, SPLINE and more, plus TRIM, FILLET, ARRAY, OVERKILL and more
- Precision snaps: a dozen-plus object snaps including endpoint, midpoint, center, quadrant, intersection, and tangent, with polar tracking and ortho
- Layers and properties: layer palette with on/off, freeze, lock, and plot; per-object property editing with linetypes and lineweights
- Annotation: full DIM* commands with DIMSTYLE variables, MLEADER, TABLE, MTEXT stacked fractions, and a single-stroke drafting font
- Hatch and blocks: pick-point hatch boundaries with islands, pattern/solid/gradient fills, BLOCK/INSERT attribute and nested blocks
- Layouts and plotting: paper-space viewports, page setups, PLOT to PDF, SVG and PNG export
- Parametric constraints: geometric and dimensional constraints, AUTOCONSTRAIN, expression parameters, re-solved after every edit
- Agent-drivable: MCP server, JSON control channel, and
cadcraft-cli; every menu item and tool is a command
Target Audience
- Drafting engineers migrating from AutoCAD
- Developers who need to read and write DXF
- Automation tinkerers driving CAD through AI agents
- Students and hobbyists on a budget
Quick Start
- Install Rust 1.95 or later
- Run
git clone https://github.com/storytold/cadcraft, enter the directory, and build - Type
Lat the command line and press Enter to start drawing - For scripting use the
cadcraft-clisubcommands: info, convert, run, commands, mcp
Core Advantages
- Single binary: no runtime dependencies; the macOS universal binary and WASM build share one source
- Open formats: full DXF support (ASCII and binary, R12–2018); DWG read/write to R2000 via the open-source acadrust library
- Interface languages: 15 languages with live switching, including Simplified Chinese (CJK font required)
- Dual license: MIT OR Apache-2.0, no account, no subscription
System Requirements
| Item | Requirement |
|---|---|
| OS | macOS, Windows, Linux, FreeBSD, browser |
| Build | Rust 1.95+ |
| Architecture | x86_64, arm64 |
Notes
- Early stage: entities CADCraft does not model yet are not kept when saving DXF
- DWG dependency: DWG support goes through the open-source acadrust library; versions after R2000 are not guaranteed
Release history
Sort