librashader/librashader/Cargo.toml
2023-02-21 21:07:17 -05:00

66 lines
2.7 KiB
TOML

[package]
name = "librashader"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
license = "MPL-2.0 OR GPL-3.0-only"
version = "0.1.3"
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."
[dependencies]
librashader-common = { path = "../librashader-common", version = "0.1.3" }
librashader-presets = { path = "../librashader-presets", version = "0.1.3" }
librashader-preprocess = { path = "../librashader-preprocess", version = "0.1.3" }
librashader-reflect = { path = "../librashader-reflect", version = "0.1.3", features = ["standalone"] }
librashader-runtime = { path = "../librashader-runtime", version = "0.1.3" }
librashader-runtime-d3d11 = { path = "../librashader-runtime-d3d11", version = "0.1.3", optional = true }
librashader-runtime-d3d12 = { path = "../librashader-runtime-d3d12", version = "0.1.3", optional = true }
librashader-runtime-gl = { path = "../librashader-runtime-gl", version = "0.1.3", optional = true }
librashader-runtime-vk = { path = "../librashader-runtime-vk", version = "0.1.3", optional = true }
librashader-cache = { path = "../librashader-cache", version = "0.1.3" }
ash = { version = "0.37.1+1.3.235", optional = true }
[target.'cfg(windows)'.dependencies.windows]
version = "0.44.0"
optional = true
[features]
# core features and definitions
runtime = []
reflect = []
preprocess = []
presets = []
# runtimes
runtime-gl = [ "runtime", "reflect-cross", "librashader-common/opengl", "librashader-runtime-gl" ]
runtime-d3d11 = [ "runtime", "reflect-cross","librashader-common/d3d11", "librashader-runtime-d3d11", "windows/Win32_Graphics_Direct3D11" ]
runtime-d3d12 = [ "runtime", "reflect-cross", "reflect-dxil", "librashader-common/d3d12", "librashader-runtime-d3d12", "windows/Win32_Graphics_Direct3D12" ]
runtime-vk = ["runtime", "reflect-cross", "librashader-common/vulkan", "librashader-runtime-vk", "ash" ]
# reflection
reflect-cross = ["reflect", "librashader-reflect/cross"]
reflect-dxil = ["reflect", "librashader-reflect/dxil"]
runtime-all = ["runtime-gl", "runtime-d3d11", "runtime-d3d12", "runtime-vk"]
reflect-all = ["reflect-cross", "reflect-dxil"]
# enable all features by default
default = [ "full" ]
internal = []
full = ["runtime-all", "reflect-all", "preprocess", "presets"]
# cache hack
docsrs = ["librashader-cache/docsrs"]
[package.metadata.docs.rs]
targets = ["x86_64-pc-windows-msvc", "x86_64-unknown-linux-gnu"]
features = [ "librashader-cache/docsrs" ]