From cef4aeb323cd68b399d41fd31179f9fd7160eeed Mon Sep 17 00:00:00 2001 From: Flier Lu Date: Mon, 11 Apr 2022 18:27:29 +0800 Subject: [PATCH] bump version to 0.3.0 --- Cargo.lock | 4 ++-- hyperscan-sys/Cargo.toml | 2 +- hyperscan-sys/src/chimera.rs | 8 ++++++-- hyperscan-sys/src/hyperscan.rs | 8 ++++++-- hyperscan/Cargo.toml | 4 ++-- 5 files changed, 17 insertions(+), 9 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 32a57be..ab0194c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -518,7 +518,7 @@ checksum = "9a3a5bfb195931eeb336b2a7b4d761daec841b97f947d34394601737a7bba5e4" [[package]] name = "hyperscan" -version = "0.2.2" +version = "0.3.0" dependencies = [ "anyhow", "bitflags", @@ -547,7 +547,7 @@ dependencies = [ [[package]] name = "hyperscan-sys" -version = "0.2.2" +version = "0.3.0" dependencies = [ "anyhow", "bindgen", diff --git a/hyperscan-sys/Cargo.toml b/hyperscan-sys/Cargo.toml index ca1a87e..41c8849 100644 --- a/hyperscan-sys/Cargo.toml +++ b/hyperscan-sys/Cargo.toml @@ -10,7 +10,7 @@ links = "hs" name = "hyperscan-sys" readme = "../README.md" repository = "https://github.com/flier/rust-hyperscan" -version = "0.2.2" +version = "0.3.0" [features] chimera = ["static"] diff --git a/hyperscan-sys/src/chimera.rs b/hyperscan-sys/src/chimera.rs index 2470f1c..5272aaa 100644 --- a/hyperscan-sys/src/chimera.rs +++ b/hyperscan-sys/src/chimera.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.58.1 */ +/* automatically generated by rust-bindgen 0.59.2 */ pub const CH_SUCCESS: u32 = 0; pub const CH_INVALID: i32 = -1; @@ -354,7 +354,11 @@ fn bindgen_test_layout_ch_compile_error() { } impl Default for ch_compile_error { fn default() -> Self { - unsafe { ::core::mem::zeroed() } + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } } } #[doc = " A type containing error details that is returned by the compile calls (@ref"] diff --git a/hyperscan-sys/src/hyperscan.rs b/hyperscan-sys/src/hyperscan.rs index c9956d1..63fa739 100644 --- a/hyperscan-sys/src/hyperscan.rs +++ b/hyperscan-sys/src/hyperscan.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.58.1 */ +/* automatically generated by rust-bindgen 0.59.2 */ pub const HS_MAJOR: u32 = 5; pub const HS_MINOR: u32 = 4; @@ -555,7 +555,11 @@ fn bindgen_test_layout_hs_compile_error() { } impl Default for hs_compile_error { fn default() -> Self { - unsafe { ::core::mem::zeroed() } + let mut s = ::core::mem::MaybeUninit::::uninit(); + unsafe { + ::core::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } } } #[doc = " A type containing error details that is returned by the compile calls (@ref"] diff --git a/hyperscan/Cargo.toml b/hyperscan/Cargo.toml index 6ed9b2e..83208f4 100644 --- a/hyperscan/Cargo.toml +++ b/hyperscan/Cargo.toml @@ -9,7 +9,7 @@ license = "MIT OR Apache-2.0" name = "hyperscan" readme = "../README.md" repository = "https://github.com/flier/rust-hyperscan" -version = "0.2.2" +version = "0.3.0" [features] default = ["full", "latest"] @@ -44,7 +44,7 @@ semver = "1" thiserror = "1.0" futures = {version = "0.3.16", optional = true} -hyperscan-sys = {version = "0.2", path = "../hyperscan-sys"} +hyperscan-sys = {version = "0.3", path = "../hyperscan-sys"} [dev-dependencies] anyhow = "1.0"