Crates.io | alienlanguage |
lib.rs | alienlanguage |
version | 0.1.0 |
source | src |
created_at | 2016-06-25 03:29:51.503757 |
updated_at | 2016-06-25 03:29:51.503757 |
description | An example of using Bitbucket Pipelines for a Rust project |
homepage | https://bitbucket.org/atlassian/pipelines-examples-rust |
repository | https://bitbucket.org/atlassian/pipelines-examples-rust.git |
max_upload_size | |
id | 5483 |
size | 199,129 |
Bitbucket is the Git solution for professional teams. Bitbucket Pipelines allows you to build, test and deploy from Bitbucket.
Rust is a systems programming language that runs blazingly fast, prevents segfaults, and guarantees thread safety. If you are new to Rust check out Setting up a Rust project.
The project centers around matching patterns in a noisy signal against a dictionary of known words from an alien languge. To demonstrate the capabilities of Bitbucket Pipelines the project includes the following aspects:
a library in the src/ directory that is documented and contains the following types of tests:
integration tests in the tests/ directory
an example in the examples/ directory
Bitbucket Pipelines is used to
Build the project
Format the source code
Run unit tests
Test the project library's documentation
Test only the specified integration test target
Run the benchmarks
Build the project's documentation
Package and upload this project to the registry
Deploy the web service
cargo build --release
./fmt.sh
cargo test --lib --release -v --no-fail-fast -- --nocapture --test
cargo test --doc --release -v --no-fail-fast -- --nocapture --test
cargo test --test alienlanguage --release -v --no-fail-fast -- --nocapture --test
cargo test --lib --release -v --no-fail-fast -- --nocapture --bench
cargo doc --release --no-deps
target/doc/alienlanguage/index.html
target/doc/webservice/index.html