From 047bf26495f1278ae045311853b5bb95095f6be0 Mon Sep 17 00:00:00 2001 From: Durham Goode Date: Tue, 24 Jul 2018 15:56:03 -0700 Subject: [PATCH] buck: add buck target files Summary: This will let us build with buck. Reviewed By: quark-zju Differential Revision: D8980839 fbshipit-source-id: ea64328d32bc2c88984d0c861acefcc55b84ce02 --- lib/revisionstore/Cargo.toml | 6 ++++-- lib/revisionstore/src/lib.rs | 6 +++++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/lib/revisionstore/Cargo.toml b/lib/revisionstore/Cargo.toml index f256d69b90..4cd804bd56 100644 --- a/lib/revisionstore/Cargo.toml +++ b/lib/revisionstore/Cargo.toml @@ -9,7 +9,9 @@ failure = "*" lz4-pyframe = { path = "../lz4-pyframe" } memmap = "*" mpatch = { path = "../mpatch" } -quickcheck = "*" -rand = "*" rust-crypto = "*" tempfile = "*" + +[dev-dependencies] +rand = "*" +quickcheck = "*" diff --git a/lib/revisionstore/src/lib.rs b/lib/revisionstore/src/lib.rs index 3f8f209448..9fde3ff4b8 100644 --- a/lib/revisionstore/src/lib.rs +++ b/lib/revisionstore/src/lib.rs @@ -3,17 +3,21 @@ //! and file data) extern crate byteorder; +#[cfg(not(fbcode_build))] extern crate crypto; #[macro_use] extern crate failure; extern crate lz4_pyframe; extern crate memmap; -extern crate rand; +#[cfg(fbcode_build)] +extern crate rust_crypto as crypto; extern crate tempfile; #[cfg(test)] #[macro_use] extern crate quickcheck; +#[cfg(test)] +extern crate rand; mod dataindex; mod fanouttable;