Skip to content

Commit

Permalink
v0.10.0
Browse files Browse the repository at this point in the history
  • Loading branch information
bamidev committed Mar 1, 2024
1 parent 4ad6b7b commit 9ed03bd
Show file tree
Hide file tree
Showing 3 changed files with 74 additions and 20 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "browser-window"
version = "0.9.4"
version = "0.10.0"
description = "A simple, async/await aware browser window."
edition = "2018"
authors = ["Bamidev"]
Expand Down Expand Up @@ -33,7 +33,7 @@ name = "authentication"
path = "examples/authentication.rs"

[dependencies]
browser-window-c = { path = "c", version = "0.0.12" }
browser-window-c = { path = "c", version = "0.1.0" }
futures-channel = { version = "^0.3" }
gtk = { version = "0.18", optional = true }
javascriptcore-rs = { version = "1", optional = true }
Expand Down
2 changes: 1 addition & 1 deletion c/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "browser-window-c"
version = "0.0.12"
version = "0.1.0"
description = "FFI bindings for the browser-window crate."
edition = "2018"
authors = ["Bamidev"]
Expand Down
88 changes: 71 additions & 17 deletions c/bindgen_backup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3073,6 +3073,7 @@ fn bindgen_test_layout_cbw_ApplicationDispatchData() {
#[derive(Debug, Copy, Clone)]
pub struct cbw_ApplicationSettings {
pub engine_seperate_executable_path: cbw_CStrSlice,
pub remote_debugging_port: u16,
pub resource_dir: cbw_CStrSlice,
}
#[test]
Expand All @@ -3082,7 +3083,7 @@ fn bindgen_test_layout_cbw_ApplicationSettings() {
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<cbw_ApplicationSettings>(),
32usize,
40usize,
concat!("Size of: ", stringify!(cbw_ApplicationSettings))
);
assert_eq!(
Expand All @@ -3103,8 +3104,18 @@ fn bindgen_test_layout_cbw_ApplicationSettings() {
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).resource_dir) as usize - ptr as usize },
unsafe { ::std::ptr::addr_of!((*ptr).remote_debugging_port) as usize - ptr as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(cbw_ApplicationSettings),
"::",
stringify!(remote_debugging_port)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).resource_dir) as usize - ptr as usize },
24usize,
concat!(
"Offset of field: ",
stringify!(cbw_ApplicationSettings),
Expand Down Expand Up @@ -4848,51 +4859,94 @@ extern "C" {
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct cbw_CookieImpl {}
pub struct cbw_CookieImpl {
pub __: *mut ::std::os::raw::c_void,
}
#[test]
fn bindgen_test_layout_cbw_CookieImpl() {
const UNINIT: ::std::mem::MaybeUninit<cbw_CookieImpl> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<cbw_CookieImpl>(),
0usize,
8usize,
concat!("Size of: ", stringify!(cbw_CookieImpl))
);
assert_eq!(
::std::mem::align_of::<cbw_CookieImpl>(),
1usize,
8usize,
concat!("Alignment of ", stringify!(cbw_CookieImpl))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(cbw_CookieImpl),
"::",
stringify!(__)
)
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct cbw_CookieIteratorImpl {}
pub struct cbw_CookieIteratorImpl {
pub __: *mut ::std::os::raw::c_void,
}
#[test]
fn bindgen_test_layout_cbw_CookieIteratorImpl() {
const UNINIT: ::std::mem::MaybeUninit<cbw_CookieIteratorImpl> =
::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<cbw_CookieIteratorImpl>(),
0usize,
8usize,
concat!("Size of: ", stringify!(cbw_CookieIteratorImpl))
);
assert_eq!(
::std::mem::align_of::<cbw_CookieIteratorImpl>(),
1usize,
8usize,
concat!("Alignment of ", stringify!(cbw_CookieIteratorImpl))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(cbw_CookieIteratorImpl),
"::",
stringify!(__)
)
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct cbw_CookieJarImpl {}
pub struct cbw_CookieJarImpl {
pub __: *mut ::std::os::raw::c_void,
}
#[test]
fn bindgen_test_layout_cbw_CookieJarImpl() {
const UNINIT: ::std::mem::MaybeUninit<cbw_CookieJarImpl> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<cbw_CookieJarImpl>(),
0usize,
8usize,
concat!("Size of: ", stringify!(cbw_CookieJarImpl))
);
assert_eq!(
::std::mem::align_of::<cbw_CookieJarImpl>(),
1usize,
8usize,
concat!("Alignment of ", stringify!(cbw_CookieJarImpl))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).__) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(cbw_CookieJarImpl),
"::",
stringify!(__)
)
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
Expand All @@ -4905,12 +4959,12 @@ fn bindgen_test_layout_cbw_Cookie() {
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<cbw_Cookie>(),
0usize,
8usize,
concat!("Size of: ", stringify!(cbw_Cookie))
);
assert_eq!(
::std::mem::align_of::<cbw_Cookie>(),
1usize,
8usize,
concat!("Alignment of ", stringify!(cbw_Cookie))
);
assert_eq!(
Expand All @@ -4935,12 +4989,12 @@ fn bindgen_test_layout_cbw_CookieJar() {
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<cbw_CookieJar>(),
0usize,
8usize,
concat!("Size of: ", stringify!(cbw_CookieJar))
);
assert_eq!(
::std::mem::align_of::<cbw_CookieJar>(),
1usize,
8usize,
concat!("Alignment of ", stringify!(cbw_CookieJar))
);
assert_eq!(
Expand All @@ -4965,12 +5019,12 @@ fn bindgen_test_layout_cbw_CookieIterator() {
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<cbw_CookieIterator>(),
0usize,
8usize,
concat!("Size of: ", stringify!(cbw_CookieIterator))
);
assert_eq!(
::std::mem::align_of::<cbw_CookieIterator>(),
1usize,
8usize,
concat!("Alignment of ", stringify!(cbw_CookieIterator))
);
assert_eq!(
Expand Down

0 comments on commit 9ed03bd

Please sign in to comment.