Skip to content

Commit 46c5686

Browse files
committed
Add readme (#9)
Signed-off-by: kamilsa <[email protected]>
1 parent 396c704 commit 46c5686

File tree

1 file changed

+60
-2
lines changed

1 file changed

+60
-2
lines changed

README.md

+60-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,60 @@
1-
# cmake-hunter-seed
2-
Seed project for C++ projects
1+
# Filecoin (cpp-filecoin)
2+
3+
> C++17 implementation of blockchain based digital storage
4+
5+
Filecoin is a decentralized protocol described in [spec](https://filecoin-project.github.io/specs/)
6+
7+
## Dependencies
8+
9+
All dependencies are managed using [Hunter](hunter.sh). It uses cmake to download required libraries and do not require to download and install packages manually.
10+
Target C++ compilers are:
11+
* GCC 7.4
12+
* Clang 6.0.1
13+
* AppleClang 11.0
14+
15+
16+
17+
## Clone
18+
19+
To clone repository execute
20+
```
21+
git clone https://github.com/filecoin-project/cpp-filecoin.git
22+
```
23+
24+
## Development
25+
### Build cpp-filecoin
26+
27+
First build will likely take long time. However, you can cache binaries to [hunter-binary-cache](https://github.com/soramitsu/hunter-binary-cache) or even download binaries from the cache in case someone has already compiled project with the same compiler. To this end, you need to set up two environment variables:
28+
```
29+
GITHUB_HUNTER_USERNAME=<github account name>
30+
GITHUB_HUNTER_TOKEN=<github token>
31+
```
32+
To generate github token follow the [instructions](https://help.github.com/en/github/authenticating-to-github/creating-a-personal-access-token-for-the-command-line). Make sure `read:packages` and `write:packages` permissions are granted (step 7 in instructions).
33+
34+
This project is can be built with
35+
36+
```
37+
mkdir build && cd build
38+
cmake -DCLANG_TIDY=ON ..
39+
make -j
40+
```
41+
42+
It is suggested to build project with clang-tidy checks, however if you wish to omit clang-tidy step, you can use `cmake ..` instead.
43+
44+
Tests can be run with:
45+
```
46+
cd build
47+
ctest
48+
```
49+
50+
### CodeStyle
51+
52+
We follow [CppCoreGuidelines](https://github.com/isocpp/CppCoreGuidelines).
53+
54+
Please use provided [.clang-format](.clang-format) file to autoformat the code.
55+
56+
## Maintenance
57+
58+
Maintainers: @kamilsa, @zuiris, @harrm, @masterjedy, @Mingela, @Warchant
59+
60+
Tickets: Can be opened in Github Issues.

0 commit comments

Comments
 (0)