open-gpui-util 0.2.0

General-purpose utility helpers used by Open GPUI.
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
name = "open-gpui-util"
version = "0.2.0"
authors = ["Mingzhen Zhuang <superfrankie621@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "General-purpose utility helpers used by Open GPUI."
homepage = "https://github.com/Latias94/open-gpui"
documentation = "https://docs.rs/open-gpui"
readme = "README.md"
license = "Apache-2.0"
repository = "https://github.com/Latias94/open-gpui"
resolver = "2"

[features]
test-support = [
    "rand",
    "open_gpui_util_macros",
]

[lib]
name = "open_gpui_util"
path = "src/util.rs"
doctest = true

[dependencies.anyhow]
version = "1.0.103"

[dependencies.async_zip]
version = "0.0.18"
features = [
    "deflate",
    "deflate64",
]

[dependencies.dunce]
version = "1.0"

[dependencies.futures]
version = "0.3.32"

[dependencies.futures-lite]
version = "2.6.1"

[dependencies.globset]
version = "0.4"

[dependencies.itertools]
version = "0.14.0"

[dependencies.log]
version = "0.4.16"
features = [
    "kv_unstable_serde",
    "serde",
]

[dependencies.open_gpui_collections]
version = "0.2.0"
package = "open-gpui-collections"

[dependencies.open_gpui_core_util]
version = "0.2.0"
package = "open-gpui-core-util"

[dependencies.open_gpui_util_macros]
version = "0.2.0"
optional = true
package = "open-gpui-util-macros"

[dependencies.percent-encoding]
version = "2.3.2"

[dependencies.rand]
version = "0.9"
optional = true

[dependencies.regex]
version = "1.5"

[dependencies.rust-embed]
version = "8.11"
features = ["include-exclude"]

[dependencies.schemars]
version = "1.0"
features = ["indexmap2"]

[dependencies.serde]
version = "1.0.221"
features = [
    "derive",
    "rc",
]

[dependencies.serde_json]
version = "1.0.144"
features = [
    "preserve_order",
    "raw_value",
]

[dependencies.serde_json_lenient]
version = "0.2"
features = [
    "preserve_order",
    "raw_value",
]

[dependencies.shlex]
version = "1.3.0"

[dependencies.take-until]
version = "0.2.0"

[dependencies.tempfile]
version = "3.20.0"

[dependencies.unicase]
version = "2.6"

[dependencies.url]
version = "2.2"

[dev-dependencies.open_gpui_util_macros]
version = "0.2.0"
package = "open-gpui-util-macros"

[dev-dependencies.pretty_assertions]
version = "1.3.0"
features = ["unstable"]

[dev-dependencies.rand]
version = "0.9"

[target.'cfg(not(target_family = "wasm"))'.dependencies.async-fs]
version = "2.1"

[target.'cfg(not(target_family = "wasm"))'.dependencies.dirs]
version = "6.0"

[target.'cfg(not(target_family = "wasm"))'.dependencies.smol]
version = "2.0"

[target.'cfg(not(target_family = "wasm"))'.dependencies.walkdir]
version = "2.5"

[target.'cfg(not(target_family = "wasm"))'.dependencies.which]
version = "6.0.0"

[target.'cfg(target_os = "macos")'.dependencies.mach2]
version = "0.5"

[target."cfg(unix)".dependencies.command-fds]
version = "0.3.1"

[target."cfg(unix)".dependencies.libc]
version = "0.2"

[target."cfg(unix)".dependencies.nix]
version = "0.29"
features = ["user"]

[target."cfg(windows)".dependencies.tendril]
version = "0.5"

[target."cfg(windows)".dependencies.windows]
version = "0.62"
features = [
    "Foundation_Numerics",
    "Globalization_DateTimeFormatting",
    "Storage_Search",
    "Storage_Streams",
    "System_Threading",
    "UI_ViewManagement",
    "Wdk_System_SystemServices",
    "Win32_Foundation",
    "Win32_Globalization",
    "Win32_Graphics_Direct3D",
    "Win32_Graphics_Direct3D11",
    "Win32_Graphics_Direct3D_Fxc",
    "Win32_Graphics_DirectComposition",
    "Win32_Graphics_DirectWrite",
    "Win32_Graphics_DirectManipulation",
    "Win32_Graphics_Dwm",
    "Win32_Graphics_Dxgi",
    "Win32_Graphics_Dxgi_Common",
    "Win32_Graphics_Gdi",
    "Win32_Graphics_Imaging",
    "Win32_Graphics_Hlsl",
    "Win32_Networking_WinSock",
    "Win32_Security",
    "Win32_Security_Credentials",
    "Win32_Security_Cryptography",
    "Win32_Storage_FileSystem",
    "Win32_System_Com",
    "Win32_System_Com_StructuredStorage",
    "Win32_System_Console",
    "Win32_System_Diagnostics_Debug",
    "Win32_System_DataExchange",
    "Win32_System_IO",
    "Win32_System_JobObjects",
    "Win32_System_LibraryLoader",
    "Win32_System_Memory",
    "Win32_System_Ole",
    "Win32_System_Performance",
    "Win32_System_Pipes",
    "Win32_System_Power",
    "Win32_System_RestartManager",
    "Win32_System_SystemInformation",
    "Win32_System_SystemServices",
    "Win32_System_Threading",
    "Win32_System_Variant",
    "Win32_System_WinRT",
    "Win32_UI_Controls",
    "Win32_UI_HiDpi",
    "Win32_UI_Input_Ime",
    "Win32_UI_Input_KeyboardAndMouse",
    "Win32_UI_Input_Pointer",
    "Win32_UI_Shell",
    "Win32_UI_Shell_Common",
    "Win32_UI_Shell_PropertiesSystem",
    "Win32_UI_WindowsAndMessaging",
    "Win32_Media",
]

[lints.clippy]
dbg_macro = "deny"
todo = "deny"
unwrap_used = "warn"

[lints.rust]
unsafe_op_in_unsafe_fn = "warn"

[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = [
    "cfg(rust_analyzer)",
    "cfg(nightly_coverage)",
    'cfg(feature, values("cargo-clippy"))',
]