raven/base/maturin/0001-disable-unavailable-features-and-drop-unused-test-de.patch
2024-02-21 13:47:54 +06:00

90 lines
3.1 KiB
Diff

From 7231179ba5534e64eceed954ed17ec5340acc506 Mon Sep 17 00:00:00 2001
From: Fabio Valentini <decathorpe@gmail.com>
Date: Sat, 24 Jun 2023 16:55:15 +0200
Subject: [PATCH 1/4] disable unavailable features and drop unused test
dependencies
---
Cargo.toml | 45 ++-------------------------------------------
1 file changed, 2 insertions(+), 43 deletions(-)
diff --git a/Cargo.toml b/Cargo.toml
index d6dc156..7258ab7 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -63,11 +63,6 @@ time = "0.3.17"
# cli
clap = { version = "4.0.0", features = ["derive", "env", "wrap_help"] }
-clap_complete_command = { version = "0.5.1", optional = true }
-
-# cross compile
-cargo-zigbuild = { version = "0.16.10", default-features = false, optional = true }
-cargo-xwin = { version = "0.14.3", default-features = false, optional = true }
# log
tracing = "0.1.36"
@@ -78,57 +73,21 @@ dialoguer = { version = "0.10.2", default-features = false, optional = true }
console = { version = "0.15.4", optional = true }
minijinja = { version = "0.34.0", optional = true }
-# upload
-bytesize = { version = "1.0.1", optional = true }
-configparser = { version = "3.0.0", optional = true }
-dirs = { version = "5.0.0", optional = true }
-multipart = { version = "0.18.0", features = ["client"], default-features = false, optional = true }
-ureq = { version = "2.6.1", features = ["gzip", "json", "socks-proxy"], default-features = false, optional = true }
-native-tls = { version = "0.2.8", optional = true }
-rustls = { version = "0.20.8", optional = true }
-rustls-pemfile = { version = "1.0.1", optional = true }
-keyring = { version = "2.0.0", default-features = false, features = ["linux-no-secret-service"], optional = true }
-wild = { version = "2.1.0", optional = true }
-url = { version = "2.3.1", optional = true }
-
[dev-dependencies]
indoc = "2.0.0"
pretty_assertions = "1.3.0"
-rustversion = "1.0.9"
time = { version = "0.3.17", features = ["macros"] }
-trycmd = "0.14.11"
-which = "4.3.0"
[features]
-default = ["full", "rustls"]
+default = ["full"]
-full = ["cli-completion", "cross-compile", "log", "scaffolding", "upload"]
+full = ["log", "scaffolding"]
log = ["tracing-subscriber"]
-cli-completion = ["dep:clap_complete_command"]
-
-upload = ["ureq", "multipart", "configparser", "bytesize", "dialoguer/password", "url", "wild", "dep:dirs"]
-# keyring doesn't support *BSD so it's not enabled in `full` by default
-password-storage = ["upload", "keyring"]
-
-rustls = ["dep:rustls", "ureq?/tls", "cargo-xwin?/rustls-tls", "dep:rustls-pemfile"]
-native-tls = ["dep:native-tls", "ureq?/native-tls", "cargo-xwin?/native-tls", "dep:rustls-pemfile"]
-
-# cross compile using zig or xwin
-cross-compile = ["zig", "xwin"]
-zig = ["cargo-zigbuild"]
-xwin = ["cargo-xwin"]
-
# project scaffolding
scaffolding = ["dialoguer", "console", "minijinja"]
-# Internal feature to speed up the tests significantly
-faster-tests = []
-
-# Deprecated features, keep it now for compatibility
-human-panic = []
-
# Without this, compressing the .gz archive becomes notably slow for debug builds
[profile.dev.package.miniz_oxide]
opt-level = 3
--
2.41.0