mirror of
https://github.com/zed-industries/zed.git
synced 2024-11-08 07:35:01 +03:00
c31a233aad
This is calculated in `Rope` and uses the `bromberg_sl2` homomorphic hash function to determine the fingerprint of a single chunk and compose each chunk fingerprint into a single fingerprint for the entire rope that is equivalent to hashing all the rope's bytes at once.
35 lines
888 B
TOML
35 lines
888 B
TOML
[package]
|
|
name = "text"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
|
|
[lib]
|
|
path = "src/text.rs"
|
|
doctest = false
|
|
|
|
[features]
|
|
test-support = ["rand"]
|
|
|
|
[dependencies]
|
|
clock = { path = "../clock" }
|
|
collections = { path = "../collections" }
|
|
sum_tree = { path = "../sum_tree" }
|
|
anyhow = "1.0.38"
|
|
arrayvec = "0.7.1"
|
|
digest = { version = "0.9", features = ["std"] }
|
|
bromberg_sl2 = "0.6"
|
|
lazy_static = "1.4"
|
|
log = { version = "0.4.16", features = ["kv_unstable_serde"] }
|
|
parking_lot = "0.11"
|
|
postage = { version = "0.4.1", features = ["futures-traits"] }
|
|
rand = { version = "0.8.3", optional = true }
|
|
smallvec = { version = "1.6", features = ["union"] }
|
|
|
|
[dev-dependencies]
|
|
collections = { path = "../collections", features = ["test-support"] }
|
|
gpui = { path = "../gpui", features = ["test-support"] }
|
|
util = { path = "../util", features = ["test-support"] }
|
|
ctor = "0.1"
|
|
env_logger = "0.9"
|
|
rand = "0.8.3"
|