Tag:bazel
All the articles with the tag "bazel".
Running Go tools in a browser
Posted on:September 6, 2025 at 10:30 AMQuick overview of how Go tools for the Mrav custom CPU are run inside a browser by leveraging WASM. The project is built with Bazel using Go rules.
Embedded bare-metal C with Bazel and AVR
Posted on:August 14, 2025 at 07:00 PMPractical example of using Bazel to build an embedded C program, bare-metal. Concrete example with AVR ATmega328p.
Simple Lua integration in Go
Posted on:July 20, 2025 at 01:30 PMLearn how to use Bazel to easily integrate (with a single command) mainline Lua in Go and potentially other languages (e.g. embedded C programs).
Cross-compiling C and Go via cgo with Bazel
Posted on:May 31, 2025 at 10:15 AMWalkthrough for cross compiling a mixed C and Go binary for another platform using cgo and Bazel. Example is done with x86_64/Linux compiling for RISC-V/Linux.
Making USB devices - end to end guide to your first gadget
Posted on:June 1, 2024 at 09:00 AMIntroduction to implementing USB devices. Minimal overview of hardware and software with an example with STM32 microcontroller. Also contains an index to very detailed guides for more information.
OCI containers with Bazel in one command
Posted on:April 27, 2024 at 09:30 AMGuide on building and running OCI containers using Bazel with one command. Bazel builds your software, packages the layers and builds the tarballs that can be imported by something like Docker to run your workloads.
Go gRPC servers with Bazel in one command
Posted on:April 20, 2024 at 11:30 AMIn-depth guide on building gRPC servers in Go programming language using Bazel. The end result is a single command that builds the proto definitions and links them into the server business logic. Includes the modern Bazel module mechanism for dependencies.
Cross compiling C and C++ with Bazel
Posted on:October 16, 2023 at 05:30 PMLearn how to utilize Bazel's toolchains and platforms to cross-compile C and C++ for another architecture and OS. The example used is cross-compiling for a bare-metal RISC-V machine.
Build all software in one command with Bazel
Posted on:October 11, 2023 at 11:15 AMAn in-depth guide on how to use Bazel, including writing custom rules to automate any build/run software flow. The example combines fetching remote tools, running a multi-language build and building complex binaries.