A Rust library for Etebase
In addition to exposing a Rust API, this library forms the basis of other Etebase libraries, for example libetebase.
To build:
$ cargo build
To run the tests you first need an Etebase server running locally, because the tests test against a real server.
You will also need to create a special user called test@localhost
with password SomePassword
, which the test suite expects.
$ cargo test -- --test-threads 1
Please note that the tests run against the local server so we need to run them single threaded to make sure they don't clash.
There are tests for the C API which can be run like this:
$ cd c_tests
$ make check
There is also a basic example Etebase client that resides in example.c
. There are compilation instructions at the top of it, so just follow them for more information.