feat: implement WarpGridEngine wrapper API (US-121)#109
Merged
tervezo-ai[bot] merged 3 commits intomainfrom Mar 14, 2026
Merged
Conversation
…r registration - WarpGridEngine::new(config: ShimConfig) stores config and registers only enabled shim interfaces with the linker (filesystem, dns, signals, database_proxy, threading) via per-interface add_to_linker calls - build_host_state() now uses stored config (removed &config parameter) - async_handler_linker() uses same selective registration, always registers http_types interface - config() accessor exposes stored ShimConfig - Structured startup logging with all shim enable/disable flags and key config values (DNS TTL, pool size, timezone) - Updated Runtime::new(config), WasmInstance::new() (removed shim_config param), InstanceFactory::create_instance(), PoolConfig (removed shim_config field) - Re-exported ShimConfig from warp-runtime for downstream crates - Updated all 17 integration test files, scheduler, and daemon callers Closes #23 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Adds a one-call method that compiles a Wasm component from bytes, builds host state from stored config, creates a store with 64 MiB memory limit, and instantiates via the linker. Closes #23 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…ate with factory Closes gaps in critical path coverage for WarpGridEngine: - Test that all 4 database_proxy Host trait methods return descriptive errors when db_proxy is disabled - Test that build_host_state creates DbProxyHost when database_proxy is enabled with a factory Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
WarpGridEngine::new(config: ShimConfig)— accepts aShimConfigat construction time, stores it, and selectively registers only enabled shim interfaces with the Wasmtime linker (filesystem, dns, signals, database_proxy, threading) via per-interfaceadd_to_linkercalls instead of the world-levelWarpgridShims::add_to_linkerbuild_host_state()— now uses the stored config (removed the separate&configparameter), simplifying the API surfaceinstantiate(module_bytes)— new convenience method that compiles a Wasm component, builds host state, creates a store with 64 MiB memory limit, and instantiates in one callasync_handler_linker()— updated to use same selective registration pattern, always registershttp_typesinterfaceconfig()accessor — exposes storedShimConfigfor inspectiontracing::infolevelShimConfigfromwarp-runtimefor downstream crate convenienceTest plan
warpgrid-hostunit tests pass (14 engine tests including new API tests)warp-runtimetests passwarpgrid-schedulertests passcargo checkacross full workspace — cleancargo clippy -D warningson modified packages — cleanCloses #23
🤖 Generated with Claude Code