makepad/old/platform/Cargo.toml
2026-03-03 09:18:19 +01:00

130 lines
4.4 KiB
TOML

[package]
name = "makepad-platform"
version = "1.0.0"
authors = ["Makepad <info@makepad.nl>"]
edition = "2021"
description = "Makepad platform layer"
license = "MIT OR Apache-2.0"
homepage = "https://github.com/makepad/makepad/"
repository = "https://github.com/makepad/makepad/"
metadata.makepad-auto-version = "ue5pTU0e_KaMiNqLQpo2CaD-WeQ="
[dependencies]
makepad-futures = { path = "../libs/futures", version = "1.0.0" }
makepad-shader-compiler = { path = "./shader_compiler", version = "1.0.0" }
makepad-network = { path = "../../platform/network", version="1.0.0" }
makepad-error-log = { path="../libs/error_log", version="1.0.0"}
#makepad-script = { path="../libs/script", version="1.0.0"}
smallvec = "1.11.2"
bitflags = "2"
#naga = {version = "27", features = ["wgsl-in","msl-out"]}
#wgpu = {version = "27", default-features = false, features = ["metal"]}
[target.wasm32-unknown-unknown.dependencies]
makepad-wasm-bridge = { path = "../libs/wasm_bridge", version = "1.0.0" }
[target.aarch64-apple-darwin.dependencies]
makepad-objc-sys = { path = "../libs/objc-sys", version = "1.0.0" }
[target.x86_64-apple-darwin.dependencies]
makepad-objc-sys = { path = "../libs/objc-sys", version = "1.0.0" }
[target.x86_64-apple-ios.dependencies]
makepad-objc-sys = { path = "../libs/objc-sys", version = "1.0.0" }
[target.aarch64-apple-ios-sim.dependencies]
makepad-objc-sys = { path = "../libs/objc-sys", version = "1.0.0" }
[target.aarch64-apple-ios.dependencies]
makepad-objc-sys = { path = "../libs/objc-sys", version = "1.0.0" }
[target.x86_64-apple-tvos.dependencies]
makepad-objc-sys = { path = "../libs/objc-sys", version = "1.0.0" }
[target.aarch64-apple-tvos-sim.dependencies]
makepad-objc-sys = { path = "../libs/objc-sys", version = "1.0.0" }
[target.aarch64-apple-tvos.dependencies]
makepad-objc-sys = { path = "../libs/objc-sys", version = "1.0.0" }
[target.aarch64-unknown-linux-gnu.dependencies]
wayland-client = "0.31.11"
wayland-protocols = { version = "0.32.9", features = ["client", "unstable", "staging"] }
wayland-egl = "0.32.8"
[target.x86_64-unknown-linux-gnu.dependencies]
wayland-client = "0.31.11"
wayland-protocols = { version = "0.32.9", features = ["client", "unstable", "staging"] }
wayland-egl = "0.32.8"
[target.'cfg(target_os = "android")'.dependencies]
## Note: we must not use local 'path' dependencies on `makepad-jni-sys` or `makepad-android-state`
## in order to guarantee that only one instance of each crate exists in the app binary.
makepad-jni-sys = {version = "0.4.0"}
makepad-android-state = {version = "0.1.0"}
[target.'cfg(target_env = "ohos")'.dependencies]
hilog-sys = "0.1.1"
napi-derive-ohos = "0.0.9"
napi-ohos = "0.1.3"
ohos-sys = { version = "0.2.1", features = ["xcomponent"] }
[target.'cfg(windows)'.dependencies.makepad-futures-legacy]
path = "../libs/futures_legacy"
version = "1.0.0"
[target.'cfg(windows)'.dependencies.windows-core]
path = "../libs/windows/windows-core"
version = "0.62.2"
[target.'cfg(windows)'.dependencies.windows]
path = "../libs/windows/windows-rs"
version = "0.62.2"
features = [
"Win32_Foundation",
"Win32_UI_WindowsAndMessaging",
"Win32_System_LibraryLoader",
"Win32_System_Performance",
"Win32_Graphics_Gdi",
"Win32_Graphics_Dwm",
"Win32_UI_HiDpi",
"Win32_System_Memory",
"Win32_System_SystemServices",
"Win32_System_WindowsProgramming",
"Win32_System_DataExchange",
"Win32_UI_Controls",
"Win32_UI_Input_KeyboardAndMouse",
"Win32_Graphics_Direct3D11",
"Win32_Graphics_Direct3D",
"Win32_Graphics_Dxgi",
"Win32_Graphics_Dxgi_Common",
"Win32_Graphics_Direct3D_Fxc",
"Win32_Media_Audio",
"Win32_Media_Multimedia",
"Win32_Media_KernelStreaming",
"Win32_System_Com",
"Win32_System_Com_StructuredStorage",
"Win32_UI_Shell_PropertiesSystem",
"Win32_System_Ole",
"Win32_Devices_FunctionDiscovery",
"Win32_System_Threading",
"Win32_Security",
"Win32_Media_MediaFoundation",
"Win32_System_Variant",
"Win32_System_SystemServices",
"Win32_System_WinRT",
"Win32_UI_Input_Ime",
"Win32_Globalization",
"Devices_Enumeration",
"Devices_Midi",
"Foundation_Collections",
"Storage",
"Web_Http",
"Web_Http_Headers",
"Storage_Streams",
]
## The vast majority of the Rust ecosystem is currently on
## `windows-targets` v0.52.*, so we use that version to avoid duplicates.
[target.'cfg(windows)'.dependencies.windows-targets]
version = "0.52"