Expand description
Pure operation facade and output contract for Stack diagrams.
The facade accepts source bytes and a validated, versioned theme catalog. It
never reads the filesystem, network, process environment, clock, locale, or
host font APIs. Invalid user source is returned as ordered diagnostics in a
successful operation result; OperationalError is reserved for failures
in supplied execution inputs or violated internal pipeline invariants.
use stack_engine::Engine;
let engine = Engine::bundled();
let output = engine.check(b"stack 1.0 diagram \"API\" { node api \"API\" }")?;
assert!(output.diagnostics.is_empty());
assert_eq!(output.metadata.language_version.map(|version| version.major), Some(1));Structs§
- Check
Output - Result of the check operation.
- Completion
Item - One literal, protocol-neutral source completion.
- Completion
Output - Completion result for one caller-owned document version.
- Diagnostic
- Engine-owned portable diagnostic shared by native and future WASM outputs.
- Engine
- Pure engine facade backed by one validated catalog and revision.
- Engine
Metadata - Version metadata attached to every operation output.
- Format
Output - Result of the format operation.
- Hover
- Plain-text semantic information for one source token.
- Hover
Output - Hover result for one caller-owned document version.
- Language
Version - Authored Stack language version when decoding and syntax parsing succeed.
- Provider
Asset - One caller-owned processed SVG addressed by its provider-manifest path.
- Provider
Notice - Notice and provenance for one provider pack used by a rendered artifact.
- Provider
Notice Icon - One provider icon listed in a rendered-artifact notice.
- Provider
Notice Source - One audited archive listed in a rendered-artifact notice.
- Provider
Pack - One validated, content-addressed provider pack held entirely in memory.
- Related
Information - Additional source context related to a diagnostic.
- Render
Output - Result of the render operation.
- Source
Position - One-based line and column with a zero-based UTF-8 byte offset.
- Source
Range - End-exclusive source range.
- Text
Edit - A source replacement interpreted against the unchanged input snapshot.
Enums§
- Completion
Kind - Semantic category of one completion item.
- Hover
Kind - Semantic category described by hover information.
- Operational
Error - Failure in execution inputs or internal pipeline invariants, not in Stack source.
- Severity
- Severity of one portable diagnostic.
Constants§
- ENGINE_
VERSION - Version of the Rust engine facade.
- LANGUAGE_
INTELLIGENCE_ SCHEMA_ VERSION - Portable language-intelligence schema version implemented by the pinned compiler.
Type Aliases§
- Operation
Result - Result channel for failures outside user-authored Stack source.