Skip to main content

Crate harn_stdlib

Crate harn_stdlib 

Source
Expand description

Canonical embedded Harn standard library source catalog.

This crate intentionally contains only static source strings so runtime and static tooling crates can share the same stdlib modules without depending on each other.

Structs§

StdlibCliScript
Embedded .harn script that backs a CLI subcommand. Looked up by the harn-cli dispatch wedge (see harn#2293 epic and harn#2294 G1) so subcommands can ship in Harn instead of Rust.
StdlibEntrypointModule
StdlibPromptAsset
StdlibPublicFunction
StdlibSource

Constants§

STDLIB_CLI_SCRIPTS
STDLIB_PROMPT_ASSETS
STDLIB_SOURCES

Functions§

entrypoint_modules
find_cli_script
Find an embedded CLI subcommand script by name. Returns the embedded source string when present, or None if no script with that name is registered in STDLIB_CLI_SCRIPTS.
get_stdlib_prompt_asset
get_stdlib_source
public_functions_for_module