mirror of
https://github.com/chatmail/core.git
synced 2026-09-22 04:58:47 +03:00
Largest change is in the FFI crate.
With 2024 (but not 2021) edition unsafe code
inside unsafe functions should be marked separately
so we can mark exactly the code that is unsafe.
Some CFFI functions even have no unsafe code inside.
Most interesting change is that .strdup()
functions are not marked as unsafe anymore.
They are allocating memory and return raw pointers,
but there is nothing unsafe about it.
Only using the returned raw pointers is unsafe.
This way calls to .strdup() don't have to be marked
with unsafe{} blocks.
18 lines
762 B
TOML
18 lines
762 B
TOML
[package]
|
|
name = "deltachat-contact-tools"
|
|
version = "0.0.0" # No semver-stable versioning
|
|
edition = "2024"
|
|
description = "Contact-related tools, like parsing vcards and sanitizing name and address. Meant for internal use in the deltachat crate."
|
|
license = "MPL-2.0"
|
|
|
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
|
|
[dependencies]
|
|
anyhow = { workspace = true }
|
|
regex = { workspace = true }
|
|
rusqlite = { workspace = true } # Needed in order to `impl rusqlite::types::ToSql for EmailAddress`. Could easily be put behind a feature.
|
|
chrono = { workspace = true, features = ["alloc", "clock", "std"] }
|
|
|
|
[dev-dependencies]
|
|
anyhow = { workspace = true, features = ["backtrace"] } # Enable `backtrace` feature in tests.
|