Skip to content

Commit

Permalink
Make Debug impls optional
Browse files Browse the repository at this point in the history
When disabled, this buys us a 12% reduction in buildtime.
  • Loading branch information
Ralith committed Dec 21, 2021
1 parent a7d5c49 commit 9a93ef2
Show file tree
Hide file tree
Showing 4 changed files with 1,464 additions and 717 deletions.
1 change: 1 addition & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- Device extension `khr::PipelineExecutableProperties` and `khr::TimelineSemaphore` now expose `fn device()` instead of `fn instance()` (#499)
- Changed `khr::PipelineExecutableProperties::new()` and `khr::TimelineSemaphore::new()` to take `instance` and `device` as arguments (#499)
- Vulkan structures only implement `Debug` if the `debug` feature is enabled, which is the default (#482)

### Removed

Expand Down
4 changes: 3 additions & 1 deletion ash/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,13 @@ edition = "2018"
libloading = { version = "0.7", optional = true }

[features]
default = ["linked"]
default = ["linked", "debug"]
# Link the Vulkan loader at compile time.
linked = []
# Support searching for the Vulkan loader manually at runtime.
loaded = ["libloading"]
# Whether Vulkan structs should implement Debug
debug = []

[package.metadata.release]
no-dev-version = true
Expand Down
Loading

0 comments on commit 9a93ef2

Please sign in to comment.