Skip to content

Commit 286b753

Browse files
committed
use linked instead of loaded
1 parent e56940d commit 286b753

File tree

4 files changed

+5
-88
lines changed

4 files changed

+5
-88
lines changed

Cargo.lock

Lines changed: 1 addition & 77 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ edition = "2021"
55
keywords = ["vulkan", "neofetch", "gpu", "fetch"]
66
license = "AGPL-3.0"
77
repository = "https://github.com/float3/vkfetch-rs"
8-
version = "0.0.5"
8+
version = "0.0.6"
99
name = "vkfetch-rs"
1010
categories = ["command-line-utilities"]
1111
readme = "README.md"
1212

1313
[dependencies]
14-
ash = "0.38.0"
14+
ash ={version = "0.38.0", default-features = false, features = ["std", "linked"] }

lint.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
#!/usr/bin/env nix-shell
2-
#!nix-shell -i bash -p cargo rustup openimagedenoise
1+
#!/usr/bin/env bash
32

43
cargo update --workspace
54
cargo clippy --fix --allow-dirty --allow-staged --all-targets --all-features --workspace -- -D warnings

src/lib.rs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -66,13 +66,7 @@ fn get_device_info(device: PhysicalDevice) -> Vec<String> {
6666
}
6767

6868
pub fn iterate_devices() {
69-
let entry = match unsafe { Entry::load() } {
70-
Ok(entry) => entry,
71-
Err(e) => {
72-
eprintln!("Failed to load entry: {:?}", e);
73-
return;
74-
}
75-
};
69+
let entry = Entry::linked();
7670

7771
let versions = [
7872
vk::API_VERSION_1_3,

0 commit comments

Comments
 (0)