Add code to test the wasm code path without actually dropping into wasm.
This commit is contained in:
@@ -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,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user