Update ctor requirement to 0.4.0 (#3005)
* Update ctor requirement from 0.2.9 to 0.3.6 --- updated-dependencies: - dependency-name: ctor dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> * ctor 0.4.0 --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Dominik Maier <domenukk@gmail.com> Co-authored-by: Dominik Maier <dmnk@google.com>
This commit is contained in:
parent
a0d8f7e255
commit
3d31adcca1
@ -141,7 +141,7 @@ num_enum = { workspace = true, default-features = false }
|
|||||||
ahash = { workspace = true, optional = true } # The hash function already used in hashbrown
|
ahash = { workspace = true, optional = true } # The hash function already used in hashbrown
|
||||||
backtrace = { workspace = true, default-features = true, optional = true } # Used to get the stacktrace in StacktraceObserver
|
backtrace = { workspace = true, default-features = true, optional = true } # Used to get the stacktrace in StacktraceObserver
|
||||||
|
|
||||||
ctor = { optional = true, version = "0.2.9" }
|
ctor = { optional = true, version = "0.4.0" }
|
||||||
miniz_oxide = { version = "0.8.0", optional = true }
|
miniz_oxide = { version = "0.8.0", optional = true }
|
||||||
hostname = { version = "0.4.0", optional = true } # Is there really no gethostname in the stdlib?
|
hostname = { version = "0.4.0", optional = true } # Is there really no gethostname in the stdlib?
|
||||||
rand_core = { version = "0.9.0", optional = true }
|
rand_core = { version = "0.9.0", optional = true }
|
||||||
|
@ -77,7 +77,7 @@ pub extern crate alloc;
|
|||||||
|
|
||||||
#[cfg(feature = "ctor")]
|
#[cfg(feature = "ctor")]
|
||||||
#[doc(hidden)]
|
#[doc(hidden)]
|
||||||
pub use ctor::ctor;
|
pub use ctor;
|
||||||
#[cfg(feature = "alloc")]
|
#[cfg(feature = "alloc")]
|
||||||
pub mod anymap;
|
pub mod anymap;
|
||||||
#[cfg(feature = "std")]
|
#[cfg(feature = "std")]
|
||||||
|
@ -840,17 +840,17 @@ impl<'de> Deserialize<'de> for Box<dyn crate::serdeany::SerdeAny> {
|
|||||||
#[macro_export]
|
#[macro_export]
|
||||||
macro_rules! create_register {
|
macro_rules! create_register {
|
||||||
($struct_type:ty) => {
|
($struct_type:ty) => {
|
||||||
const _: () = {
|
$crate::ctor::declarative::ctor! {
|
||||||
/// Automatically register this type
|
/// Automatically register this type
|
||||||
#[$crate::ctor]
|
#[ctor(anonymous)]
|
||||||
fn register() {
|
unsafe fn register() {
|
||||||
// # Safety
|
// # Safety
|
||||||
// This `register` call will always run at startup and never in parallel.
|
// This `register` call will always run at startup and never in parallel.
|
||||||
unsafe {
|
unsafe {
|
||||||
$crate::serdeany::RegistryBuilder::register::<$struct_type>();
|
$crate::serdeany::RegistryBuilder::register::<$struct_type>();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -36,7 +36,7 @@ libafl = { workspace = true, features = ["std", "serdeany_autoreg"] }
|
|||||||
libafl_bolts = { workspace = true, features = ["std", "serdeany_autoreg"] }
|
libafl_bolts = { workspace = true, features = ["std", "serdeany_autoreg"] }
|
||||||
|
|
||||||
unchecked_unwrap = "4.0.0"
|
unchecked_unwrap = "4.0.0"
|
||||||
ctor = "0.2.9"
|
ctor = "0.4.0"
|
||||||
libc = { workspace = true }
|
libc = { workspace = true }
|
||||||
|
|
||||||
[build-dependencies]
|
[build-dependencies]
|
||||||
|
@ -12,7 +12,7 @@ crate-type = ["dylib"]
|
|||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
anyhow = { version = "1.0", default-features = false }
|
anyhow = { version = "1.0", default-features = false }
|
||||||
ctor = { version = "0.2.9", default-features = false }
|
ctor = "0.4.0"
|
||||||
nix = { version = "0.29", default-features = false, features = [
|
nix = { version = "0.29", default-features = false, features = [
|
||||||
"process",
|
"process",
|
||||||
"personality",
|
"personality",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user