Skip to content

Commit

Permalink
docs: update rollup-http-server README
Browse files Browse the repository at this point in the history
  • Loading branch information
vfusco committed Apr 18, 2024
1 parent ed252b7 commit 83b4ba6
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 5 deletions.
7 changes: 5 additions & 2 deletions rollup-http/echo-dapp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,12 @@ To install Rust follow the instructions [here](https://www.rust-lang.org/tools/i

## Build for risc-v cpu

###Build using toolchain docker
### Build
This DApp is built during the docker build process:

```shell
$ ./build.sh
$ cd machine-emulator-tools
$ make
```

## Execution
Expand Down
22 changes: 19 additions & 3 deletions rollup-http/rollup-http-server/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,30 @@ Rollup HTTP Server application implements interface defined [here](https://githu
This project requires Rust.
To install Rust follow the instructions [here](https://www.rust-lang.org/tools/install).

### Build using toolchain docker
### Build
This service is built within the docker build step when building all other tools:

```shell
cd machine-emulator-tools
make
```

### Build using the libcmt mock version (for development and tests)
First build libcmt mock on host:

```shell
cd machine-emulator-tools/sys-utils/libcmt/
make host
```

Then build this project with:
```shell
$ ./build-with-toolchain.sh
MOCK_BUILD=true cargo build
```

### Run tests
```shell
$ CPATH="<path/to/libcmt/includes>:$CPATH" RUSTFLAGS="-L /path/to/libcmt/lib" cargo test -- --show-output --test-threads=1
MOCK_BUILD=true cargo test -- --show-output --test-threads=1
```


Expand Down

0 comments on commit 83b4ba6

Please sign in to comment.