From 310ab2eab2b68f14f7f2ce45d3dee0e0d949c4bc Mon Sep 17 00:00:00 2001 From: Tom Alexander Date: Sun, 24 Dec 2023 15:26:45 -0500 Subject: [PATCH] Add standard properties to wasm. --- src/wasm/mod.rs | 1 + src/wasm/standard_properties.rs | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 src/wasm/standard_properties.rs diff --git a/src/wasm/mod.rs b/src/wasm/mod.rs index 807f1cea..ad43a2dc 100644 --- a/src/wasm/mod.rs +++ b/src/wasm/mod.rs @@ -1,5 +1,6 @@ mod document; mod macros; mod parse_result; +mod standard_properties; pub(crate) use parse_result::ParseResult; diff --git a/src/wasm/standard_properties.rs b/src/wasm/standard_properties.rs new file mode 100644 index 00000000..f0b162bc --- /dev/null +++ b/src/wasm/standard_properties.rs @@ -0,0 +1,19 @@ +use organic::types::PostBlank; +use serde::Deserialize; +use serde::Serialize; + +use super::macros::to_wasm; + +#[derive(Serialize, Deserialize)] +pub(crate) struct WasmStandardProperties { + begin: Option, + end: Option, + contents_begin: Option, + contents_end: Option, + post_blank: Option, +} + +to_wasm!(WasmStandardProperties, Document<'s>, original, document, { + // foo + todo!() +});