Clone this repo:
  1. 38986b0 Keep MSVC /LIBPATH link args when linking with rust-lld (#4396) by Martin Kuntz Jacobsen · 10 hours ago upstream/main
  2. 9b3ce1f Migrate crate_variants.bzl to rules_testing (#4398) by Taylor Edwards · 2 days ago
  3. 6401431 Migrate win_interface_library_analysis_test.bzl to rules_testing (#4400) by Taylor Edwards · 2 days ago
  4. f1b3901 Migrate transitive_crate_outputs_test.bzl to rules_testing (#4399) by Taylor Edwards · 2 days ago
  5. c0cee38 Remove redundant build-dependency attribute from cargo_build_script. (#4394) by Jonathan B. Coe · 2 days ago

Rust Rules

  • Postsubmit Build status

Overview

This repository provides rules for building Rust projects with Bazel.

Starter repo

The fastest way to try this in an empty project is to click the green “Use this template” button on https://github.com/bazel-starters/rust.

Community

General discussions and announcements take place in the GitHub Discussions, but there are additional places where community members gather to discuss rules_rust.

Documentation

Please refer to the full documentation.