Skip to content

astavonin/maelstrom-challenges

Repository files navigation

maelstrom-challenges

The repository contains implementations of Maelstrom challenges in various programming languages (currently Rust and C++), using Bazel as the build system. It serves as my playground for experimenting with different build systems such as Cargo, CMake, Bazel, and potentially others in the future.

You may find these related articles insightful:

How to Run

Since the repository is Bazel-based, you can follow the typical Bazel workflow:

bazel build //...
bazel test //...

To generate a compile_commands.json file for better editor support, use:

bazel run @hedron_compile_commands//:refresh_all

Running Rust Code with Cargo

If you'd like to run the Rust-specific part of the codebase using Cargo, follow these steps:

  1. Build the project: Run the cargo build command to compile the binaries.
  2. Run tests: Execute cargo test after the build is complete.

While the preferred approach is to use the cargo test command directly, certain dependencies or configurations might require a prior build step. See comments in echo/Cargo.toml and Cargo.toml for additional details.

cargo build
cargo test

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published