blob: 8bae7328d16e2ea4784feae580df82e9422677b5 [file] [log] [blame]
[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 = { workspace = true, features = ["buffer_labels"] }
scenes = { workspace = true }
anyhow = { workspace = true }
clap = { workspace = true, features = ["derive"] }
pollster = { workspace = true }
wgpu-profiler = { workspace = true, optional = true }
winit = "0.30.0"
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 = { workspace = true, features = ["hot_reload"] }
vello_shaders = { workspace = true, features = ["compile"] }
notify-debouncer-mini = "0.4.1"
[target.'cfg(target_os = "android")'.dependencies]
winit = { version = "0.30.0", 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.15", 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.69", features = ["HtmlCollection", "Text"] }
web-time = { workspace = true }
getrandom = { version = "0.2.15", features = ["js"] }