postjevsql.git / third-party / reindeer.toml

Fetch crates from crates.io at build time (http_archive), no vendored sources in git.

3vendor = false

Every crate sees the full Cargo env (build scripts read e.g. CARGO_PKG_VERSION_PATCH), as under cargo.

6cargo_env = true
7precise_srcs = true
8include_top_level = true
10[buck]
11file_name = "BUCK"

tools/cargo-gen reads the version requirements from Cargo.toml.

13buckfile_imports = """
14load("//third-party:pg_major.bzl", "buildscript_run", "cargo")
16export_file(
17    name = "Cargo.toml",
18    src = "Cargo.toml",
19    visibility = ["//tools/cargo-gen:"],
20)
21"""

Setting buckfile_imports drops reindeer's default cargo. prefixes.

23rust_library = "cargo.rust_library"
24rust_binary = "cargo.rust_binary"