bazelbuild/rules_rust
View on GitHub ↗ ★ 854 Starlark
Rust rules for Bazel
12 mentions on Hacker News by 11 people: 0 stories, 12 comments · first 2016-12-16 · latest 2024-05-28
20082026
-
…yourself, but you basically need to reverse engineer what cargo is doing. My reference for this is https://github.com/bazelbuild/rules_rust which needs to pass a bunch of CARGO_ envvars to get stuff to build, among various other required…
comment by wocram · 2024-05-28 -
…This is an established practice, and Nix wants to drive the build for the same reasons. See: - https://github.com/bazelbuild/rules_rust - https://github.com/google/cargo-raze
comment by cstrahan · 2024-01-15 · in NixOS: Declarative Builds and Deployments -
…useful as the analyzer is a pretty juicy target and also runs proc-macros/build.rs scripts. [1] https://github.com/bazelbuild/rules_rust/pull/384 [2] https://bazelbuild.github.io/rules_rust/rust_analyzer.html
comment by mmastrac · 2023-08-19 · in Rust devs push back as Serde project ships precompiled binaries -
…as what rustc gives. What is supported needs to be inferred from this file, as far as I can tell: https://github.com/bazelbuild/rules_rust/blob/main/rust/plat...
comment by xvedejas · 2022-09-13 · in When to use Bazel? -
I think the newer version of this is https://github.com/bazelbuild/rules_rust which lets you either vendor the dependencies or pull them from your Cargo.toml directly every time. Per the article: bazel + rules_rust should have the…
comment by daniel_rh · 2022-07-28 · in Rust is actually portable -
…relatively straightforward 'remote caching' of build artifacts via Google Cloud Storage or S3. https://github.com/bazelbuild/rules_rust
comment by jgavris · 2021-09-05 · in Fast Rust Builds -
Rust integrates pretty seamlessly into Bazel projects via rules_rust ( https://github.com/bazelbuild/rules_rust ). The existing rules even allow for c calling rust and rust calling c. Example: https://github.com/bazelbuild/rules_rust/blob/m…
comment by emidln · 2021-04-26 · in Modern C++ Won't Save Us (2019) -
…example, nothing prevents skipping Cargo and building Rust directly with rustc the way Bazel does. https://github.com/bazelbuild/rules_rust
comment by dodobirdlord · 2021-01-16 · in Why Zig when there is already C++, D, and Rust? -
…and make it build using bazel. These rules also show some of the open source versions of this work: https://github.com/bazelbuild/rules_rust As well as the features that bazel provides you. The caching, packaging, code gen, cross-language…
comment by gravypod · 2020-10-21 · in Cargo-style dependency management for C, C++ and other languages with Meson -
Bazel is generally much more useful when it can manage the entire build. https://github.com/bazelbuild/rules_rust implements this logic for rust. It calls rustc directly, without cargo for the build, and interacts with cargo through a shim…
comment by wocram · 2020-10-21 · in Cargo-style dependency management for C, C++ and other languages with Meson -
…There are community Rust rules, that I haven't tried yet, but am planning on investigating soon: https://github.com/bazelbuild/rules_rust
comment by blakesmith · 2018-09-29 · in The relative performance of C and Rust -
Bazel already does have Rust support, by the way: https://github.com/bazelbuild/rules_rust
comment by steveklabnik · 2016-12-16 · in Rust required to build Gecko