sdk

Radroots SDK and bindings
git clone https://radroots.dev/git/sdk.git
Log | Files | Refs | README

commit afaa2f2853bce4fed6c45e9902a2b35a5c04fcac
parent 7d94a98261a1507a581c5ed6da1920f5b45e6dd2
Author: triesap <tyson@radroots.org>
Date:   Sun, 12 Jul 2026 01:39:07 +0000

crate-surface: cover replica store update declarations

- add farm and plot update exports to the wasm declaration inventory
- assert primary and sidecar declarations expose those entrypoints
- keep generated declaration output owned by xtask regeneration
- validate with focused xtask tests and replica-store wasm generation

Diffstat:
Mtools/xtask/src/wasm_declarations.rs | 22++++++++++++++++++++++
1 file changed, 22 insertions(+), 0 deletions(-)

diff --git a/tools/xtask/src/wasm_declarations.rs b/tools/xtask/src/wasm_declarations.rs @@ -460,6 +460,7 @@ const REPLICA_STORE_FUNCTIONS: &[WasmPublicFunction] = &[ public_function!("replica_store_farm_delete", Some("opts_json"), Any, 2, 3), public_function!("replica_store_farm_find_many", Some("opts_json"), Any, 2, 3), public_function!("replica_store_farm_find_one", Some("opts_json"), Any, 2, 3), + public_function!("replica_store_farm_update", Some("opts_json"), Any, 2, 3), public_function!( "replica_store_farm_gcs_location_create", Some("opts_json"), @@ -829,6 +830,7 @@ const REPLICA_STORE_FUNCTIONS: &[WasmPublicFunction] = &[ public_function!("replica_store_plot_delete", Some("opts_json"), Any, 2, 3), public_function!("replica_store_plot_find_many", Some("opts_json"), Any, 2, 3), public_function!("replica_store_plot_find_one", Some("opts_json"), Any, 2, 3), + public_function!("replica_store_plot_update", Some("opts_json"), Any, 2, 3), public_function!( "replica_store_plot_gcs_location_create", Some("opts_json"), @@ -1029,10 +1031,30 @@ mod tests { .contains("export function replica_store_farm_create") ); assert!( + replica_store[0] + .contents + .contains("export function replica_store_farm_update") + ); + assert!( + replica_store[0] + .contents + .contains("export function replica_store_plot_update") + ); + assert!( replica_store[1] .contents .contains("export declare const replica_store_farm_create") ); + assert!( + replica_store[1] + .contents + .contains("export declare const replica_store_farm_update") + ); + assert!( + replica_store[1] + .contents + .contains("export declare const replica_store_plot_update") + ); let replica_sync = declaration_files(specs[2]).expect("replica sync declarations"); assert!(