wip: rename harmony-secret* by harmony_secret*

This commit is contained in:
Ian Letourneau
2025-08-28 14:29:24 -04:00
parent 8cc7adf196
commit f180cc4c80
8 changed files with 61 additions and 38 deletions

View File

@@ -1,5 +1,5 @@
[package]
name = "harmony-secret-derive"
name = "harmony_secret_derive"
version = "0.1.0"
edition = "2024"

View File

@@ -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());