Skip to content

Commit

Permalink
Remove platform block in build.rs (#168)
Browse files Browse the repository at this point in the history
  • Loading branch information
veeenu authored Mar 8, 2024
1 parent 041ce35 commit baef37c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
11 changes: 8 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "hudhook"
version = "0.6.2"
version = "0.6.3"
edition = "2021"
description = "A graphics API hook with dear imgui render loop. Supports DirectX 9, 11, 12, and OpenGL 3."
homepage = "/~https://github.com/veeenu/hudhook"
Expand All @@ -10,8 +10,13 @@ license-file = "LICENSE"
authors = ["Andrea Venuta <venutawebdesign@gmail.com>"]

[package.metadata.docs.rs]
default-target = "x86_64-pc-windows-msvc"
targets = ["x86_64-pc-windows-msvc", "i686-pc-windows-msvc"]
default-target = "x86_64-pc-windows-gnu"
targets = [
"x86_64-pc-windows-msvc",
"i686-pc-windows-msvc",
"x86_64-pc-windows-gnu",
"i686-pc-windows-gnu"
]

[features]
default = ["dx9", "dx11", "dx12", "opengl3", "inject"]
Expand Down
5 changes: 0 additions & 5 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,6 @@ fn main() {

let parts = target.splitn(4, '-').collect::<Vec<_>>();
let arch = parts[0];
let sys = parts[2];

if sys != "windows" {
panic!("Platform '{sys}' not supported.");
}

let hde = match arch {
"i686" => "hde/hde32.c",
Expand Down

0 comments on commit baef37c

Please sign in to comment.