mirror of
https://github.com/chatmail/core.git
synced 2026-04-17 21:46:35 +03:00
* integrate json-rpc repo https://github.com/deltachat/deltachat-jsonrpc * get target dir from cargo * fix clippy * use node 16 in ci use `npm i` instead of `npm ci` try fix ci script and fix a doc comment * fix get_provider_info docs * refactor function name * fix formatting make test pass fix clippy * update .gitignore * change now returns event names as id directly, no conversion method or number ids anymore also longer timeout for requesting test accounts from mailadm * fix compile after rebase * add json api to cffi and expose it in dc node * add some files to npm ignore that don't need to be in the npm package * add jsonrpc crate to set_core_version * add jsonrpc feature flag * call a jsonrpc function in segfault example * break loop on empty response * fix closing segfault thanks again to link2xt for figguring this out * activate other tests again * remove selectAccount from highlevel client * put jsonrpc stuff in own module * disable jsonrpc by default * add @deltachat/jsonrpc-client to make sure its dependencies are installed, too whwn installing dc-node * commit types.ts that dc-node has everything it needs to provide @deltachat/jsonrpc-client without an extra ts compile step * improve naming * Changes for tokio compat, upgrade to yerpc 0.3 This also changes the webserver binary to use axum in place of tide. * Improvements to typescript package * Improve docs. * improve docs, fix example * Fix CFFI for JSON-RPC changes * use stable toolchain not 1.56.0 * fix ci * try to fix ci * remove emtpy file allow unused code for new_from_arc * expose anyhow errors feature name was wrong * use multi-threaded runtime in JSON-RPC webserver * improve test setup and code style * don't wait for IO on webserver start * Bump yerpc to 0.3.1 with fix for axum server * update todo document remove specific api stuff for now, we now have the an incremental aproach on moving not the all at-once effort I though it would be * remove debug logs * changelog entry about the jsonrpc * Fix method name casings and cleanups * Improve JSON-RPC CI, no need to build things multiple times * Naming consistency: Use DeltaChat not Deltachat * Improve documentation * fix docs * adress dig's comments - description in cargo.toml - impl From<EventType> for EventTypeName - rename `CommandApi::new_from_arc` -> `CommandApi::from_arc` - pre-allocate if we know the entry count already - remove unused enumerate - remove unused serde attribute comment - rename `FullChat::from_dc_chat_id` -> `FullChat::try_from_dc_chat_id` * make it more idiomatic: rename `ContactObject::from_dc_contact -> `ContactObject::try_from_dc_contact` * apply link2xt's suggestions: - unref jsonrpc_instance in same thread it was created in - increase `max_queue_size` from 1 to 1000 * reintroduce segfault test script * remove unneeded context thanks to link2xt for pointing that out * Update deltachat-ffi/deltachat.h Co-authored-by: bjoern <r10s@b44t.com> * Update deltachat-ffi/deltachat.h Co-authored-by: bjoern <r10s@b44t.com> * make sure to use dc_str_unref instead of free on cstrings returned/owned by rust * Increase online test timeouts for CI * fix the typos thanks to ralphtheninja for finding them * restore same configure behaviour as desktop: make configure restart io with the old configuration if it had one on error * found another segfault: this time in batch_set_config * remove print from test * make dcn_json_rpc_request return undefined instead of not returning this might have been the cause for the second segfault * add set_config_from_qr to jsonrpc * add `add_device_message` to jsonrpc * jsonrpc: add `get_fresh_msgs` and `get_fresh_msg_cnt` * jsonrpc: add dm_chat_contact to ChatListItemFetchResult * add webxdc methods to jsonrpc: - `webxdc_send_status_update` - `webxdc_get_status_updates` - `message_get_webxdc_info` * add `chat_get_media` to jsonrpc also add viewtype wrapper enum and use it in `MessageObject`, additionally to using it in `chat_get_media` * use camelCase in all js object properties * Add check_qr function to jsonrpc * Fixed clippy errors and formatting * Fixed formatting * fix changelog ordering after rebase * fix compile after merging in master branch Co-authored-by: Simon Laux <mobile.info@simonlaux.de> Co-authored-by: Simon Laux <Simon-Laux@users.noreply.github.com> Co-authored-by: bjoern <r10s@b44t.com> Co-authored-by: flipsimon <28535045+flipsimon@users.noreply.github.com>
147 lines
3.8 KiB
TOML
147 lines
3.8 KiB
TOML
[package]
|
|
name = "deltachat"
|
|
version = "1.92.0"
|
|
authors = ["Delta Chat Developers (ML) <delta@codespeak.net>"]
|
|
edition = "2021"
|
|
license = "MPL-2.0"
|
|
rust-version = "1.56"
|
|
|
|
[profile.dev]
|
|
debug = 0
|
|
panic = 'abort'
|
|
opt-level = 1
|
|
|
|
[profile.release]
|
|
lto = true
|
|
panic = 'abort'
|
|
|
|
[dependencies]
|
|
deltachat_derive = { path = "./deltachat_derive" }
|
|
|
|
ansi_term = { version = "0.12.1", optional = true }
|
|
anyhow = "1"
|
|
async-imap = { git = "https://github.com/async-email/async-imap", branch = "master", default-features = false, features = ["runtime-tokio"] }
|
|
async-native-tls = { version = "0.4", default-features = false, features = ["runtime-tokio"] }
|
|
async-smtp = { version = "0.5", default-features = false, features = ["smtp-transport", "socks5", "runtime-tokio"] }
|
|
trust-dns-resolver = "0.21"
|
|
tokio = { version = "1", features = ["fs", "rt-multi-thread", "macros"] }
|
|
tokio-tar = { version = "0.3" } # TODO: integrate tokio into async-tar
|
|
backtrace = "0.3"
|
|
base64 = "0.13"
|
|
bitflags = "1.3"
|
|
chrono = { version = "0.4", default-features=false, features = ["clock", "std"] }
|
|
dirs = { version = "4", optional=true }
|
|
email = { git = "https://github.com/deltachat/rust-email", branch = "master" }
|
|
encoded-words = "0.2"
|
|
escaper = "0.1"
|
|
futures = "0.3"
|
|
hex = "0.4.0"
|
|
image = { version = "0.24.3", default-features=false, features = ["gif", "jpeg", "ico", "png", "pnm", "webp", "bmp"] }
|
|
kamadak-exif = "0.5"
|
|
lettre_email = { git = "https://github.com/deltachat/lettre", branch = "master" }
|
|
libc = "0.2"
|
|
log = {version = "0.4.16", optional = true }
|
|
mailparse = "0.13"
|
|
native-tls = "0.2"
|
|
num_cpus = "1.13"
|
|
num-derive = "0.3"
|
|
num-traits = "0.2"
|
|
once_cell = "1.13.0"
|
|
percent-encoding = "2.0"
|
|
pgp = { version = "0.8", default-features = false }
|
|
pretty_env_logger = { version = "0.4", optional = true }
|
|
quick-xml = "0.23"
|
|
r2d2 = "0.8"
|
|
r2d2_sqlite = "0.20"
|
|
rand = "0.8"
|
|
regex = "1.6"
|
|
rusqlite = { version = "0.27", features = ["sqlcipher"] }
|
|
rust-hsluv = "0.1"
|
|
rustyline = { version = "9", optional = true }
|
|
sanitize-filename = "0.4"
|
|
serde_json = "1.0"
|
|
serde = { version = "1.0", features = ["derive"] }
|
|
sha-1 = "0.10"
|
|
sha2 = "0.10"
|
|
smallvec = "1"
|
|
strum = "0.24"
|
|
strum_macros = "0.24"
|
|
thiserror = "1"
|
|
toml = "0.5"
|
|
url = "2"
|
|
uuid = { version = "1", features = ["serde", "v4"] }
|
|
fast-socks5 = "0.8"
|
|
humansize = "1"
|
|
qrcodegen = "1.7.0"
|
|
tagger = "4.3.3"
|
|
textwrap = "0.15.0"
|
|
async-channel = "1.6.1"
|
|
futures-lite = "1.12.0"
|
|
tokio-stream = { version = "0.1.9", features = ["fs"] }
|
|
reqwest = { version = "0.11.11", features = ["json"] }
|
|
async_zip = { git = "https://github.com/dignifiedquire/rs-async-zip", branch = "main", default-features = false, features = ["deflate"] }
|
|
|
|
[dev-dependencies]
|
|
ansi_term = "0.12.0"
|
|
criterion = { version = "0.3.6", features = ["async_tokio"] }
|
|
futures-lite = "1.12"
|
|
log = "0.4"
|
|
pretty_env_logger = "0.4"
|
|
proptest = { version = "1", default-features = false, features = ["std"] }
|
|
tempfile = "3"
|
|
tokio = { version = "1", features = ["parking_lot", "rt-multi-thread", "macros"] }
|
|
|
|
[workspace]
|
|
members = [
|
|
"deltachat-ffi",
|
|
"deltachat_derive",
|
|
"deltachat-jsonrpc"
|
|
]
|
|
|
|
[[example]]
|
|
name = "simple"
|
|
path = "examples/simple.rs"
|
|
required-features = ["repl"]
|
|
|
|
[[example]]
|
|
name = "repl"
|
|
path = "examples/repl/main.rs"
|
|
required-features = ["repl"]
|
|
|
|
|
|
[[bench]]
|
|
name = "create_account"
|
|
harness = false
|
|
|
|
[[bench]]
|
|
name = "contacts"
|
|
harness = false
|
|
|
|
[[bench]]
|
|
name = "search_msgs"
|
|
harness = false
|
|
|
|
[[bench]]
|
|
name = "receive_emails"
|
|
harness = false
|
|
|
|
[[bench]]
|
|
name = "get_chat_msgs"
|
|
harness = false
|
|
|
|
[[bench]]
|
|
name = "get_chatlist"
|
|
harness = false
|
|
|
|
[features]
|
|
default = ["vendored"]
|
|
internals = []
|
|
repl = ["internals", "rustyline", "log", "pretty_env_logger", "ansi_term", "dirs"]
|
|
vendored = [
|
|
"async-native-tls/vendored",
|
|
"async-smtp/native-tls-vendored",
|
|
"rusqlite/bundled-sqlcipher-vendored-openssl",
|
|
"reqwest/native-tls-vendored"
|
|
]
|
|
nightly = ["pgp/nightly"]
|