mirror of
https://github.com/chatmail/core.git
synced 2026-04-17 21:46:35 +03:00
When running `cargo test` in the deltachat-jsonrpc folder, a new file `openrpc/openrpc.json` will be created with an [OpenRPC](https://spec.open-rpc.org/) definition. It can be copy-pasted into the [OpenRPC playground](https://playground.open-rpc.org/) and used to generate clients in other languages.
Delta Chat RPC server
This program provides a JSON-RPC 2.0 interface to DeltaChat over standard I/O.
Install
To download binary pre-builds check the releases page.
Rename the downloaded binary to deltachat-rpc-server and add it to your PATH.
To install from source run:
cargo install --git https://github.com/deltachat/deltachat-core-rust/ deltachat-rpc-server
The deltachat-rpc-server executable will be installed into $HOME/.cargo/bin that should be available
in your PATH.
Usage
To use just run deltachat-rpc-server command. The accounts folder will be created in the current
working directory unless DC_ACCOUNTS_PATH is set:
export DC_ACCOUNTS_PATH=$HOME/delta/
deltachat-rpc-server
The common use case for this program is to create bindings to use Delta Chat core from programming languages other than Rust, for example: