Skip to content

rust_binary does not produce link in bazel-bin #305

@dfreese

Description

@dfreese

My commit a1d8936 caused rust_binary to no longer link into bazel-bin. The binary still is built, and can be run by bazel run, but the binary no longer appears in bazel-bin, just bazel-out. This doesn't appear to be related to depending on a proc-macro, as the following example has this behavior.

# //BUILD
load("@io_bazel_rules_rust//rust:rust.bzl", "rust_binary")

rust_binary(
    name = "check",
    srcs = ["main.rs"],
)
// //main.rs
fn main() {
    print!("hello world\n");
}

Still trying to track down the exact cause of it here, but wanted to flag it in case anyone has noticed this behavior, or similar, and if it's more clear to others as to why this would happen.

Also, I'm not sure what the revert policy is for this project, but I'm perfectly fine reverting it until a fix is found. Let me know.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions