commit 3d534dcd4faf0042c7b538a9bb1d7ec0db3e9507
parent 7faa57a39a16459e6bcd598d63ce900a414aa1bb
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:
1 file changed, 22 insertions(+), 0 deletions(-)
diff --git a/tools/sdk_xtask_import/src/wasm_declarations.rs b/tools/sdk_xtask_import/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!(