9e7bf34b21
Implement / fixes WEB-306. We can't rely on default tls backend for reqwest and hope to work with every target platform we support, due to several constraints. Some target cannot use -sys (openssl-sys), and some can't build rustls due to trasnsitive dep support issue. PR creates explicit opt-in features for those and let upstream application can specify what they need. `next-dev` currently sets `native-tls` as default for the general dev workflow conveniences, but that doesn't mean we promote it as default feature set - next-swc, or other like standalone turbopack will configure features by themselves when build binaries for their own.
39 lines
1.1 KiB
TOML
39 lines
1.1 KiB
TOML
[package]
|
|
name = "next-core"
|
|
version = "0.1.0"
|
|
description = "TBD"
|
|
license = "MPL-2.0"
|
|
edition = "2021"
|
|
|
|
[lib]
|
|
bench = false
|
|
|
|
[dependencies]
|
|
anyhow = "1.0.47"
|
|
auto-hash-map = { path = "../auto-hash-map" }
|
|
indexmap = { workspace = true, features = ["serde"] }
|
|
indoc = "1.0"
|
|
mime = "0.3.16"
|
|
once_cell = "1.13.0"
|
|
qstring = "0.7.2"
|
|
serde = "1.0.136"
|
|
serde_json = "1.0.85"
|
|
turbo-tasks = { path = "../turbo-tasks" }
|
|
turbo-tasks-env = { path = "../turbo-tasks-env" }
|
|
turbo-tasks-fetch = { path = "../turbo-tasks-fetch" }
|
|
turbo-tasks-fs = { path = "../turbo-tasks-fs" }
|
|
turbo-tasks-hash = { path = "../turbo-tasks-hash" }
|
|
turbopack = { path = "../turbopack" }
|
|
turbopack-core = { path = "../turbopack-core" }
|
|
turbopack-dev-server = { path = "../turbopack-dev-server" }
|
|
turbopack-ecmascript = { path = "../turbopack-ecmascript" }
|
|
turbopack-env = { path = "../turbopack-env" }
|
|
turbopack-node = { path = "../turbopack-node" }
|
|
|
|
[build-dependencies]
|
|
turbo-tasks-build = { path = "../turbo-tasks-build" }
|
|
|
|
[features]
|
|
next-font-local = []
|
|
native-tls = ["turbo-tasks-fetch/native-tls"]
|
|
rustls-tls = ["turbo-tasks-fetch/rustls-tls"]
|