Skip to main content

Module add

Module add 

Source
Expand description

Ecosystem-crate scaffolding (fdl add <target>): drops a configured sub-project inside a flodl project for hands-on discovery. Currently supports flodl-hf. fdl add flodl-hf – two modes for wiring flodl-hf into a project.

  • playground: drops ./flodl-hf/ as a standalone cargo crate with a one-file AutoModel example, plus a flodl-hf: entry in the root fdl.yml so fdl flodl-hf <cmd> routes into the playground from the project root. Try-it-out path; the user’s own Cargo.toml is untouched.
  • install: appends flodl-hf = "=X.Y.Z" to root Cargo.toml [dependencies] (default features). Wires the crate into the user’s own code; nothing else mutated.

Modes are combinable on the same invocation. Without flags, an interactive prompt asks; non-tty stdin errors loudly.

Targets accepted: flodl-hf and its alias hf. Other targets surface a loud error listing the supported set.

Functions§

add_flodl_hf_at
Scaffold flodl-hf/ playground under base and link it into the root fdl.yml. Entry point for fdl add flodl-hf --playground (with base = cwd) and fdl init --with-hf follow-up (with base = the freshly-scaffolded project dir). The base dir must contain a Cargo.toml with a pinnable flodl dependency.
install_flodl_hf_at
Append flodl-hf to the root Cargo.toml [dependencies] table. Idempotent — already-present is a friendly no-op.
run