Skip to content

feat(wasm): lock the real threaded Rust artifact admission profile #31

Closed

Description

@zackees

Child of #26 and #15; prerequisite for #13/#14.\n\n## Scope\n\nAdd a source-only Rust 1.95 threaded guest and Soldr temporary-output build path for wasm32-wasip1-threads. Check in guest source and lockfile, never a generated wasm artifact. Capture the exact sorted import/export/shared-memory manifest from that pinned artifact.\n\nExtend #25 with a threaded-rust-v1 precompile profile: exactly one imported shared env.memory with a maximum plus matching memory export; wasi.thread-spawn (i32)->i32; wasi_thread_start (i32,i32)->(); kernal-api-run ()->(); kernal-api:v1.kernel-yield ()->(); and only manifest-derived, signature-checked owned P1 compatibility imports. All other imports/exports, start sections, defined/extra/nonshared/memory64/multi-memory, and malformed metadata reject before Module::new.\n\nP1 compatibility is private capability-free emulation or deterministic denial only: no wasmtime-wasi, preopens, filesystem, environment, network, process spawn, real clock/randomness, or inherited stdio.\n\n## RED to GREEN\n\nRED: Soldr builds the real guest to temporary output and current #25 rejects it before compilation; ambient P1 mutation also rejects with zero compilation count. GREEN: the same exact artifact admits only through the new profile; manifest mutation, wrong signature, extra P1 name, or memory mismatch still rejects precompile. Prove default=[] has no engine/parser/guest-build resolution.\n\n## Non-goals\n\nNo SharedMemory allocation, Linker, Store, InstancePre, execution, thread spawn, runtime work, streams/resources, quotas, cancellation, containment, Tauri, or screenshots. Those belong to the dependent bootstrap child and #27/#28.\n\n## Decisions\n\nThe artifact is the source of truth; never broadly allow WASI. If Soldr Rust 1.95 cannot install this target, record that evidence and return target selection to #15.\n\nRelated: parent #26; prerequisite #15; contributes to #13 and #14. Rust target references: https://github.com/rust-lang/rust/blob/main/compiler/rustc_target/src/spec/targets/wasm32_wasip1_threads.rs and https://doc.rust-lang.org/nightly/rustc/platform-support/wasm32-wasip1-threads.html

Activity

  1. added
    enhancement
    on Aug 27, 2026
  2. added 5 commits that reference this issue on Sep 1, 2026
    38f7495
    871f08b
    8110208
    aee31f3
    7462440
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

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions