forked from vercel/next.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
104 lines (96 loc) · 2.94 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
[package]
name = "next-dev"
version = "0.1.0"
description = "TBD"
license = "MPL-2.0"
edition = "2021"
autobenches = false
[[bin]]
name = "next-dev"
path = "src/main.rs"
bench = false
[lib]
bench = false
[[bench]]
name = "mod"
harness = false
[features]
# By default, we enable native-tls for reqwest via downstream transitive features.
# This is for the convenience of running daily dev workflows, i.e running
# `cargo xxx` without explicitly specifying features, not that we want to
# promote this as default backend. Actual configuration is done when building next-swc,
# and also turbopack standalone when we have it.
default = ["cli", "custom_allocator", "native-tls", "serializable"]
cli = ["clap"]
serializable = []
tokio_console = [
"dep:console-subscriber",
"tokio/tracing",
"turbo-tasks/tokio_tracing",
]
profile = []
custom_allocator = ["turbopack-binding/__turbo_tasks_malloc", "turbopack-binding/__turbo_tasks_malloc_custom_allocator"]
native-tls = ["next-core/native-tls"]
rustls-tls = ["next-core/rustls-tls"]
# enable "HMR" for embedded assets
dynamic_embed_contents = [
"next-core/dynamic_embed_contents",
"turbopack-binding/__turbopack_node_dynamic_embed_contents",
"turbopack-binding/__turbopack_dev_dynamic_embed_contents",
]
[dependencies]
anyhow = { workspace = true, features = ["backtrace"] }
clap = { workspace = true, features = ["derive", "env"], optional = true }
console-subscriber = { workspace = true, optional = true }
dunce = { workspace = true }
futures = { workspace = true }
indexmap = { workspace = true }
mime = { workspace = true }
next-core = { workspace = true }
once_cell = { workspace = true }
owo-colors = { workspace = true }
serde = { workspace = true }
tokio = { workspace = true, features = ["full"] }
turbopack-binding = { workspace = true, features = [
"__turbo_tasks_memory",
"__turbo_tasks_env",
"__turbo_tasks_fs",
"__turbopack",
"__turbopack_core",
"__turbopack_dev",
"__turbopack_env",
"__turbopack_cli_utils",
"__turbopack_node",
"__turbopack_dev_server",
]}
turbo-tasks = { workspace = true }
tracing = { workspace = true }
tracing-subscriber = { workspace = true, features = ["env-filter", "json"] }
webbrowser = { workspace = true }
[dev-dependencies]
chromiumoxide = { workspace = true, features = [
"tokio-runtime",
], default-features = false }
criterion = { workspace = true, features = ["async_tokio"] }
once_cell = { workspace = true }
parking_lot = { workspace = true }
portpicker = "0.1.1"
rand = { workspace = true }
regex = { workspace = true }
serde_json = { workspace = true }
tempfile = { workspace = true }
tungstenite = { workspace = true }
turbopack-binding = { workspace = true, features = [
"__turbopack_bench",
]}
url = { workspace = true }
[target.'cfg(unix)'.dev-dependencies]
nix = "0.26.1"
[build-dependencies]
turbopack-binding = { workspace = true, features = [
"__turbo_tasks_build"
]}
vergen = { version = "7.3.2", default-features = false, features = [
"cargo",
"build",
] }