@@ -17,13 +17,15 @@ doctest = false
17
17
18
18
# # Provide a fixed-size allocation-free LRU cache for packs. It's useful if caching is desired while keeping the memory footprint
19
19
# # for the LRU-cache itself low.
20
- pack-cache-lru-static = [" uluru" ]
20
+ pack-cache-lru-static = [" dep: uluru" ]
21
21
# # Provide a hash-map based LRU cache whose eviction is based a memory cap calculated from object data.
22
- pack-cache-lru-dynamic = [" clru" ]
22
+ pack-cache-lru-dynamic = [" dep: clru" ]
23
23
# # If set, select algorithms may additionally use a full-object cache which is queried before the pack itself.
24
- object-cache-dynamic = [" clru" ]
24
+ object-cache-dynamic = [" dep: clru" ]
25
25
# # Data structures implement `serde::Serialize` and `serde::Deserialize`.
26
- serde1 = [" serde" , " git-object/serde1" ]
26
+ serde1 = [" dep:serde" , " git-object/serde1" ]
27
+ # # Make it possible to compile to the `wasm32-unknown-unknown` target.
28
+ wasm = [" git-diff/wasm" ]
27
29
28
30
[dependencies ]
29
31
git-features = { version = " ^0.26.4" , path = " ../git-features" , features = [" crc32" , " rustsha1" , " progress" , " zlib" ] }
@@ -33,20 +35,24 @@ git-chunk = { version = "^0.4.1", path = "../git-chunk" }
33
35
git-object = { version = " ^0.26.1" , path = " ../git-object" }
34
36
git-traverse = { version = " ^0.22.1" , path = " ../git-traverse" }
35
37
git-diff = { version = " ^0.26.1" , path = " ../git-diff" }
36
- git-tempfile = { version = " ^3.0.0" , path = " ../git-tempfile" }
37
38
git-hashtable = { version = " ^0.1.1" , path = " ../git-hashtable" }
38
39
39
- smallvec = " 1.3.0"
40
40
memmap2 = " 0.5.0"
41
- serde = { version = " 1.0.114 " , optional = true , default-features = false , features = [ " derive " ] }
41
+ smallvec = " 1.3.0 "
42
42
bytesize = " 1.0.1"
43
43
parking_lot = { version = " 0.12.0" , default-features = false }
44
44
thiserror = " 1.0.26"
45
45
uluru = { version = " 3.0.0" , optional = true }
46
46
clru = { version = " 0.6.1" , optional = true }
47
- dashmap = " 5.1.0"
48
47
48
+ serde = { version = " 1.0.114" , optional = true , default-features = false , features = [" derive" ] }
49
+ # # If enabled, `cargo doc` will see feature documentation from this manifest.
49
50
document-features = { version = " 0.2.0" , optional = true }
51
+ dashmap = " 5.1.0"
52
+
53
+
54
+ [target .'cfg(not(target_arch = "wasm32"))' .dependencies ]
55
+ git-tempfile = { version = " ^3.0.0" , path = " ../git-tempfile" }
50
56
51
57
[dev-dependencies ]
52
58
git-testtools = { path = " ../tests/tools" }
0 commit comments