Skip to content

Commit c5d47b5

Browse files
committed
v0.11.0
1 parent 0a07a6f commit c5d47b5

File tree

199 files changed

+3936
-3238
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

199 files changed

+3936
-3238
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
mail-parser 0.11.0
2+
================================
3+
- `rkyv` zero-copy deserialization support.
4+
- Changed `usize` to `u32` types.
5+
- Renamed `serde_support` feature to `serde`.
6+
17
mail-parser 0.10.2
28
================================
39
- Fixed `HeaderName` enum order to avoid breaking bincode serialization.

Cargo.toml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "mail-parser"
33
description = "Fast and robust e-mail parsing library for Rust"
4-
version = "0.10.2"
4+
version = "0.11.0"
55
edition = "2021"
66
authors = [ "Stalwart Labs <hello@stalw.art>"]
77
license = "Apache-2.0 OR MIT"
@@ -16,9 +16,10 @@ resolver = "2"
1616
hashify = { version = "0.2" }
1717
encoding_rs = { version = "0.8", optional = true }
1818
serde = { version = "1.0", features = ["derive"], optional = true }
19+
rkyv = { version = "0.8", optional = true }
1920

2021
[dev-dependencies]
21-
mail-parser = { path = ".", features = ["serde_support", "full_encoding"] }
22+
mail-parser = { path = ".", features = ["serde", "full_encoding"] }
2223
serde = { version = "1.0", features = ["derive"] }
2324
serde_json = "1.0"
2425
bincode = "1.3.3"
@@ -27,7 +28,8 @@ chrono = "0.4"
2728
[features]
2829
default = ["full_encoding"]
2930
full_encoding = ["encoding_rs"]
30-
serde_support = ["serde"]
31+
serde = ["dep:serde"]
32+
rkyv = ["dep:rkyv"]
3133

3234
[profile.bench]
3335
debug = true

resources/eml/legacy/000.crlf.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,10 @@
9292
"c_type": "image",
9393
"c_subtype": "png",
9494
"attributes": [
95-
[
96-
"name",
97-
"redball.png"
98-
]
95+
{
96+
"name": "name",
97+
"value": "redball.png"
98+
}
9999
]
100100
}
101101
},
@@ -119,10 +119,10 @@
119119
"c_type": "attachment",
120120
"c_subtype": null,
121121
"attributes": [
122-
[
123-
"filename",
124-
"redball.png"
125-
]
122+
{
123+
"name": "filename",
124+
"value": "redball.png"
125+
}
126126
]
127127
}
128128
},

resources/eml/legacy/000.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,10 @@
9292
"c_type": "image",
9393
"c_subtype": "png",
9494
"attributes": [
95-
[
96-
"name",
97-
"redball.png"
98-
]
95+
{
96+
"name": "name",
97+
"value": "redball.png"
98+
}
9999
]
100100
}
101101
},
@@ -119,10 +119,10 @@
119119
"c_type": "attachment",
120120
"c_subtype": null,
121121
"attributes": [
122-
[
123-
"filename",
124-
"redball.png"
125-
]
122+
{
123+
"name": "filename",
124+
"value": "redball.png"
125+
}
126126
]
127127
}
128128
},

resources/eml/legacy/001.crlf.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,10 @@
9898
"c_type": "text",
9999
"c_subtype": "plain",
100100
"attributes": [
101-
[
102-
"charset",
103-
"utf-7"
104-
]
101+
{
102+
"name": "charset",
103+
"value": "utf-7"
104+
}
105105
]
106106
}
107107
},

resources/eml/legacy/001.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,10 @@
9898
"c_type": "text",
9999
"c_subtype": "plain",
100100
"attributes": [
101-
[
102-
"charset",
103-
"utf-7"
104-
]
101+
{
102+
"name": "charset",
103+
"value": "utf-7"
104+
}
105105
]
106106
}
107107
},

resources/eml/legacy/002.crlf.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,10 +127,10 @@
127127
"c_type": "text",
128128
"c_subtype": "html",
129129
"attributes": [
130-
[
131-
"charset",
132-
"iso-8859-1"
133-
]
130+
{
131+
"name": "charset",
132+
"value": "iso-8859-1"
133+
}
134134
]
135135
}
136136
},

resources/eml/legacy/002.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,10 +127,10 @@
127127
"c_type": "text",
128128
"c_subtype": "html",
129129
"attributes": [
130-
[
131-
"charset",
132-
"iso-8859-1"
133-
]
130+
{
131+
"name": "charset",
132+
"value": "iso-8859-1"
133+
}
134134
]
135135
}
136136
},

resources/eml/legacy/003.crlf.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -127,10 +127,10 @@
127127
"c_type": "multipart",
128128
"c_subtype": "alternative",
129129
"attributes": [
130-
[
131-
"boundary",
132-
"=====================_714967308==_.ALT"
133-
]
130+
{
131+
"name": "boundary",
132+
"value": "=====================_714967308==_.ALT"
133+
}
134134
]
135135
}
136136
},
@@ -159,10 +159,10 @@
159159
"c_type": "text",
160160
"c_subtype": "plain",
161161
"attributes": [
162-
[
163-
"charset",
164-
"iso-8859-1"
165-
]
162+
{
163+
"name": "charset",
164+
"value": "iso-8859-1"
165+
}
166166
]
167167
}
168168
},
@@ -197,10 +197,10 @@
197197
"c_type": "text",
198198
"c_subtype": "html",
199199
"attributes": [
200-
[
201-
"charset",
202-
"iso-8859-1"
203-
]
200+
{
201+
"name": "charset",
202+
"value": "iso-8859-1"
203+
}
204204
]
205205
}
206206
},

resources/eml/legacy/003.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -127,10 +127,10 @@
127127
"c_type": "multipart",
128128
"c_subtype": "alternative",
129129
"attributes": [
130-
[
131-
"boundary",
132-
"=====================_714967308==_.ALT"
133-
]
130+
{
131+
"name": "boundary",
132+
"value": "=====================_714967308==_.ALT"
133+
}
134134
]
135135
}
136136
},
@@ -159,10 +159,10 @@
159159
"c_type": "text",
160160
"c_subtype": "plain",
161161
"attributes": [
162-
[
163-
"charset",
164-
"iso-8859-1"
165-
]
162+
{
163+
"name": "charset",
164+
"value": "iso-8859-1"
165+
}
166166
]
167167
}
168168
},
@@ -197,10 +197,10 @@
197197
"c_type": "text",
198198
"c_subtype": "html",
199199
"attributes": [
200-
[
201-
"charset",
202-
"iso-8859-1"
203-
]
200+
{
201+
"name": "charset",
202+
"value": "iso-8859-1"
203+
}
204204
]
205205
}
206206
},

resources/eml/legacy/004.crlf.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,10 +127,10 @@
127127
"c_type": "text",
128128
"c_subtype": "plain",
129129
"attributes": [
130-
[
131-
"charset",
132-
"us-ascii"
133-
]
130+
{
131+
"name": "charset",
132+
"value": "us-ascii"
133+
}
134134
]
135135
}
136136
},

resources/eml/legacy/004.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,10 +127,10 @@
127127
"c_type": "text",
128128
"c_subtype": "plain",
129129
"attributes": [
130-
[
131-
"charset",
132-
"us-ascii"
133-
]
130+
{
131+
"name": "charset",
132+
"value": "us-ascii"
133+
}
134134
]
135135
}
136136
},

resources/eml/legacy/005.crlf.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,10 @@
9494
"c_type": "text",
9595
"c_subtype": "plain",
9696
"attributes": [
97-
[
98-
"charset",
99-
"utf-7"
100-
]
97+
{
98+
"name": "charset",
99+
"value": "utf-7"
100+
}
101101
]
102102
}
103103
},

resources/eml/legacy/005.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,10 @@
9494
"c_type": "text",
9595
"c_subtype": "plain",
9696
"attributes": [
97-
[
98-
"charset",
99-
"utf-7"
100-
]
97+
{
98+
"name": "charset",
99+
"value": "utf-7"
100+
}
101101
]
102102
}
103103
},

resources/eml/legacy/006.crlf.json

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,10 @@
9393
"c_type": "multipart",
9494
"c_subtype": "mixed",
9595
"attributes": [
96-
[
97-
"boundary",
98-
"----=_NextPart_000_0004_01BFC037.28F2FA90"
99-
]
96+
{
97+
"name": "boundary",
98+
"value": "----=_NextPart_000_0004_01BFC037.28F2FA90"
99+
}
100100
]
101101
}
102102
},
@@ -180,10 +180,10 @@
180180
"c_type": "image",
181181
"c_subtype": "png",
182182
"attributes": [
183-
[
184-
"name",
185-
"blueball.png"
186-
]
183+
{
184+
"name": "name",
185+
"value": "blueball.png"
186+
}
187187
]
188188
}
189189
},
@@ -207,10 +207,10 @@
207207
"c_type": "attachment",
208208
"c_subtype": null,
209209
"attributes": [
210-
[
211-
"filename",
212-
"blueball.png"
213-
]
210+
{
211+
"name": "filename",
212+
"value": "blueball.png"
213+
}
214214
]
215215
}
216216
},
@@ -1562,10 +1562,10 @@
15621562
"c_type": "image",
15631563
"c_subtype": "png",
15641564
"attributes": [
1565-
[
1566-
"name",
1567-
"redball.png"
1568-
]
1565+
{
1566+
"name": "name",
1567+
"value": "redball.png"
1568+
}
15691569
]
15701570
}
15711571
},
@@ -1589,10 +1589,10 @@
15891589
"c_type": "attachment",
15901590
"c_subtype": null,
15911591
"attributes": [
1592-
[
1593-
"filename",
1594-
"redball.png"
1595-
]
1592+
{
1593+
"name": "filename",
1594+
"value": "redball.png"
1595+
}
15961596
]
15971597
}
15981598
},

0 commit comments

Comments
 (0)