Skip to content
This repository has been archived by the owner on Oct 31, 2024. It is now read-only.

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
Co-authored-by: axb-topos <[email protected]>
Co-authored-by: Perry Birch <[email protected]>
Co-authored-by: JDawg287 <[email protected]>
Co-authored-by: Monir Hadji <[email protected]>
  • Loading branch information
4 people authored and zkfoundation committed Mar 9, 2023
0 parents commit 87888d4
Show file tree
Hide file tree
Showing 61 changed files with 8,838 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/target/
/.idea/
/.github/
/.vscode/
/docs/
*.iml
/.git/
Dockerfile
docker-compose.yml
6 changes: 6 additions & 0 deletions .github/workflows/properties/rs_build_test.properties.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"name": "Rust",
"description": "Build and test a Rust project with Cargo.",
"iconName": "rust",
"categories": ["Continuous integration", "Rust"]
}
34 changes: 34 additions & 0 deletions .github/workflows/rs_build_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Rust

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
env:
CARGO_TERM_COLOR: always

jobs:
build:
name: Build and Test
runs-on: ubuntu-latest
container: paritytech/ci-linux:production
steps:
- uses: actions/checkout@v2
- name: Build
run: RUSTFLAGS='-D warnings' cargo build --verbose
- name: Test
run: cargo test --all --verbose
clippy:
name: Lint and Format
runs-on: ubuntu-latest
container: paritytech/ci-linux:production
steps:
- uses: actions/checkout@v2
- name: Clippy
run: cargo clippy --all -- -D clippy::suspicious
- name: Fmt
run: cargo fmt --all --check
15 changes: 15 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Generated by Cargo
# will have compiled files and executables
/target/
*~

# testing database
/default_db/
/db*/

# These are backup files generated by rustfmt
**/*.rs.bk

# IntelliJ files
.idea
**/*.iml
82 changes: 82 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "tce-node-app (debug)",
"type": "lldb",
"request": "launch",
"cargo": {
"args": ["build", "--bin=topos-tce-node-app", "--package=topos-tce"],
"filter": {
"name": "topos-tce-node-app",
"kind": "bin"
}
},
"args": [],
"cwd": "${workspaceFolder}",
"env": {
"RUST_LOG": "trace"
}
},
{
"type": "lldb",
"request": "launch",
"name": "tce-node-app (tests, debug)",
"cargo": {
"args": [
"test",
"--no-run",
"--bin=tce-node-app",
"--package=tce-node-app"
],
"filter": {
"name": "tce-node-app",
"kind": "bin"
}
},
"args": [],
"cwd": "${workspaceFolder}"
},
{
"name": "reliable_broadcast (tests, debug)",
"type": "lldb",
"request": "launch",
"cargo": {
"args": [
"test",
"--no-run",
"--test=client_test",
"--package=topos-tce-protocols-reliable-broadcast"
],
"filter": {
"name": "client_test",
"kind": "test"
}
},
"args": [],
"cwd": "${workspaceFolder}",
"env": {
"RUST_LOG": "trace"
}
},
{
"name": "store (tests, debug)",
"type": "lldb",
"request": "launch",
"cargo": {
"args": ["test", "--no-run", "--package=topos-tce-node-store"],
"filter": {
"kind": "test"
}
},
"args": [],
"cwd": "${workspaceFolder}",
"env": {
"RUST_LOG": "trace"
}
}
]
}
Loading

0 comments on commit 87888d4

Please sign in to comment.