load("@fbsource//tools/build_defs:rust.bzl", "fb_rust_tool") fb_rust_tool( name = "fastmod", srcs = [ "src/main.rs", "src/terminal.rs", ], env = { "CARGO_PKG_VERSION": "0.4.4-fb", }, # NOTE: Tests don't work because we can't use # assert_cmd::Command::cargo_bin. Oh well. There is an FB-specific # workaround but I don't want to mess with setting up MOE just to # run tests through Buck. test_deps = [ "//third-party/rust:assert_cmd", "//third-party/rust:tempfile", ], visibility = ["PUBLIC"], deps = [ "//third-party/rust:anyhow", "//third-party/rust:clap-2", "//third-party/rust:crossterm", "//third-party/rust:diff", "//third-party/rust:grep", "//third-party/rust:ignore", "//third-party/rust:num_cpus", "//third-party/rust:regex", "//third-party/rust:rprompt", ], )