Skip to content

Commit

Permalink
log feature forwarding through wgpu package not ws
Browse files Browse the repository at this point in the history
  • Loading branch information
KaiSchubertNebumind committed Aug 13, 2024
1 parent 6e33317 commit 093c350
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
4 changes: 1 addition & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ authors = ["gfx-rs developers"]
package = "wgpu-core"
path = "./wgpu-core"
version = "22.0.0"
features = ["max_level_warn", "release_max_level_warn"]

[workspace.dependencies.wgt]
package = "wgpu-types"
Expand All @@ -65,7 +64,6 @@ version = "22.0.0"
package = "wgpu-hal"
path = "./wgpu-hal"
version = "22.0.0"
features = ["max_level_warn", "release_max_level_warn"]

[workspace.dependencies.naga]
path = "./naga"
Expand Down Expand Up @@ -99,7 +97,7 @@ libc = "0.2"
# libloading 0.8 switches from `winapi` to `windows-sys`; permit either
libloading = ">=0.7, <0.9"
libtest-mimic = "0.6"
log = { version = "0.4", features = ["max_level_warn", "release_max_level_warn"] }
log = "0.4"
nanorand = { version = "0.7", default-features = false, features = ["wyrand"] }
# https://github.com/Razaekel/noise-rs/issues/335 (Updated dependencies)
noise = { version = "0.8", git = "https://github.com/Razaekel/noise-rs.git", rev = "c6942d4fb70af26db4441edcf41f90fa115333f2" }
Expand Down
14 changes: 14 additions & 0 deletions wgpu/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,20 @@ fragile-send-sync-non-atomic-wasm = [
"wgt/fragile-send-sync-non-atomic-wasm",
]

max_level_off = ["wgc/max_level_off", "hal/max_level_off"]
max_level_error = ["wgc/max_level_error", "hal/max_level_error"]
max_level_warn = ["wgc/max_level_warn", "hal/max_level_warn"]
max_level_info = ["wgc/max_level_info", "hal/max_level_info"]
max_level_debug = ["wgc/max_level_debug", "hal/max_level_debug"]
max_level_trace = ["wgc/max_level_trace", "hal/max_level_trace"]

release_max_level_off = ["wgc/release_max_level_off", "hal/release_max_level_off"]
release_max_level_error = ["wgc/release_max_level_error", "hal/release_max_level_error"]
release_max_level_warn = ["wgc/release_max_level_warn", "hal/release_max_level_warn"]
release_max_level_info = ["wgc/release_max_level_info", "hal/release_max_level_info"]
release_max_level_debug = ["wgc/release_max_level_debug", "hal/release_max_level_debug"]
release_max_level_trace = ["wgc/release_max_level_trace", "hal/release_max_level_trace"]

# wgpu-core is always available as an optional dependency, "wgc".
# Whenever wgpu-core is selected, we want raw window handle support.
[dependencies.wgc]
Expand Down

0 comments on commit 093c350

Please # to comment.