load("@rules_cc//cc:defs.bzl", "cc_library", "cc_binary") load("@rules_go//go:def.bzl", "go_binary", "go_library") load("@rules_rust//rust:defs.bzl", "rust_static_library") cc_binary( name = "main_cc", srcs = ["main_cc.cc"], deps = [ ":hello_go.cc", ":hello_rs", ], ) go_binary( name = "hello_go", srcs = ["hello_go.go"], cgo = True, linkmode = "c-archive", ) rust_static_library( name = "hello_rs", srcs = ["hello_rs.rs"], )