rename conduit to conduwuit finally
Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
parent
c6bf8f5ea1
commit
0317cc8cc5
277 changed files with 559 additions and 551 deletions
|
@ -1,5 +1,5 @@
|
|||
[package]
|
||||
name = "conduit_macros"
|
||||
name = "conduwuit_macros"
|
||||
categories.workspace = true
|
||||
description.workspace = true
|
||||
edition.workspace = true
|
||||
|
@ -10,7 +10,7 @@ repository.workspace = true
|
|||
version.workspace = true
|
||||
|
||||
[lib]
|
||||
name = "conduit_macros"
|
||||
name = "conduwuit_macros"
|
||||
path = "mod.rs"
|
||||
proc-macro = true
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@ use crate::{utils::camel_to_snake_string, Result};
|
|||
|
||||
pub(super) fn command(mut item: ItemFn, _args: &[Meta]) -> Result<TokenStream> {
|
||||
let attr: Attribute = parse_quote! {
|
||||
#[conduit_macros::implement(crate::Command, params = "<'_>")]
|
||||
#[conduwuit_macros::implement(crate::Command, params = "<'_>")]
|
||||
};
|
||||
|
||||
item.attrs.push(attr);
|
||||
|
|
|
@ -5,7 +5,7 @@ pub(super) fn flags_capture(args: TokenStream) -> TokenStream {
|
|||
let cargo_crate_name = std::env::var("CARGO_CRATE_NAME");
|
||||
let crate_name = match cargo_crate_name.as_ref() {
|
||||
Err(_) => return args,
|
||||
Ok(crate_name) => crate_name.trim_start_matches("conduit_"),
|
||||
Ok(crate_name) => crate_name.trim_start_matches("conduwuit_"),
|
||||
};
|
||||
|
||||
let flag = std::env::args().collect::<Vec<_>>();
|
||||
|
@ -13,15 +13,15 @@ pub(super) fn flags_capture(args: TokenStream) -> TokenStream {
|
|||
let ret = quote! {
|
||||
pub static RUSTC_FLAGS: [&str; #flag_len] = [#( #flag ),*];
|
||||
|
||||
#[conduit_core::ctor]
|
||||
#[conduwuit_core::ctor]
|
||||
fn _set_rustc_flags() {
|
||||
conduit_core::info::rustc::FLAGS.lock().expect("locked").insert(#crate_name, &RUSTC_FLAGS);
|
||||
conduwuit_core::info::rustc::FLAGS.lock().expect("locked").insert(#crate_name, &RUSTC_FLAGS);
|
||||
}
|
||||
|
||||
// static strings have to be yanked on module unload
|
||||
#[conduit_core::dtor]
|
||||
#[conduwuit_core::dtor]
|
||||
fn _unset_rustc_flags() {
|
||||
conduit_core::info::rustc::FLAGS.lock().expect("locked").remove(#crate_name);
|
||||
conduwuit_core::info::rustc::FLAGS.lock().expect("locked").remove(#crate_name);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue