postjevsql.git / third-party / reindeer.toml
1# Fetch crates from crates.io at build time (http_archive), no vendored
2# sources in git.
3vendor = false
4# Every crate sees the full Cargo env (build scripts read e.g.
5# CARGO_PKG_VERSION_PATCH), as under cargo.
6cargo_env = true
7precise_srcs = true
8include_top_level = true
9
10[buck]
11file_name = "BUCK"
12# tools/cargo-gen reads the version requirements from Cargo.toml.
13buckfile_imports = """
14load("//third-party:pg_major.bzl", "buildscript_run", "cargo")
15
16export_file(
17    name = "Cargo.toml",
18    src = "Cargo.toml",
19    visibility = ["//tools/cargo-gen:"],
20)
21"""
22# Setting buckfile_imports drops reindeer's default `cargo.` prefixes.
23rust_library = "cargo.rust_library"
24rust_binary = "cargo.rust_binary"