From be6e70ffde1ef213166b19330cf9418f9bad2f3b Mon Sep 17 00:00:00 2001 From: Stefan Kreutz Date: Thu, 18 May 2023 21:56:36 +0200 Subject: Use clap without wrap_help feature With the wrap_help feature, clap tries to determine the terminal width using the terminal-size crate. This involves access to the temporary directory, violating the stdio pledge on OpenBSD and thus aborting the process. This commit disables clap's wrap_help feature to keep the simple stdio pledge. Another solution could to pledge stdio and tmppath. --- Cargo.lock | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'Cargo.lock') diff --git a/Cargo.lock b/Cargo.lock index 585167a..bd8c165 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -127,7 +127,6 @@ dependencies = [ "bitflags", "clap_lex", "strsim", - "terminal_size", ] [[package]] @@ -435,16 +434,6 @@ dependencies = [ "unicode-ident", ] -[[package]] -name = "terminal_size" -version = "0.2.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8e6bf6f19e9f8ed8d4048dc22981458ebcf406d67e94cd422e5ecd73d63b3237" -dependencies = [ - "rustix", - "windows-sys", -] - [[package]] name = "termtree" version = "0.4.1" -- cgit v1.2.3