mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-06 02:25:23 +00:00
WaitContext and Reader/Writer are in the critical path for every device. Use small vector optimization to avoid making unnecessary small heap allocations. The smallvec crate is maintained by the servo authors and only has an optional dependency on serde. BUG=none TEST=pre-cq Cq-Depend: chromium:2687076 Change-Id: Ic0c57ac949e263b70b76495e3c9121dd8c2e1177 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/2684062 Tested-by: kokoro <noreply+kokoro@google.com> Reviewed-by: Dylan Reid <dgreid@chromium.org> Reviewed-by: Daniel Verkamp <dverkamp@chromium.org> Commit-Queue: Daniel Verkamp <dverkamp@chromium.org>
19 lines
421 B
TOML
19 lines
421 B
TOML
[package]
|
|
name = "base"
|
|
version = "0.1.0"
|
|
authors = ["The Chromium OS Authors"]
|
|
edition = "2018"
|
|
|
|
[features]
|
|
chromeos = ["sys_util/chromeos"]
|
|
|
|
[dependencies]
|
|
cros_async = { path = "../cros_async" }
|
|
data_model = { path = "../data_model" }
|
|
libc = "*"
|
|
serde = { version = "1", features = [ "derive" ] }
|
|
serde_json = "*"
|
|
smallvec = "1.6.1"
|
|
sync = { path = "../sync" }
|
|
sys_util = { path = "../sys_util" }
|
|
thiserror = "1.0.20"
|