Skip to content

Commit 35d1884

Browse files
author
Yucong Sun
authored
Copying rust client and change it to use libra-dev for AccountResource (#10)
* Copying rust client and change it to use libra-dev in someplaces * Import testsuite
1 parent 09c57a1 commit 35d1884

29 files changed

+8447
-2
lines changed

.circleci/config.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
command: |
1212
sudo sh -c 'echo "deb http://deb.debian.org/debian stretch-backports main" > /etc/apt/sources.list.d/backports.list'
1313
sudo apt-get update
14-
sudo apt-get -t stretch-backports install cmake python3-dev python3-venv
14+
sudo apt-get -t stretch-backports install cmake python3-dev python3-venv clang llvm
1515
- run:
1616
name: Build everything
1717
command: |

build.sh

+7-1
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,23 @@ set -euo pipefail
33

44
# Build libra-dev first
55
cd libra-dev
6+
cargo build
67
cargo test
8+
cd ..
9+
10+
# Then build rust client
11+
cd rust
712
cargo build
813
cd ..
914

10-
# Then build everything else
15+
# C Stuff
1116
rm -rf build
1217
mkdir build
1318
cd build
1419
cmake ..
1520
make VERBOSE=1
1621

1722
# Test!
23+
cd rust && ./test.sh && cd ..
1824
./c/c-client
1925
./cpp/cpp-client

libra-dev/include/data.h

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
extern "C" {
66
#endif
77

8+
#include <stddef.h>
89
#include <stdint.h>
910
#include <stdbool.h>
1011

rust/.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/target
2+
3+
# Client stuff
4+
/client.mnemonic

0 commit comments

Comments
 (0)