secrets_manager_macro/lib.rs
1#![doc = include_str!("../README.md")]
2
3mod implementation;
4
5use crate::implementation::entrypoint;
6use proc_macro::{TokenStream};
7
8/// Will fill the given struct with secrets retrieved from AWS Secrets Manager
9#[proc_macro_attribute]
10pub fn build_secrets_struct(attr: TokenStream, item: TokenStream) -> TokenStream {
11 entrypoint::create_secrets_manager(attr.into(), item.into()).into()
12}