mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 00:45:18 +03:00
aa8152f1dd
Summary: The use of dyn traits of the Thrift-generated server traits was emitting future compatibility warnings with recent versions of rustc, due to a fixed soundness hole in the trait object system: ``` error: the trait `x_account_aggregator_if::server::XAccountAggregator` cannot be made into an object | = this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! note: for a trait to be "object safe" it needs to allow building a vtable to allow the call to be resolvable dynamically; for more information visit <https://doc.rust-lang.org/reference/items/traits.html#object-safety> ``` This diff pulls in https://github.com/dtolnay/async-trait/releases/tag/0.1.51 which results in the Thrift-generated server traits no longer hitting the problematic pattern. Reviewed By: zertosh Differential Revision: D29979939 fbshipit-source-id: 3e6e976181bfcf35ed453ae681baeb76a634ddda
15 lines
353 B
TOML
15 lines
353 B
TOML
# @generated by autocargo from //eden/scm/lib/streams:streams
|
|
[package]
|
|
name = "streams"
|
|
version = "0.1.0"
|
|
edition = "2018"
|
|
|
|
[dependencies]
|
|
async-trait = "0.1.51"
|
|
futures = { version = "0.3.13", features = ["async-await", "compat"] }
|
|
pin-project = "0.4"
|
|
|
|
[dev-dependencies]
|
|
anyhow = "1.0"
|
|
tokio = { version = "1.7.1", features = ["full", "test-util"] }
|