Skip to content

feat(config): bounded TOML documents with facade-owned values #206

Closed

Description

@zackees

FastLED has two direct TOML decode sites: build flag loading and optional DWARF-prefix configuration. Move parsing mechanics and generic tests into an opt-in config-toml capability, privately pinning existing toml 0.8.23. Public Document/Value and parse errors must be kernel-owned, without serde/TOML backend traits or re-exports. Preserve TOML scalar/array/table/datetime semantics; limit source bytes before parse and decoded depth/node count before facade conversion completes. Document that decoded limits are post-backend-parse and do not bound parser CPU independently of input. FastLED retains field validation, unknown-field behavior, defaults, mode selection, and DWARF policy. Existing TOML build dependency means whole-graph absence cannot be claimed: prove runtime-edge isolation explicitly. Add RED/GREEN generic tests and app product parity, then actual WASM compile. Coordinated with FastLED/cli#242.

Activity

  1. zackees commented on Sep 13, 2026

    @zackees
    CollaboratorAuthor

    Implemented in #208, stacked on #205 and coordinated with FastLED/cli#242. Local contract/full-feature tests, strict Clippy, dependency isolation, Windows/macOS cross-checks, and review passed. App schema adoption and real WASM verification remain pending.

  2. zackees commented on Sep 16, 2026

    @zackees
    CollaboratorAuthor

    Complete and adopted on both sides; closing with the evidence rather than leaving it open.

    kernal-api — gated behind config-toml, implemented in src/config.rs. with tests/config_toml.rs as its contract tests, and documented in docs/config-toml.md. It landed with #220's application-foundations rebase.

    FastLED — adopted through the pinned release tag: the application consumes kernal_api::config::Document at both TOML call sites (per its migration doc)

    🤖 Generated with Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions