npmgen-core 0.3.1

Library that generates the npm publish tree shipping a prebuilt Rust binary.
Documentation
//! Generate the npm publish tree that ships a prebuilt Rust binary.
//!
//! The tree follows the "platform packages" pattern: a meta package whose
//! `optionalDependencies` point at one `@scope/name-<os>-<cpu>` package per
//! platform, each carrying the binary and filtered by npm `os`/`cpu`. Package
//! identity is read from the target crate via `cargo metadata`; targets, payload
//! and foreign manifests are declared under `[package.metadata.npmgen]` (or
//! `[workspace.metadata.npmgen]`).
//!
//! Obtain a [`Project`] with [`Project::builder`] (in-memory) or [`Project::load`]
//! (from a manifest), then run [`Generator::new`].

mod error;
mod pipeline;

pub mod compile;
pub mod config;
pub mod npm;
pub mod project;
pub mod target;

pub use compile::{BuildDriver, CargoDriver, CompileError};
pub use config::{Config, ConfigError, Launcher, ManifestSpec, TargetSpec};
pub use error::{Error, Result};
pub use npm::NpmError;
pub use pipeline::{DEFAULT_DRIVER, DEFAULT_OUT, Generator};
pub use project::{
    Author, DEFAULT_MANIFEST_PATH, Identity, Overrides, Project, ProjectBuilder, ProjectError,
    Workspace,
};
pub use target::{Target, TargetError};