2021-07-28 13:53:38 +03:00
|
|
|
# Aqua DHT service
|
|
|
|
|
2021-07-30 14:38:34 +03:00
|
|
|
Rust implementation of the AquaDHT service.
|
|
|
|
|
2021-07-28 13:53:38 +03:00
|
|
|
## How to build .wasm
|
|
|
|
* Install dependencies
|
|
|
|
|
|
|
|
```bash
|
|
|
|
rustup toolchain install nightly-2021-03-24-x86_64-unknown-linux-gnu
|
|
|
|
rustup default nightly-2021-03-24-x86_64-unknown-linux-gnu
|
|
|
|
rustup target add wasm32-wasi
|
|
|
|
cargo install +nightly marine
|
|
|
|
```
|
|
|
|
|
|
|
|
* Compile compile .wasm and generate aqua file
|
|
|
|
|
|
|
|
```bash
|
|
|
|
./build.sh
|
|
|
|
```
|
|
|
|
|
|
|
|
## How to run tests
|
|
|
|
```bash
|
2021-07-30 18:18:27 +03:00
|
|
|
cargo test --release -- --test-threads=1
|
2021-07-28 13:53:38 +03:00
|
|
|
```
|