mirror of
https://github.com/chatmail/core.git
synced 2026-04-28 10:56:29 +03:00
a32a275d7343289784990c109d5f0bfe27296e62
* Add utility to convert OsStr to CString This is approach seems acceptable in the context of deltachat, it should work correctly on unix and on Windows requires paths to be valid utf-8. * Use failure crate for error types * Add OsStrExt impl for Path, fix windows and update docs - Adds an OsStrExt impl for Path directly, a little more convenience. - Fix the windows code to actually use the right function name. Test the impl function on unix too since that was the point of having it implemented in a separate function to begin with. - Improve the docs, do hyperlinks a bit better. * Another attempt at learing to type Having your compiler in the cloud is just painful. * Do not treat this as a fatal error When PRs are made from forks the passwords are unavailable. We don't want CI to fail because of this. * Implement using the AsRef<OsStr> trait This means any type with implements this trait will get this implementation, thus covering both OsStr and Path instead of having duplicate implementations for those like before. * fix format
Delta Chat Rust
Project porting deltachat-core to rust
Current commit on deltachat/deltachat-core: 12ef73c8e76185f9b78e844ea673025f56a959ab.
Using the CLI client
Run using cargo:
cargo run --example repl -- /path/to/db
Configure your account (if not already configured):
Delta Chat Core is awaiting your commands.
> set addr your@email.org
> set mail_pw yourpassword
> configure
If you're already configured it's enough to > connect.
Create a contact:
> addcontact yourfriends@email.org
Command executed successfully.
List contacts:
> listcontacts
Contact#10: <name unset> <yourfriends@email.org>
Contact#1: Me √√ <your@email.org>
Create a chat with your friend and send a message:
> createchat 10
Single#10 created successfully.
> chat 10
Single#10: yourfriends@email.org [yourfriends@email.org]
> send hi
Message sent.
For more commands type > help.
> help
Development
# run tests
$ cargo test --all
# build c-ffi
$ cargo build -p deltachat_ffi --release
Languages
Rust
75.4%
Tcl
9.3%
Python
9%
C
5%
Nix
0.4%
Other
0.9%