Skip to content

Commit

Permalink
update deps, restrict use of vendored bindings to x86_64
Browse files Browse the repository at this point in the history
  • Loading branch information
oberrich committed Sep 5, 2024
1 parent d17e823 commit 5c791fa
Show file tree
Hide file tree
Showing 7 changed files with 57 additions and 176 deletions.
188 changes: 33 additions & 155 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "phnt"
version = "0.0.27"
version = "0.0.28"
license = "MIT"
authors = ["oberrich <[email protected]>"]
repository = "https://github.com/oberrich/phnt-rs"
Expand All @@ -19,16 +19,16 @@ rustdoc-args = ["--cfg", "docsrs"]
rustc-args = ["--cfg", "docsrs"]

[build-dependencies] # optional
regex = { version = "1.10.3", optional = true }
bindgen = { version = "0.69.4", optional = true }
regex = { version = "1.10.6", optional = true }
bindgen = { version = "0.70.1", optional = true }
chrono = { version = "0.4.37", optional = true }

[dependencies.windows-sys]
version = "0.42.0"
version = "0.59.0"
features = ["Win32_Foundation"]

[dev-dependencies.windows-sys]
version = "0.42.0"
version = "0.59.0"
features = ["Win32_System_Threading"]

[dependencies]
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Crate Overview
- [Functions][docs.rs/ext/functions]
- [Macros][docs.rs/ext/macros]

**crate version:** 0.0.27 - unstable api
**crate version:** 0.0.28 - unstable api

[github.com]: https://github.com/oberrich/phnt-rs
[github.com/ci]: https://github.com/oberrich/phnt-rs/actions/workflows/rust.yml
Expand Down
2 changes: 1 addition & 1 deletion deps/phnt-nightly
Submodule phnt-nightly updated 22 files
+685 −21 LICENSE
+1,299 −247 ntexapi.h
+0 −5 ntimage.h
+10 −407 ntioapi.h
+0 −1 ntkeapi.h
+4 −28 ntldr.h
+595 −0 ntmisc.h
+5 −17 ntmmapi.h
+1 −1 ntobapi.h
+5 −18 ntpebteb.h
+7 −141 ntpoapi.h
+12 −133 ntpsapi.h
+4 −4 ntregapi.h
+69 −473 ntrtl.h
+6 −6 ntsam.h
+0 −85 ntseapi.h
+75 −64 ntwmi.h
+1 −1 ntzwapi.h
+0 −2 phnt.h
+1 −12 phnt_ntdef.h
+0 −8 phnt_windows.h
+28 −40 winsta.h
2 changes: 2 additions & 0 deletions src/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ mod regen {

let mut raw_lines = vec![
format!("// Generated at {}", chrono::offset::Local::now()),
format!("// Architecture: {}", std::env::consts::ARCH),
"use cty;".into(),
];
raw_lines.append(&mut self.raw_lines.clone());
Expand All @@ -107,6 +108,7 @@ mod regen {
];

bindgen::builder()
.disable_header_comment()
.header(concat!(env!("CARGO_MANIFEST_DIR"), "/src/ffi/wrapper.h"))
.raw_line(raw_lines.join("\r\n").as_str())
.clang_args(clang_args)
Expand Down
13 changes: 6 additions & 7 deletions src/ffi/generated.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
/* automatically generated by rust-bindgen 0.69.4 */

// Generated at 2024-07-31 04:10:14.883244400 +02:00
// Generated at 2024-09-05 21:31:56.716587600 +02:00
// Architecture: x86_64
use cty;
pub use nt_string::unicode_string::NtUnicodeString as UNICODE_STRING;
pub use windows_sys::Win32::Foundation::NTSTATUS as NTSTATUS;
pub use windows_sys::Win32::Foundation::BOOLEAN as BOOLEAN;
pub use nt_string::unicode_string::NtUnicodeString as _UNICODE_STRING;
pub use windows_sys::Win32::Foundation::BOOL;
pub use windows_sys::Win32::Foundation::BOOLEAN;
pub use windows_sys::Win32::Foundation::NTSTATUS;
pub use nt_string::unicode_string::NtUnicodeString as UNICODE_STRING;
pub use windows_sys::Win32::Foundation::BOOL as BOOL;

#[repr(C)]
#[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
Expand Down
Loading

0 comments on commit 5c791fa

Please sign in to comment.