-
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
1 parent
e7d27ad
commit ce4fe99
Showing
9 changed files
with
33 additions
and
8 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,16 @@ | ||
#!/bin/bash | ||
|
||
CARGO_FMT="cargo +nightly fmt" | ||
|
||
$CARGO_FMT --version &>/dev/null | ||
if [ $? != 0 ]; then | ||
printf "[pre_commit] \033[0;31merror\033[0m: \"$CARGO_FMT\" not available?\n" | ||
exit 1 | ||
fi | ||
|
||
$CARGO_FMT -- --check | ||
if [ $? != 0 ]; then | ||
printf "[pre_commit] $CARGO_FMT → \033[0;31merror\033[0m \n" | ||
else | ||
printf "[pre_commit] $CARGO_FMT → \033[0;32mOK\033[0m \n" | ||
fi |
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,3 @@ | ||
format_strings = true | ||
wrap_comments = true | ||
format_doc_comments = true |
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 |
---|---|---|
@@ -1,10 +1,15 @@ | ||
language: rust | ||
|
||
rust: | ||
- stable | ||
- beta | ||
- nightly | ||
- 1.32.0 | ||
|
||
before_script: | ||
rustup component add rustfmt --toolchain nightly | ||
|
||
script: | ||
- cargo +nightly fmt --all -- --check | ||
- cargo build --verbose | ||
- cargo test --verbose |
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,4 @@ | ||
|
||
# 0.1.0 | ||
|
||
* Playing with Rust |
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# Guardnode Coordinator | ||
# Coordinator | ||
|
||
Guardnode Coordinator implementation for the Commerceblock Covalence system | ||
Implementation of the Coordinator daemon, responsible for verifying the operation of Guardnodes in the Commerceblock Covalence system |
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
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 |
---|---|---|
|
@@ -7,4 +7,3 @@ | |
pub fn run() { | ||
println!("Running Coordinator daemon!"); | ||
} | ||
|
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
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 |
---|---|---|
@@ -1,7 +1,6 @@ | ||
//! # Main | ||
//! | ||
//! Main daemon entry | ||
//! | ||
extern crate coordinator; | ||
|
||
|