@docmd/engine-rust-binaries
v0.8.4
Published
Pre-built Rust binaries for the docmd engine. All platforms bundled.
Maintainers
Readme
@docmd/engine-rust-binaries
Maintainer-only package. Contains the Rust source code and pre-built native binaries for the docmd Rust engine.
Structure
native/
Cargo.toml — Rust crate definition
build.rs — napi-rs build script
src/lib.rs — All Rust engine capabilities (edit this to add features)
bin/
docmd-engine-darwin-arm64.node — macOS Apple Silicon (753KB)
docmd-engine-darwin-x64.node — macOS Intel
docmd-engine-linux-x64.node — Linux x64
docmd-engine-linux-arm64.node — Linux ARM64
docmd-engine-win32-x64.node — Windows x64For Maintainers
Adding new capabilities
- Edit
native/src/lib.rs— add your new task handler - Run
pnpm --filter @docmd/engine-rust-binaries run build - Commit the updated binary in
bin/ - The new capability is now available to all users
Building binaries
# Build for current platform
pnpm --filter @docmd/engine-rust-binaries run build
# You need to build on each platform:
# - macOS ARM64 (Apple Silicon Mac)
# - macOS x64 (Intel Mac)
# - Linux x64
# - Linux ARM64
# - Windows x64How users get the binaries
Users install @docmd/engine-rust (not this package). At install time, it downloads the appropriate binary from this repo's bin/ directory on GitHub.
Not published to npm
This package is "private": true. It exists only to:
- Hold the Rust source code
- Hold the pre-built binaries (committed to git)
- Provide a build script for maintainers
Users never install or interact with this package directly.
