Skip to content

Commit 6d07a5e

Browse files
Initial commit
0 parents  commit 6d07a5e

34 files changed

+16580
-0
lines changed

.dockerignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
.git
2+
**/target/
3+
**/*.txt
4+
**/*.md
5+
/docker/
6+
!/target/release/polkadot-collator
7+
8+
# dotfiles in the repo root
9+
/.*

.editorconfig

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
root = true
2+
[*]
3+
indent_style=tab
4+
indent_size=tab
5+
tab_width=4
6+
end_of_line=lf
7+
charset=utf-8
8+
trim_trailing_whitespace=true
9+
max_line_length=100
10+
insert_final_newline=true
11+
12+
[*.yml]
13+
indent_style=space
14+
indent_size=2
15+
tab_width=8
16+
end_of_line=lf
17+
18+
[*.sh]
19+
indent_style=space
20+
indent_size=4
21+
tab_width=8
22+
end_of_line=lf
23+
24+
[*.json]
25+
indent_style=space
26+
indent_size=2
27+
tab_width=8
28+
end_of_line=lf
29+

.github/workflows/test-code.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Test Code
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
push:
8+
branches:
9+
- main
10+
11+
jobs:
12+
test-code:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout Code
17+
uses: actions/checkout@v2
18+
- name: Install Protoc
19+
uses: arduino/setup-protoc@v1
20+
21+
# Steps taken from https://github.com/actions/cache/blob/master/examples.md#rust---cargo
22+
- name: Cache cargo registry
23+
uses: actions/cache@v2
24+
with:
25+
path: |
26+
~/.cargo/registry
27+
~/.cargo/git
28+
target
29+
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
30+
31+
- name: Install toolchain
32+
uses: actions-rs/toolchain@v1
33+
with:
34+
profile: minimal
35+
toolchain: nightly
36+
components: rustfmt, clippy
37+
target: wasm32-unknown-unknown
38+
override: true
39+
default: true
40+
41+
# Enable this for clippy linting.
42+
# - name: Check and Lint Code
43+
# run: cargo +nightly clippy -- -D warnings
44+
45+
- name: Check Code
46+
run: cargo check
47+
48+
- name: Test Code
49+
run: cargo test

.gitignore

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Cargo compiled files and executables
2+
**/target/
3+
4+
# These are backup files generated by rustfmt
5+
**/*.rs.bk
6+
7+
# Local chain databases (default location)
8+
**/chains/
9+
10+
# The cache for chain data in container
11+
.local
12+
13+
# The cache for docker container dependency
14+
/.cargo/config
15+
16+
.DS_Store
17+
.idea
18+
.vscode

.rustfmt.toml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Basic
2+
hard_tabs = true
3+
max_width = 100
4+
use_small_heuristics = "Max"
5+
6+
# Imports
7+
imports_granularity = "Crate"
8+
reorder_imports = true
9+
10+
# Consistency
11+
newline_style = "Unix"
12+
13+
# Misc
14+
binop_separator = "Back"
15+
chain_width = 80
16+
match_arm_blocks = false
17+
match_arm_leading_pipes = "Preserve"
18+
match_block_trailing_comma = true
19+
reorder_impl_items = false
20+
spaces_around_ranges = false
21+
trailing_comma = "Vertical"
22+
trailing_semicolon = false
23+
use_field_init_shorthand = true

CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @sacha-l @lisa-parity

0 commit comments

Comments
 (0)