[package]
edition = "2024"
name = "open-gpui-platform"
version = "0.1.0"
authors = ["Mingzhen Zhuang <superfrankie621@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Cross-platform backend selector for 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]
default = []
font-kit = ["open_gpui_macos/font-kit"]
runtime_shaders = ["open_gpui_macos/runtime_shaders"]
screen-capture = [
"open_gpui/screen-capture",
"open_gpui_macos/screen-capture",
"open_gpui_windows/screen-capture",
"open_gpui_linux/screen-capture",
]
test-support = [
"open_gpui/test-support",
"open_gpui_macos/test-support",
]
wayland = ["open_gpui_linux/wayland"]
x11 = ["open_gpui_linux/x11"]
[lib]
name = "open_gpui_platform"
path = "src/gpui_platform.rs"
[dependencies.open_gpui]
version = "0.1.0"
default-features = false
package = "open-gpui"
[target.'cfg(any(target_os = "linux", target_os = "freebsd"))'.dependencies.open_gpui_linux]
version = "0.1.0"
default-features = false
package = "open-gpui-linux"
[target.'cfg(target_family = "wasm")'.dependencies.console_error_panic_hook]
version = "0.1.7"
[target.'cfg(target_family = "wasm")'.dependencies.open_gpui_web]
version = "0.1.0"
package = "open-gpui-web"
[target.'cfg(target_os = "macos")'.dependencies.open_gpui_macos]
version = "0.1.0"
default-features = false
package = "open-gpui-macos"
[target.'cfg(target_os = "windows")'.dependencies.open_gpui]
version = "0.1.0"
features = ["windows-manifest"]
default-features = false
package = "open-gpui"
[target.'cfg(target_os = "windows")'.dependencies.open_gpui_windows]
version = "0.1.0"
default-features = false
package = "open-gpui-windows"
[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)"]