chore: Upgrade ctor, cbor

This commit is contained in:
Jade Ellis 2025-08-31 03:01:06 +01:00
commit 1d7dda6cf5
No known key found for this signature in database
GPG key ID: 8705A2A3EBF77BD2
15 changed files with 353 additions and 276 deletions

View file

@ -13,13 +13,13 @@ pub(super) fn flags_capture(args: TokenStream) -> TokenStream {
let ret = quote! {
pub static RUSTC_FLAGS: [&str; #flag_len] = [#( #flag ),*];
#[conduwuit_core::ctor]
#[ctor]
fn _set_rustc_flags() {
conduwuit_core::info::rustc::FLAGS.lock().insert(#crate_name, &RUSTC_FLAGS);
}
// static strings have to be yanked on module unload
#[conduwuit_core::dtor]
#[dtor]
fn _unset_rustc_flags() {
conduwuit_core::info::rustc::FLAGS.lock().remove(#crate_name);
}