#revision #database-migrations #wikidot #database #nuscp

yanked deepwell-rpc

Database management and migrations service

0.0.6 Jan 27, 2020
0.0.5 Jan 27, 2020

#5 in #wikidot

AGPL-3.0-or-later

64KB
1K SLoC

deepwell-rpc

An RPC server and client for DEEPWELL calls. See the relevant crate documentation for more information about what services it provides.

Compilation

This crate targets the latest stable Rust. At time of writing, that is 1.40.0

$ cargo build --release
$ cargo run --release -- [arguments] # server

If you wish to use its client, import the crate and use it as a library.

API

The current API provided by the RPC server is as follows:

protocol() -> io::Result<String>: Returns a static protocol version. Currently "0".

ping() -> io::Result<()>: Determines if the server is reachable.

time() -> io::Result<f64>: Returns the system time on the server. It may be in any timezone and is not monotonic.

(TODO)


lib.rs:

Client for sending RPC calls to DEEPWELL

Dependencies

~48–66MB
~1.5M SLoC