Skip to content

Commit

Permalink
Added Serialize/Deserialize to Variable
Browse files Browse the repository at this point in the history
  • Loading branch information
mdecimus committed Dec 11, 2023
1 parent b7b62b3 commit be17314
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ phf = { version = "0.11", features = ["macros"] }
serde = { version = "1.0", features = ["derive", "rc"] }
bincode = "1.3.3"
ahash = { version = "0.8.0" }
fancy-regex = "0.11.0"
fancy-regex = "0.12.0"

[dev-dependencies]
serde_json = "1.0"
Expand Down
3 changes: 2 additions & 1 deletion src/runtime/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ use ahash::{AHashMap, AHashSet};
use mail_parser::{Encoding, Message, MessageParser, MessagePart, PartType};

use mail_parser::HeaderName;
use serde::{Deserialize, Serialize};

#[cfg(not(test))]
use crate::Context;
Expand All @@ -50,7 +51,7 @@ use crate::{

use self::eval::ToString;

#[derive(Debug, Clone)]
#[derive(Debug, Clone, Serialize, Deserialize)]
pub enum Variable {
String(Arc<String>),
Integer(i64),
Expand Down

0 comments on commit be17314

Please sign in to comment.