fix: Update ctor macro arguments

This commit is contained in:
Ginger
2026-05-03 08:55:50 -04:00
committed by Ellis Git
parent fe0d83d447
commit 6f9b4a989e
12 changed files with 30 additions and 4 deletions
Generated
+16
View File
@@ -975,6 +975,7 @@ dependencies = [
"console-subscriber",
"const-str",
"ctor",
"dtor",
"hardened_malloc-rs",
"log",
"opentelemetry",
@@ -1008,6 +1009,7 @@ dependencies = [
"conduwuit_service",
"const-str",
"ctor",
"dtor",
"futures",
"lettre",
"log",
@@ -1035,6 +1037,7 @@ dependencies = [
"conduwuit_service",
"const-str",
"ctor",
"dtor",
"futures",
"hmac",
"http",
@@ -1085,6 +1088,7 @@ dependencies = [
"core_affinity",
"ctor",
"cyborgtime",
"dtor",
"either",
"figment",
"futures",
@@ -1138,6 +1142,7 @@ dependencies = [
"conduwuit_macros",
"const-str",
"ctor",
"dtor",
"futures",
"log",
"minicbor",
@@ -1178,6 +1183,7 @@ dependencies = [
"conduwuit_web",
"const-str",
"ctor",
"dtor",
"futures",
"http",
"http-body-util",
@@ -1212,6 +1218,7 @@ dependencies = [
"conduwuit_macros",
"const-str",
"ctor",
"dtor",
"either",
"futures",
"governor",
@@ -1772,6 +1779,15 @@ dependencies = [
"litrs",
]
[[package]]
name = "dtor"
version = "0.13.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "66261f2a6a4976b45407e398e63bc50a25fccf464d417f7d20f2e2b0974b9888"
dependencies = [
"linktime-proc-macro",
]
[[package]]
name = "dunce"
version = "1.0.5"
+3
View File
@@ -41,6 +41,9 @@ version = "1.1.0"
[workspace.dependencies.ctor]
version = "0.13.0"
[workspace.dependencies.dtor]
version = "0.13.0"
[workspace.dependencies.cargo_toml]
version = "0.22"
default-features = false
+1
View File
@@ -81,6 +81,7 @@ conduwuit-macros.workspace = true
conduwuit-service.workspace = true
const-str.workspace = true
ctor.workspace = true
dtor.workspace = true
futures.workspace = true
lettre.workspace = true
log.workspace = true
+1
View File
@@ -77,6 +77,7 @@ conduwuit-macros.workspace = true
conduwuit-service.workspace = true
const-str.workspace = true
ctor.workspace = true
dtor.workspace = true
futures.workspace = true
hmac.workspace = true
http.workspace = true
+1
View File
@@ -70,6 +70,7 @@ conduwuit-build-metadata.workspace = true
const-str.workspace = true
core_affinity.workspace = true
ctor.workspace = true
dtor.workspace = true
cyborgtime.workspace = true
either.workspace = true
figment.workspace = true
+1 -1
View File
@@ -47,7 +47,7 @@ type Key = ArrayVec<usize, KEY_SEGS>;
const NAME_MAX: usize = 128;
const KEY_SEGS: usize = 8;
#[ctor::ctor]
#[ctor::ctor(unsafe)]
fn _static_initialization() {
acq_epoch().expect("pre-initialization of jemalloc failed");
acq_epoch().expect("pre-initialization of jemalloc failed");
+1 -1
View File
@@ -62,7 +62,7 @@ pub const INFO_SPAN_LEVEL: Level = if cfg!(debug_assertions) {
pub static DEBUGGER: LazyLock<bool> =
LazyLock::new(|| env::var("_").unwrap_or_default().ends_with("gdb"));
#[cfg_attr(debug_assertions, ctor::ctor)]
#[cfg_attr(debug_assertions, ctor::ctor(unsafe))]
#[cfg_attr(not(debug_assertions), allow(dead_code))]
fn set_panic_trap() {
if !*DEBUGGER {
+1
View File
@@ -58,6 +58,7 @@ conduwuit-core.workspace = true
conduwuit-macros.workspace = true
const-str.workspace = true
ctor.workspace = true
dtor.workspace = true
futures.workspace = true
log.workspace = true
minicbor.workspace = true
+2 -2
View File
@@ -32,11 +32,11 @@ pub(super) fn introspect(_args: TokenStream) -> Result<TokenStream> {
const CRATE_NAME: &str = #crate_name;
/// Register this crate's features with the global registry during static initialization
#[::ctor::ctor]
#[::ctor::ctor(unsafe)]
fn register() {
conduwuit_core::info::introspection::ENABLED_FEATURES.lock().unwrap().insert(#crate_name, &ENABLED);
}
#[::ctor::dtor]
#[::dtor::dtor(unsafe)]
fn unregister() {
conduwuit_core::info::introspection::ENABLED_FEATURES.lock().unwrap().remove(#crate_name);
}
+1
View File
@@ -217,6 +217,7 @@ conduwuit-macros.workspace = true
clap.workspace = true
ctor.workspace = true
dtor.workspace = true
console-subscriber.optional = true
console-subscriber.workspace = true
const-str.workspace = true
+1
View File
@@ -105,6 +105,7 @@ conduwuit-service.workspace = true
conduwuit-web.workspace = true
const-str.workspace = true
ctor.workspace = true
dtor.workspace = true
futures.workspace = true
http.workspace = true
http-body-util.workspace = true
+1
View File
@@ -89,6 +89,7 @@ conduwuit-database.workspace = true
conduwuit-macros.workspace = true
const-str.workspace = true
ctor.workspace = true
dtor.workspace = true
either.workspace = true
futures.workspace = true
governor.workspace = true