Add standard properties to wasm.

This commit is contained in:
Tom Alexander 2023-12-24 15:26:45 -05:00
parent 53320070da
commit 310ab2eab2
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE
2 changed files with 20 additions and 0 deletions

View File

@ -1,5 +1,6 @@
mod document;
mod macros;
mod parse_result;
mod standard_properties;
pub(crate) use parse_result::ParseResult;

View File

@ -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<usize>,
end: Option<usize>,
contents_begin: Option<usize>,
contents_end: Option<usize>,
post_blank: Option<PostBlank>,
}
to_wasm!(WasmStandardProperties, Document<'s>, original, document, {
// foo
todo!()
});