cargo: add a workspace

Summary:
Make `lib` a cargo workspace so building in subprojects would share a
`target` directory and `cargo doc` will build documentation for all
subprojects.

Reviewed By: DurhamG

Differential Revision: D8741175

fbshipit-source-id: 512325bcb23d51e866e764bdc76dddb22c59ef05
This commit is contained in:
Jun Wu 2018-07-05 15:54:08 -07:00 committed by Facebook Github Bot
parent a745c5a8ae
commit d0c1b6d014
3 changed files with 23 additions and 6 deletions

23
lib/Cargo.toml Normal file
View File

@ -0,0 +1,23 @@
[workspace]
members = [
"argparse",
"cbincode",
"commitcloudsubscriber",
"hg_watchman_client",
"indexedlog",
"lz4-pyframe",
"minibench",
"mpatch-sys",
"mpatch",
"pathencoding",
"pathmatcher",
"radixbuf",
"revisionstore",
"treestate",
"vlqencoding",
"watchman_client",
"zstdelta",
]
[profile.release]
lto = true

View File

@ -3,9 +3,6 @@ name = "lz4-pyframe"
version = "0.1.0"
authors = ["Facebook Source Control Team <sourcecontrol-dev@fb.com>"]
[profile.release]
lto = true
[dependencies]
byteorder = "1"
failure = "0"

View File

@ -3,9 +3,6 @@ name = "revisionstore"
version = "0.1.0"
authors = ["Facebook Source Control Team <sourcecontrol-dev@fb.com>"]
[profile.release]
lto = true
[dependencies]
byteorder = "*"
failure = "*"