# 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 = "boltz-gpui-platform"
version = "0.1.0"
build = false
publish = true
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Platform facade selecting the right GPUI backend for the target OS."
readme = false
license = "Apache-2.0"
repository = "https://github.com/boltz-one/rust-dex"
resolver = "2"

[features]
default = []
runtime_shaders = ["gpui_macos/runtime_shaders"]
test-support = [
    "gpui/test-support",
    "gpui_macos/test-support",
]
wayland = ["gpui_linux/wayland"]
x11 = ["gpui_linux/x11"]

[lib]
name = "boltz_gpui_platform"
path = "src/gpui_platform.rs"

[dependencies.gpui]
version = "0.2.2"
default-features = false
package = "boltz-gpui"

[target.'cfg(any(target_os = "linux", target_os = "freebsd"))'.dependencies.gpui_linux]
version = "0.1.0"
default-features = false
package = "boltz-gpui-linux"

[target.'cfg(target_os = "macos")'.dependencies.gpui_macos]
version = "0.1.0"
default-features = false
package = "boltz-gpui-macos"

[target.'cfg(target_os = "windows")'.dependencies.gpui]
version = "0.2.2"
features = ["windows-manifest"]
default-features = false
package = "boltz-gpui"

[target.'cfg(target_os = "windows")'.dependencies.gpui_windows]
version = "0.1.0"
default-features = false
package = "boltz-gpui-windows"

[lints.clippy]
dbg_macro = "deny"
declare_interior_mutable_const = "deny"
disallowed_methods = "deny"
large_enum_variant = "allow"
let_underscore_future = "allow"
nonminimal_bool = "allow"
redundant_clone = "deny"
single_range_in_vec_init = "allow"
todo = "deny"
too_many_arguments = "allow"
type_complexity = "allow"

[lints.clippy.style]
level = "allow"
priority = -1

[lints.rust.unexpected_cfgs]
level = "allow"
priority = 0
