forked from NationTech/harmony
wip: rename harmony-secret* by harmony_secret*
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
[package]
|
||||
name = "harmony-secret-derive"
|
||||
name = "harmony_secret_derive"
|
||||
version = "0.1.0"
|
||||
edition = "2024"
|
||||
|
||||
|
||||
@@ -10,10 +10,10 @@ pub fn derive_secret(input: TokenStream) -> TokenStream {
|
||||
|
||||
// The key for the secret will be the stringified name of the struct itself.
|
||||
// e.g., `struct OKDClusterSecret` becomes key `"OKDClusterSecret"`.
|
||||
let key = struct_ident.to_string();
|
||||
let key = struct_ident.to_string(); // TODO: Utiliser path complet de la struct
|
||||
|
||||
// Find the path to the `harmony_secret` crate.
|
||||
let secret_crate_path = match crate_name("harmony-secret") {
|
||||
let secret_crate_path = match crate_name("harmony_secret") {
|
||||
Ok(FoundCrate::Itself) => quote!(crate),
|
||||
Ok(FoundCrate::Name(name)) => {
|
||||
let ident = Ident::new(&name, proc_macro2::Span::call_site());
|
||||
|
||||
Reference in New Issue
Block a user