Skip to main content

Crate cargo_plushie

Crate cargo_plushie 

Source
Expand description

Shared types and utilities for cargo plushie.

The crate is split between src/main.rs (CLI entry point + clap parsing) and this library module. Keeping the logic in a library makes integration testing possible without spawning the binary.

Commands:

  • cargo plushie build - generate a custom renderer workspace under target/plushie-renderer/ with every native widget in the dep graph registered, then run cargo build.
  • cargo plushie download - fetch a precompiled stock renderer from GitHub releases and place it under target/plushie/bin/.

Modules§

discover
Widget discovery via cargo metadata.
doctor
Diagnostic report for cargo plushie doctor.
download
Download subcommand: fetch a stock renderer from GitHub releases.
generator
Renderer workspace generator.
patch_config
Shared plumbing for [patch.crates-io] overrides that redirect plushie-rust crates to a local checkout.
platform
Platform detection helpers for build + download paths.
scaffold
Scaffolders for cargo plushie new-widget and cargo plushie init.

Structs§

WidgetMetadata
Metadata describing a single native widget as declared in its [package.metadata.plushie.widget] table.

Enums§

Error
Error type returned by library functions in this crate.

Type Aliases§

Result
Convenience Result alias.