style: Allow to use ThinVec/nsTArray in the style crate

This allows to clean-up the previous patches by using a single ThinVec
(which stores length / capacity along with the allocation).

Differential Revision: https://phabricator.services.mozilla.com/D175029
This commit is contained in:
Emilio Cobos Álvarez 2023-04-12 21:58:29 +00:00 committed by Martin Robinson
parent a2df8f7ea5
commit 0709e13446
9 changed files with 110 additions and 48 deletions

9
Cargo.lock generated
View file

@ -3396,6 +3396,7 @@ dependencies = [
"smallbitvec",
"smallvec",
"string_cache",
"thin-vec",
"time 0.1.45",
"tokio",
"url",
@ -5711,6 +5712,7 @@ dependencies = [
"string_cache",
"style_derive",
"style_traits",
"thin-vec",
"time 0.1.45",
"to_shmem",
"to_shmem_derive",
@ -5924,6 +5926,12 @@ version = "0.16.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "222a222a5bfe1bba4a77b45ec488a741b3cb8872e5e499451fd7d0129c9c7c3d"
[[package]]
name = "thin-vec"
version = "0.2.12"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "aac81b6fd6beb5884b0cf3321b8117e6e5d47ecb6fc89f414cfdcca8b2fe2dd8"
[[package]]
name = "thiserror"
version = "1.0.50"
@ -6060,6 +6068,7 @@ dependencies = [
"smallbitvec",
"smallvec",
"string_cache",
"thin-vec",
]
[[package]]