mirror of
https://github.com/localsend/localsend.git
synced 2026-08-07 07:14:52 +00:00
refactor: extract cert generation to core/
This commit is contained in:
@@ -18,6 +18,7 @@ hyper-util = { version = "0.1.19", features = ["server"], optional = true }
|
||||
lru = "0.16.3"
|
||||
pem = { version = "3.0.6", optional = true }
|
||||
percent-encoding = { version = "2.3", optional = true }
|
||||
rcgen = { version = "0.14", default-features = false, features = ["crypto", "pem", "ring"], optional = true }
|
||||
reqwest = { version = "0.13.1", features = ["charset", "http2", "system-proxy", "json", "rustls-no-provider", "stream", "webpki-roots"], default-features = false, optional = true }
|
||||
rand = "0.9.1"
|
||||
rsa = { version = "0.9.8", optional = true }
|
||||
@@ -39,14 +40,19 @@ uuid = { version = "1.20.0", features = ["serde", "v4"] }
|
||||
webrtc = { version = "0.14.0", optional = true }
|
||||
x509-parser = { version = "0.18.0", features = ["verify"], optional = true }
|
||||
|
||||
[dev-dependencies]
|
||||
rcgen = "0.13.2"
|
||||
|
||||
[features]
|
||||
default = []
|
||||
crypto = ["ed25519-dalek", "rsa", "sha2", "tokio-util"]
|
||||
crypto = ["ed25519-dalek", "rcgen", "rsa", "sha2", "tokio-util"]
|
||||
http = ["crypto", "form_urlencoded", "http-body-util", "hyper", "hyper-util", "pem", "percent-encoding", "reqwest", "rustls", "socket2", "tokio-rustls", "tokio-util", "x509-parser"]
|
||||
multicast = ["if-addrs", "socket2", "tokio-util"]
|
||||
webrtc-signaling = ["tokio-tungstenite"]
|
||||
webrtc = ["crypto", "flate2", "dep:webrtc", "webrtc-signaling", "x509-parser"]
|
||||
full = ["crypto", "http", "multicast", "webrtc"]
|
||||
|
||||
# RSA key generation is bignum-heavy and takes ~10x longer unoptimized;
|
||||
# keep the crypto crates optimized in dev so tests stay fast.
|
||||
[profile.dev.package.rsa]
|
||||
opt-level = 2
|
||||
|
||||
[profile.dev.package.num-bigint-dig]
|
||||
opt-level = 2
|
||||
|
||||
Reference in New Issue
Block a user