feat: add message parser api to jsonrpc and cffi

api: cffi add `dc_parse_message_text_to_ast_json` and `dc_msg_get_parsed_text_as_json

api: jsonrpc: add `get_parsed_message_text_ast_json` and `parse_text_to_ast_json`
This commit is contained in:
Simon Laux
2023-09-04 21:51:27 +02:00
committed by link2xt
parent eacbb82399
commit 8e47e50a7e
8 changed files with 153 additions and 5 deletions

19
Cargo.lock generated
View File

@@ -1118,6 +1118,7 @@ dependencies = [
"chrono",
"criterion",
"deltachat_derive",
"deltachat_message_parser",
"email",
"encoded-words",
"escaper",
@@ -1259,6 +1260,18 @@ dependencies = [
"yerpc",
]
[[package]]
name = "deltachat_message_parser"
version = "0.8.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "826f80f4b32f51457773351b2d821dc1f45273a38235e8fd3bdf662b67b70bcd"
dependencies = [
"nom",
"serde",
"serde_derive",
"unic-idna-punycode",
]
[[package]]
name = "der"
version = "0.6.1"
@@ -5221,6 +5234,12 @@ version = "0.1.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "eaea85b334db583fe3274d12b4cd1880032beab409c0d774be044d4480ab9a94"
[[package]]
name = "unic-idna-punycode"
version = "0.9.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "06feaedcbf9f1fc259144d833c0d630b8b15207b0486ab817d29258bc89f2f8a"
[[package]]
name = "unicode-bidi"
version = "0.3.13"