mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 16:57:49 +03:00
4f0b9c3e42
Summary: This is the first part of allowing us to update mononoke blobstore put behaviour to optionally a) log when it is overwriting keys, and b) not overwrite existing keys. Introduce BlobstorePutOps for blobstore implementations so we can track overwrite status of a put, and force an explicit PutBehaviour if required. Its intended that only blobstore implementation code and special admin tooling will need to access BlobstorePutOps methods. Reviewed By: farnz Differential Revision: D24021168 fbshipit-source-id: 56ae34f9995a93cf1e47fbcfa2565f236c28ae12
41 lines
1.1 KiB
TOML
41 lines
1.1 KiB
TOML
[package]
|
|
name = "blobstore"
|
|
edition = "2018"
|
|
version = "0.1.0"
|
|
authors = ['Facebook']
|
|
license = "GPLv2+"
|
|
include = ["src/**/*.rs", "test/**/*.rs"]
|
|
|
|
[lib]
|
|
path = "src/lib.rs"
|
|
|
|
[[test]]
|
|
name = "blobstore_test"
|
|
path = "test/main.rs"
|
|
|
|
[dependencies]
|
|
context = { path = "../server/context" }
|
|
stats = { git = "https://github.com/facebookexperimental/rust-shed.git", branch = "master" }
|
|
abomonation = "0.7"
|
|
abomonation_derive = "0.5"
|
|
anyhow = "1.0"
|
|
auto_impl = "0.4"
|
|
bytes = { version = "0.5", features = ["serde"] }
|
|
futures = { version = "0.3.5", features = ["async-await", "compat"] }
|
|
futures-old = { package = "futures", version = "0.1" }
|
|
serde = { version = "1.0", features = ["derive", "rc"] }
|
|
serde_derive = "1.0"
|
|
strum = "0.17"
|
|
strum_macros = "0.17"
|
|
thiserror = "1.0"
|
|
zstd = "=0.5.3+zstd.1.4.5"
|
|
|
|
[dev-dependencies]
|
|
cacheblob = { path = "cacheblob" }
|
|
fileblob = { path = "fileblob" }
|
|
memblob = { path = "memblob" }
|
|
mononoke_types = { path = "../mononoke_types" }
|
|
fbinit = { git = "https://github.com/facebookexperimental/rust-shed.git", branch = "master" }
|
|
tempdir = "0.3"
|
|
tokio-compat = "0.1"
|