Skip to content

Commit

Permalink
Fix forgotten serde feature
Browse files Browse the repository at this point in the history
  • Loading branch information
d0rianb committed Sep 16, 2024
1 parent c114601 commit ea734ba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build_wasm.sh
Original file line number Diff line number Diff line change
@@ -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
3 changes: 1 addition & 2 deletions src/document.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit ea734ba

Please sign in to comment.