-
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
Showing
2 changed files
with
44 additions
and
18 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,44 @@ | ||
# Build | ||
|
||
You can build and test the code with [cargo] command. | ||
|
||
If you want to build for only bytes <-> Bencodex: | ||
|
||
``` | ||
cargo build | ||
``` | ||
|
||
If you want to build JSON feature too: | ||
|
||
``` | ||
cargo build --features JSON | ||
``` | ||
|
||
If you want to build JSON CLI tool too: | ||
|
||
``` | ||
cargo build --features json-cli | ||
``` | ||
|
||
# Test | ||
|
||
If you want to test: | ||
|
||
``` | ||
cargo test --features test | ||
``` | ||
|
||
If you want to test JSON-related tests too: | ||
|
||
``` | ||
cargo test --features test,json | ||
``` | ||
|
||
# Format | ||
|
||
``` | ||
cargo fmt | ||
cargo clippy | ||
``` | ||
|
||
[cargo]: https://github.com/rust-lang/cargo/ |
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