2022-12-04 10:32:10 +11:00
|
|
|
[package]
|
|
|
|
name = "librashader-capi"
|
|
|
|
edition = "2021"
|
|
|
|
|
|
|
|
license = "MPL-2.0 OR GPL-3.0-only"
|
2024-09-21 15:55:42 +10:00
|
|
|
version = "0.4.5"
|
2022-12-04 10:32:10 +11:00
|
|
|
authors = ["Ronny Chan <ronny@ronnychan.ca>"]
|
|
|
|
repository = "https://github.com/SnowflakePowered/librashader"
|
|
|
|
readme = "../README.md"
|
|
|
|
categories = ["emulators", "compilers", "graphics"]
|
|
|
|
keywords = ["shader", "retroarch", "SPIR-V"]
|
|
|
|
description = "RetroArch shaders for all."
|
|
|
|
|
|
|
|
[lib]
|
2022-12-06 09:30:48 +11:00
|
|
|
crate-type = [ "cdylib", "staticlib" ]
|
2022-12-04 10:32:10 +11:00
|
|
|
|
|
|
|
[features]
|
2023-02-16 17:09:43 +11:00
|
|
|
default = ["runtime-all" ]
|
2024-03-08 11:37:39 +11:00
|
|
|
runtime-all = ["runtime-opengl", "runtime-d3d9", "runtime-d3d11", "runtime-d3d12", "runtime-vulkan", "runtime-metal"]
|
2024-08-11 14:42:50 +10:00
|
|
|
runtime-opengl = ["glow", "librashader/runtime-gl"]
|
2023-02-08 10:50:26 +11:00
|
|
|
runtime-d3d11 = ["windows", "librashader/runtime-d3d11", "windows/Win32_Graphics_Direct3D11"]
|
|
|
|
runtime-d3d12 = ["windows", "librashader/runtime-d3d12", "windows/Win32_Graphics_Direct3D12"]
|
2024-03-08 11:37:39 +11:00
|
|
|
runtime-d3d9 = ["windows", "librashader/runtime-d3d9", "windows/Win32_Graphics_Direct3D9"]
|
|
|
|
|
2023-02-08 10:50:26 +11:00
|
|
|
runtime-vulkan = ["ash", "librashader/runtime-vk"]
|
2024-02-13 19:03:45 +11:00
|
|
|
runtime-metal = ["__cbindgen_internal_objc", "librashader/runtime-metal"]
|
|
|
|
|
2024-08-09 14:55:58 +10:00
|
|
|
reflect-unstable = []
|
2024-09-15 15:55:14 +10:00
|
|
|
stable = ["librashader/stable"]
|
2024-09-15 16:10:06 +10:00
|
|
|
docsrs = []
|
2024-08-09 14:55:58 +10:00
|
|
|
|
2024-02-13 19:03:45 +11:00
|
|
|
__cbindgen_internal = ["runtime-all"]
|
|
|
|
|
|
|
|
# make runtime-metal depend on this, so its automatically implied.
|
|
|
|
# this will make cbindgen generate __OBJC__ ifdefs for metal functions.
|
2024-06-22 10:50:35 +10:00
|
|
|
__cbindgen_internal_objc = ["objc2-metal", "objc2"]
|
2022-12-04 10:32:10 +11:00
|
|
|
|
|
|
|
[dependencies]
|
|
|
|
thiserror = "1.0.37"
|
|
|
|
paste = "1.0.9"
|
2024-06-22 10:55:21 +10:00
|
|
|
rustc-hash = "2.0.0"
|
2024-08-11 14:42:50 +10:00
|
|
|
|
2024-02-16 17:12:48 +11:00
|
|
|
sptr = "0.3.2"
|
2022-12-04 10:32:10 +11:00
|
|
|
|
2024-08-11 14:42:50 +10:00
|
|
|
glow = { workspace = true, optional = true }
|
2024-08-11 14:42:50 +10:00
|
|
|
ash = { workspace = true, optional = true }
|
|
|
|
|
2024-02-14 19:04:40 +11:00
|
|
|
[dependencies.librashader]
|
|
|
|
path = "../librashader"
|
2024-09-21 15:55:42 +10:00
|
|
|
version = "0.4.5"
|
2024-02-14 19:04:40 +11:00
|
|
|
default-features = false
|
2024-02-21 10:08:00 +11:00
|
|
|
features = ["reflect", "presets", "preprocess"]
|
2024-02-14 19:04:40 +11:00
|
|
|
|
2023-01-21 17:54:06 +11:00
|
|
|
[target.'cfg(windows)'.dependencies.windows]
|
2024-02-27 10:49:59 +11:00
|
|
|
workspace = true
|
2022-12-05 14:48:57 +11:00
|
|
|
optional = true
|
|
|
|
|
2024-02-13 15:44:37 +11:00
|
|
|
[target.'cfg(target_vendor="apple")'.dependencies]
|
2024-06-22 10:50:35 +10:00
|
|
|
objc2-metal = { version = "0.2.0" , features = [ "all" ], optional = true }
|
2024-02-13 15:44:37 +11:00
|
|
|
objc2 = { version = "0.5.0", features = ["apple"] , optional = true }
|
|
|
|
|
2023-01-15 11:05:15 +11:00
|
|
|
[package.metadata.docs.rs]
|
2024-02-15 10:10:52 +11:00
|
|
|
targets = [ "x86_64-pc-windows-msvc",
|
|
|
|
"x86_64-unknown-linux-gnu",
|
|
|
|
"x86_64-apple-darwin",
|
|
|
|
"aarch64-apple-darwin",
|
|
|
|
"aarch64-apple-ios",
|
|
|
|
"i686-pc-windows-msvc",
|
|
|
|
"i686-unknown-linux-gnu", ]
|
2024-09-15 16:10:06 +10:00
|
|
|
features = ["docsrs", "librashader/docsrs"]
|