Module targets

Source
Expand description

Definitions for the “rules_rust” Bazel targets.

Structs§

AdditiveContent
An opaque blob of text that we treat as a target.
Aliases_ 🔒
AllCrateDeps_ 🔒
CargoBuildScript
cargo_build_script
CratesUniverseMacro 🔒
crates_universe exposes a few macros that make it easier to define depedencies and aliases.
ExtractCargoLints
Reads lint config from a Cargo.toml file.
RustBinary
rust_binary
RustDocTest
rust_doc_test.
RustLibrary
rust_library
RustTest
rust_test
WorkspaceDependencies 🔒

Enums§

MacroOption 🔒
RustTestKind
RustTestSize
Size of the Bazel Test.

Constants§

PROTO_FILEGROUP_NAME 🔒
Name given to the Bazel filegroup that exports all protobuf files.

Traits§

Named 🔒
A hack for const generic strings.
RustTarget

Functions§

crate_features
Returns a set of Cargo features that are common to all platforms, and then any additional features that need to be enabled for a specific platform.
platform_feature_sets
Returns a FeatureSet of reverse dependencies (in other words, all crates that depend on) for the provided package, for every platform that we support.

Type Aliases§

Aliases 🔒
AllCrateDeps 🔒