Crates.io | uulm-sopra23-group03-core |
lib.rs | uulm-sopra23-group03-core |
version | 0.5.0 |
source | src |
created_at | 2023-06-15 12:44:06.786019 |
updated_at | 2023-07-12 21:47:01.863913 |
description | Core library for implementing Battle of the Centerländ. |
homepage | https://gitlab.uni-ulm.de/softwaregrundprojekt/2022-2023/gruppenprojekt/group-03/core-03 |
repository | https://gitlab.uni-ulm.de/softwaregrundprojekt/2022-2023/gruppenprojekt/group-03/core-03.git |
max_upload_size | |
id | 891058 |
size | 289,273 |
Core library for implementing Battle of the Centerländ.
To be able to use this crate, add it to your Cargo.toml
:
[dependencies]
botc-core = { package = "uulm-sopra23-group03-core", version = "0.4" }
While the package is named uulm-sopra23-group03-core
this adds it to your project as botc-core
.
There are features not enabled by default for specific use cases.
[dependencies]
botc-core = { package = "uulm-sopra23-group03-core", version = "0.4", features = ["client"] }
To enable a feature, specify it with the dependency in your Cargo.toml
:
Feature | Description |
---|---|
client |
Enables sink/stream based client functionality with the client module. Can be used for implementing a client for the game. |
ai |
Enables the ai with training data structures. |
Everything can be installed with rustup
:
# Update rustup's information.
rustup update
# Install the stable Rust toolchain (if not already present).
rustup toolchain add stable
# Add rustfmt.
rustup component add rustfmt
# Add clippy.
rustup component add clippy
This should not output anything when the code is formatted corretcly:
cargo fmt --check
Run the following to automatically format the Rust code:
cargo fmt
Run the following to check the code for common mistakes:
cargo clippy --all-features
Run tests with the following:
cargo test --all-features
Documentation for the local version of the crate can be built and opened with the following:
cargo doc --all-features --open