Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/windirstat/ntfs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Finck <colin@reactos.org>2021-08-07 11:19:49 +0300
committerColin Finck <colin@reactos.org>2021-08-07 11:19:49 +0300
commit5ab4c082936ebc6163e7a5995840244964fe596d (patch)
tree7ac1323ad86869ec9d8660cb95a043344686aadf /Cargo.toml
parent6210c625de3f617b0553ae8176f2483133517161 (diff)
Use `ArrayVec` over heap-allocated `Vec` for some structured values.
This greatly reduces the number of heap allocations when traversing an index.
Diffstat (limited to 'Cargo.toml')
-rw-r--r--Cargo.toml3
1 files changed, 2 insertions, 1 deletions
diff --git a/Cargo.toml b/Cargo.toml
index 90cfc1a..047e301 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -7,6 +7,7 @@ edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
+arrayvec = { version = "0.7.1", default-features = false }
binread = { version = "2.1.1", features = ["const_generics"], default-features = false }
byteorder = { version = "1.4.3", default-features = false }
bitflags = "1.2.1"
@@ -17,4 +18,4 @@ memoffset = "0.6.4"
[features]
default = ["std"]
-std = ["binread/std", "byteorder/std"]
+std = ["arrayvec/std", "binread/std", "byteorder/std"]