diff --git a/build_wasm.sh b/build_wasm.sh index 88ba26d..319707c 100755 --- a/build_wasm.sh +++ b/build_wasm.sh @@ -1,4 +1,4 @@ #!/bin/bash #cargo build --target web -- --features serde -wasm-pack build --release --target web -- --features serde +wasm-pack build --release --target web diff --git a/src/document.rs b/src/document.rs index 234d645..1ebd662 100644 --- a/src/document.rs +++ b/src/document.rs @@ -15,8 +15,7 @@ pub fn parse_rtf(rtf: String) -> RtfDocument { return RtfDocument::try_from(rtf).unwrap() } -#[derive(Debug, Default, Clone, PartialEq)] -#[cfg_attr(feature = "serde", derive(Deserialize, Serialize))] +#[derive(Debug, Default, Clone, PartialEq, Deserialize, Serialize)] #[wasm_bindgen(getter_with_clone)] pub struct RtfDocument { pub header: RtfHeader,