Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

API Reference

Every public type, trait, and function has full rustdoc. Two places to read it:

  • This site, under /api/bubbles/ - built from the same commit as the guide you’re reading.
  • docs.rs - rebuilt on every crate release (crates.io package bubbles-dialogue, documented API crate bubbles).

Start there for the authoritative signatures, trait definitions, and error types. The guide points into specific pages as you go.

High-traffic items

A quick index of what you’ll look up most often:

What you wantWhere to look
Compile a scriptcompile, compile_many
Drive a dialogueRunner, DialogueEvent
Store variablesVariableStorage, HashMapStorage
Localise linesLineProvider, HashMapProvider
Register host functionsFunctionLibrary
Pick variantsSaliencyStrategy, FirstAvailable, BestLeastRecentlyViewed
Inline markup spansMarkupSpan
Save / loadRunnerSnapshot, Runner::snapshot / restore (serde only for Serialize/Deserialize on the snapshot)
Handle errorsDialogueError
Unity / C# / C shared libraryNot on docs.rs: see the guide chapter and the C header

Feature flags

FlagDefaultEnables
randonrandom, random_range, dice, RandomAvailable
serdeoffSerialize/Deserialize on Value, HashMapStorage, RunnerSnapshot
fulloffBoth rand and serde together

Still not sure?

  • Search the guide (top-right) for keywords like “once”, “option”, “localisation”.
  • Jump into the examples - they cover most of the API in under 200 lines each.
  • Open an issue if something’s unclear. Documentation gaps are bugs.