-
Notifications
You must be signed in to change notification settings - Fork 27
/
Cargo.toml
71 lines (61 loc) · 1.68 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
[package]
name = "eszip"
version = "0.79.1"
authors = ["the Deno authors"]
edition = "2021"
repository = "https://github.com/denoland/eszip"
description = "A utility that can download JavaScript and TypeScript module graphs and store them locally in a special zip file"
license = "MIT"
[workspace]
members = ["lib"]
[workspace.dependencies]
deno_graph = { version = "0.83.0", default-features = false }
deno_ast = { version = "0.42.0", features = ["transpiling"] }
import_map = "0.20.0"
serde = "1"
[profile.release]
codegen-units = 1
lto = true
opt-level = "z"
[lib]
name = "eszip"
path = "src/lib.rs"
[[example]]
name = "eszip_builder"
path = "src/examples/builder.rs"
[[example]]
name = "eszip_viewer"
path = "src/examples/viewer.rs"
[[bench]]
name = "source_hash_function"
harness = false
[features]
xxhash3 = ["xxhash-rust/xxh3"]
sha256 = ["dep:sha2"]
# backwards compatibility. Disabling sha256 will break compatibility with eszips older than v2.2
default = ["sha256"]
[dependencies]
anyhow = "1"
async-trait = "0.1.68"
base64 = "0.21.0"
deno_ast = { workspace = true }
deno_graph = { workspace = true }
deno_npm = "0.25.0"
deno_semver = "0.5.11"
futures = "0.3.26"
hashlink = "0.8.2"
indexmap = "2"
serde = { workspace = true }
serde_json = "1"
sha2 = {version = "0.10.1", optional = true}
thiserror = "1.0.30"
url = "2.2.2"
xxhash-rust = { version = "0.8", optional = true }
[dev-dependencies]
import_map = { workspace = true }
pretty_assertions = "1"
tokio = { version = "1", features = ["macros", "rt"] }
reqwest = { version = "0.11.23", features = ["rustls-tls"] }
jsonc-parser = { version = "0.23.0", features = ["serde"] }
insta = "1.34.0"
criterion = { version = "0.5", features = ["async_tokio"] }