Add code to test the wasm code path without actually dropping into wasm.

This commit is contained in:
Tom Alexander
2023-12-25 12:03:59 -05:00
parent dc012b49f5
commit bbb9ec637a
63 changed files with 83 additions and 63 deletions

View File

@@ -10,11 +10,12 @@ use super::standard_properties::WasmStandardProperties;
use super::to_wasm::ToWasm;
use crate::wasm::to_wasm::ToWasmStandardProperties;
#[derive(Serialize, Deserialize)]
#[derive(Debug, Serialize, Deserialize)]
#[serde(tag = "ast_node")]
#[serde(rename = "org-data")]
pub(crate) struct WasmDocument<'s> {
standard_properties: WasmStandardProperties,
additional_properties: Vec<(String, String)>,
children: Vec<()>,
phantom: PhantomData<&'s ()>,
}
@@ -27,6 +28,7 @@ to_wasm!(
{
Ok(WasmDocument {
standard_properties,
additional_properties: Vec::new(),
children: Vec::new(),
phantom: PhantomData,
})