| [package] |
| name = "vello_shaders" |
| version.workspace = true # We mimic Vello's version |
| description = "Vello infrastructure to preprocess and cross-compile shaders at compile time." |
| categories = ["rendering", "graphics"] |
| keywords = ["2d", "vector-graphics"] |
| edition.workspace = true |
| rust-version.workspace = true |
| license.workspace = true |
| repository.workspace = true |
| |
| [package.metadata.docs.rs] |
| all-features = true |
| # There are no platform specific docs. |
| default-target = "x86_64-unknown-linux-gnu" |
| targets = [] |
| |
| [features] |
| default = ["wgsl", "cpu"] |
| compile = ["dep:naga", "dep:thiserror", "dep:log"] |
| |
| # Target shading language variants of the vello shaders to link into the library. |
| wgsl = [] |
| msl = ["naga?/msl-out"] |
| |
| # Enable the CPU versions of the shaders |
| cpu = ["dep:bytemuck", "dep:vello_encoding"] |
| |
| [lints] |
| workspace = true |
| |
| [dependencies] |
| bytemuck = { workspace = true, optional = true } |
| naga = { version = "24.0.0", features = ["wgsl-in"], optional = true } |
| thiserror = { workspace = true, optional = true } |
| vello_encoding = { workspace = true, optional = true } |
| log = { workspace = true, optional = true } |
| |
| [build-dependencies] |
| naga = { version = "24.0.0", features = ["wgsl-in"] } |
| thiserror = { workspace = true } |
| log = { workspace = true } |