mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 08:47:12 +03:00
2ff9ad0fea
Summary: Async the query macros. This change also migrates most callsites, with a few more complicated ones handle as separate diffs, which temporarily use sql01::queries in this diff. With this change the query string is computed lazily (async fn/blocks being lazy) so we're not holding the extra memory of query string as well as query params for quite as long. This is of most interest for queries doing writes where the query string can be large when large values passed (e.g. Mononoke sqlblob blobstore ) Reviewed By: krallin Differential Revision: D26586715 fbshipit-source-id: e299932457682b0678734f44bb4bfb0b966edeec
36 lines
1.6 KiB
TOML
36 lines
1.6 KiB
TOML
[package]
|
|
name = "bonsai_svnrev_mapping"
|
|
version = "0.1.0"
|
|
authors = ["Facebook"]
|
|
edition = "2018"
|
|
license = "GPLv2+"
|
|
|
|
[[test]]
|
|
name = "bonsai_svnrev_mapping_test"
|
|
path = "test/main.rs"
|
|
|
|
[dependencies]
|
|
abomonation = "0.7"
|
|
abomonation_derive = "0.5"
|
|
anyhow = "1.0"
|
|
async-trait = "0.1.29"
|
|
auto_impl = "0.4"
|
|
bonsai_svnrev_mapping_thrift = { version = "0.1.0", path = "if" }
|
|
bytes = { version = "0.5", features = ["serde"] }
|
|
cachelib = { version = "0.1.0", git = "https://github.com/facebookexperimental/rust-shed.git", branch = "master" }
|
|
caching_ext = { version = "0.1.0", path = "../common/rust/caching_ext" }
|
|
context = { version = "0.1.0", path = "../server/context" }
|
|
fbinit = { version = "0.1.0", git = "https://github.com/facebookexperimental/rust-shed.git", branch = "master" }
|
|
fbthrift = { version = "0.0.1+unstable", git = "https://github.com/facebook/fbthrift.git", branch = "master" }
|
|
memcache = { version = "0.1.0", git = "https://github.com/facebookexperimental/rust-shed.git", branch = "master" }
|
|
mononoke_types = { version = "0.1.0", path = "../mononoke_types" }
|
|
slog = { version = "2.5", features = ["max_level_debug"] }
|
|
sql = { version = "0.1.0", git = "https://github.com/facebookexperimental/rust-shed.git", branch = "master" }
|
|
sql_construct = { version = "0.1.0", path = "../common/sql_construct" }
|
|
sql_ext = { version = "0.1.0", path = "../common/rust/sql_ext" }
|
|
thiserror = "1.0"
|
|
|
|
[dev-dependencies]
|
|
fbinit-tokio-02 = { version = "0.1.0", git = "https://github.com/facebookexperimental/rust-shed.git", branch = "master" }
|
|
mononoke_types-mocks = { version = "0.1.0", path = "../mononoke_types/mocks" }
|