librashader/librashader-capi/Cargo.toml

66 lines
2.2 KiB
TOML
Raw Normal View History

2022-12-03 18:32:10 -05:00
[package]
name = "librashader-capi"
edition = "2021"
license = "MPL-2.0 OR GPL-3.0-only"
2024-07-29 00:44:51 -04:00
version = "0.2.8"
2022-12-03 18:32:10 -05: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]
crate-type = [ "cdylib", "staticlib" ]
2022-12-03 18:32:10 -05:00
[features]
default = ["runtime-all" ]
2024-03-07 19:37:39 -05:00
runtime-all = ["runtime-opengl", "runtime-d3d9", "runtime-d3d11", "runtime-d3d12", "runtime-vulkan", "runtime-metal"]
runtime-opengl = ["gl", "librashader/runtime-gl"]
runtime-d3d11 = ["windows", "librashader/runtime-d3d11", "windows/Win32_Graphics_Direct3D11"]
runtime-d3d12 = ["windows", "librashader/runtime-d3d12", "windows/Win32_Graphics_Direct3D12"]
2024-03-07 19:37:39 -05:00
runtime-d3d9 = ["windows", "librashader/runtime-d3d9", "windows/Win32_Graphics_Direct3D9"]
runtime-vulkan = ["ash", "librashader/runtime-vk"]
2024-02-13 03:03:45 -05:00
runtime-metal = ["__cbindgen_internal_objc", "librashader/runtime-metal"]
__cbindgen_internal = ["runtime-all"]
# make runtime-metal depend on this, so its automatically implied.
# this will make cbindgen generate __OBJC__ ifdefs for metal functions.
__cbindgen_internal_objc = ["objc2-metal", "objc2"]
2022-12-03 18:32:10 -05:00
[dependencies]
thiserror = "1.0.37"
paste = "1.0.9"
2022-12-04 22:37:03 -05:00
gl = { version = "0.14.0", optional = true }
2024-06-21 20:55:21 -04:00
rustc-hash = "2.0.0"
2024-08-01 01:23:18 -04:00
ash = { version = "0.38", optional = true }
2024-02-12 00:12:08 -05:00
spirv_cross = { package = "librashader-spirv-cross", version = "0.25.1" }
sptr = "0.3.2"
2022-12-03 18:32:10 -05:00
[dependencies.librashader]
path = "../librashader"
2024-07-29 00:44:51 -04:00
version = "0.2.8"
default-features = false
features = ["reflect", "presets", "preprocess"]
[target.'cfg(windows)'.dependencies.windows]
2024-02-26 18:49:59 -05:00
workspace = true
2022-12-04 22:48:57 -05:00
optional = true
2024-02-12 23:44:37 -05:00
[target.'cfg(target_vendor="apple")'.dependencies]
objc2-metal = { version = "0.2.0" , features = [ "all" ], optional = true }
2024-02-12 23:44:37 -05:00
objc2 = { version = "0.5.0", features = ["apple"] , optional = true }
2023-01-14 19:05:15 -05:00
[package.metadata.docs.rs]
2024-02-14 18:10:52 -05: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", ]
2023-02-16 01:11:55 -05:00
features = ["librashader/docsrs"]