mirror of
https://github.com/chatmail/core.git
synced 2026-04-17 21:46:35 +03:00
This creates a specific type for blobs, with well defined conversions at the borders. It also introduces a strong type for the Param::File value since that param is often used used by the public API to set filenames using absolute paths, but then core changes the param to a blob before it gets to the database. This eliminates a few more functions with very mallable C-like arguments behaviour which combine a number of operations in one. Because blob filenames are stored so often in arbitrary strings this does add more code when receiving those, until the storage is fixed. File name sanitisation is now deletated to the sanitize-filename crate which should do a slightly better job at this.
80 lines
1.7 KiB
TOML
80 lines
1.7 KiB
TOML
[package]
|
|
name = "deltachat"
|
|
version = "1.0.0-beta.2"
|
|
authors = ["Delta Chat Developers (ML) <delta@codespeak.net>"]
|
|
edition = "2018"
|
|
license = "MPL"
|
|
|
|
[dependencies]
|
|
deltachat_derive = { path = "./deltachat_derive" }
|
|
mmime = { version = "0.1.2", path = "./mmime" }
|
|
|
|
libc = "0.2.51"
|
|
pgp = { version = "0.2.3", default-features = false }
|
|
hex = "0.3.2"
|
|
sha2 = "0.8.0"
|
|
rand = "0.6.5"
|
|
smallvec = "0.6.9"
|
|
reqwest = "0.9.15"
|
|
num-derive = "0.2.5"
|
|
num-traits = "0.2.6"
|
|
native-tls = "0.2.3"
|
|
lettre = { git = "https://github.com/deltachat/lettre", branch = "master" }
|
|
imap = { git = "https://github.com/jonhoo/rust-imap", branch = "master" }
|
|
base64 = "0.10"
|
|
charset = "0.1"
|
|
percent-encoding = "2.0"
|
|
serde = { version = "1.0", features = ["derive"] }
|
|
serde_json = "1.0"
|
|
chrono = "0.4.6"
|
|
failure = "0.1.5"
|
|
failure_derive = "0.1.5"
|
|
# TODO: make optional
|
|
rustyline = "4.1.0"
|
|
lazy_static = "1.4.0"
|
|
regex = "1.1.6"
|
|
rusqlite = { version = "0.20", features = ["bundled"] }
|
|
r2d2_sqlite = "0.12.0"
|
|
r2d2 = "0.8.5"
|
|
strum = "0.16.0"
|
|
strum_macros = "0.16.0"
|
|
thread-local-object = "0.1.0"
|
|
backtrace = "0.3.33"
|
|
byteorder = "1.3.1"
|
|
itertools = "0.8.0"
|
|
image-meta = "0.1.0"
|
|
quick-xml = "0.15.0"
|
|
escaper = "0.1.0"
|
|
bitflags = "1.1.0"
|
|
jetscii = "0.4.4"
|
|
debug_stub_derive = "0.3.0"
|
|
sanitize-filename = "0.2.1"
|
|
|
|
[dev-dependencies]
|
|
tempfile = "3.0"
|
|
pretty_assertions = "0.6.1"
|
|
pretty_env_logger = "0.3.0"
|
|
proptest = "0.9.4"
|
|
|
|
[workspace]
|
|
members = [
|
|
"deltachat-ffi",
|
|
"deltachat_derive",
|
|
"mmime",
|
|
]
|
|
|
|
[[example]]
|
|
name = "simple"
|
|
path = "examples/simple.rs"
|
|
|
|
[[example]]
|
|
name = "repl"
|
|
path = "examples/repl/main.rs"
|
|
|
|
|
|
[features]
|
|
default = ["nightly", "ringbuf"]
|
|
vendored = ["native-tls/vendored", "reqwest/default-tls-vendored"]
|
|
nightly = ["pgp/nightly"]
|
|
ringbuf = ["pgp/ringbuf"]
|