| [package] |
| name = "with_winit" |
| version = "0.0.0" |
| description = "An example using vello to render to a winit window" |
| edition.workspace = true |
| license.workspace = true |
| repository.workspace = true |
| publish = false |
| |
| [lib] |
| name = "with_winit" |
| crate-type = ["cdylib", "lib"] |
| |
| [features] |
| default = ["wgpu-profiler"] |
| # Enable the use of wgpu-profiler. This is an optional feature for times when we use a git dependency on |
| # wgpu (which means the dependency used in wgpu-profiler would be incompatible) |
| wgpu-profiler = ["dep:wgpu-profiler", "vello/wgpu-profiler"] |
| |
| [lints] |
| workspace = true |
| |
| [[bin]] |
| # Stop the PDB collision warning on windows |
| name = "with_winit_bin" |
| path = "src/main.rs" |
| |
| [dependencies] |
| vello = { path = "../../", features = ["buffer_labels"] } |
| scenes = { path = "../scenes" } |
| anyhow = { workspace = true } |
| clap = { workspace = true, features = ["derive"] } |
| instant = { workspace = true } |
| pollster = { workspace = true } |
| wgpu-profiler = { workspace = true, optional = true } |
| |
| wgpu = { workspace = true } |
| winit = "0.29.15" |
| log = { workspace = true } |
| |
| # We're still using env-logger, but we want to use tracing spans to allow using |
| # tracing_android_trace |
| tracing = { version = "0.1.40", features = ["log-always"] } |
| |
| [target.'cfg(not(target_os = "android"))'.dependencies] |
| # We use android_logger on Android |
| env_logger = "0.11.3" |
| |
| [target.'cfg(not(any(target_arch = "wasm32", target_os = "android")))'.dependencies] |
| vello = { path = "../../", features = ["hot_reload"] } |
| notify-debouncer-mini = "0.3.0" |
| |
| |
| [target.'cfg(target_os = "android")'.dependencies] |
| winit = { version = "0.29.15", features = ["android-native-activity"] } |
| android_logger = "0.13.3" |
| |
| tracing_android_trace = "0.1.0" |
| tracing-subscriber = { version = "0.3.18", default-features = false, features = [ |
| "std", |
| "registry", |
| ] } |
| profiling = { version = "1.0", features = ["profile-with-tracing"] } |
| |
| [target.'cfg(target_arch = "wasm32")'.dependencies] |
| console_error_panic_hook = "0.1.7" |
| console_log = "1.0.0" |
| wasm-bindgen-futures = "0.4.42" |
| web-sys = { version = "0.3.67", features = ["HtmlCollection", "Text"] } |
| getrandom = { version = "0.2.12", features = ["js"] } |