-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #672 from swimos/readme
Updates the top level readme.
- Loading branch information
Showing
8 changed files
with
186 additions
and
49 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,21 @@ | ||
# SwimOS Development Guid | ||
|
||
## Dependencies | ||
[Formatting](https://github.com/rust-lang/rustfmt): `rustup component add rustfmt`<br> | ||
[Clippy](https://github.com/rust-lang/rust-clippy): `rustup component add clippy`<br> | ||
[Tarpaulin](https://github.com/xd009642/tarpaulin) `cargo install cargo-tarpaulin`<br> | ||
|
||
## Unit tests | ||
#### Basic: `cargo test` | ||
#### With coverage: `cargo tarpaulin --ignore-tests -o Html -t 300` | ||
|
||
## Lint | ||
#### Manual | ||
1) `cargo fmt --all -- --check` | ||
2) `cargo clippy --all-features --workspace --all-targets -- -D warnings` | ||
|
||
#### Automatic (before commit): | ||
- Install hook: `sh ./install-commit-hook.sh` | ||
- Remove hook: `sh ./remove-commit-hook.sh` | ||
|
||
Note: The pre-commit hooks take a while to run all checks. |
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
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 |
---|---|---|
|
@@ -5,9 +5,10 @@ authors = ["Swim Inc. developers [email protected]"] | |
edition = "2021" | ||
|
||
[features] | ||
default = [] | ||
default = ["signal"] | ||
rocks_store = ["swimos_rocks_store"] | ||
trust_dns = ["swimos_runtime/trust_dns"] | ||
signal = ["tokio/signal"] | ||
|
||
[dependencies] | ||
futures = { workspace = 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
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
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