This repository has been archived by the owner on Feb 14, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 4e7eff8
Showing
27 changed files
with
9,262 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Contributiong to Advanca Node | ||
|
||
:tada: First of all, thanks for taking time to contribute. | ||
|
||
## Style Guidelines | ||
|
||
As a Rust project, it simply follows [Rust Style Guide](https://github.com/rust-dev-tools/fmt-rfcs/blob/master/guide/guide.md) which can be checked and enforced by [rustfmt](https://github.com/rust-lang/rustfmt). Also, there are a few non-formatting advices such as [naming convention](https://github.com/rust-dev-tools/fmt-rfcs/blob/master/guide/advice.md#names). | ||
|
||
This repository has integrated format checker on the submitted code. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: github pages | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-18.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
submodules: true | ||
- name: install stable toolchain and other components | ||
uses: actions-rs/toolchain@v1.0.5 | ||
with: | ||
profile: minimal | ||
toolchain: stable | ||
- name: create cargo doc | ||
run: cargo doc -p advanca-core --no-deps | ||
- name: deploy | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: ./target/doc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: Rust | ||
|
||
on: [push] | ||
|
||
jobs: | ||
check: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: install stable toolchain and other components | ||
uses: actions-rs/toolchain@v1.0.5 | ||
with: | ||
profile: minimal | ||
toolchain: stable | ||
components: rustfmt, clippy | ||
- name: install wasm | ||
run: ./scripts/init.sh | ||
- name: format check | ||
run: cargo fmt -- --check | ||
# TODO: enable the linter | ||
# - name: linter | ||
# run: cargo clippy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Generated by Cargo | ||
# will have compiled files and executables | ||
**/target/ | ||
# These are backup files generated by rustfmt | ||
**/*.rs.bk | ||
|
||
.DS_Store | ||
|
||
.vscode/ |
Oops, something went wrong.