diff options
author | HampusM <hampus@hampusmat.com> | 2022-10-01 17:34:42 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2022-10-01 17:34:42 +0200 |
commit | ef8d5439c855924153ba671cc1697ca9f1a44f46 (patch) | |
tree | a5643c71c87f41140b2c3b2c4bda15500039fc75 /macros | |
parent | 5d2ba01481727f379761124d9aa87f9d47ef77fc (diff) |
docs: improve item links in the injectable macro
Diffstat (limited to 'macros')
-rw-r--r-- | macros/src/lib.rs | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/macros/src/lib.rs b/macros/src/lib.rs index 2099810..2d37c43 100644 --- a/macros/src/lib.rs +++ b/macros/src/lib.rs @@ -25,7 +25,8 @@ use crate::injectable::implementation::InjectableImpl; use crate::injectable::macro_args::InjectableMacroArgs; use crate::libs::intertrait_macros::gen_caster::generate_caster; -/// Makes a struct injectable. Thereby usable with [`DIContainer`]. +/// Makes a struct injectable. Thereby usable with [`DIContainer`] or +/// [`AsyncDIContainer`]. /// /// # Arguments /// * (Optional) A interface trait the struct implements. @@ -103,9 +104,10 @@ use crate::libs::intertrait_macros::gen_caster::generate_caster; /// } /// ``` /// -/// [`DIContainer`]: ../syrette/di_container/struct.DIContainer.html -/// [`Injectable`]: ../syrette/interfaces/injectable/trait.Injectable.html -/// [`di_container_bind`]: ../syrette/macro.di_container_bind.html +/// [`DIContainer`]: https://docs.rs/syrette/latest/syrette/di_container/struct.DIContainer.html +/// [`AsyncDIContainer`]: https://docs.rs/syrette/latest/syrette/async_di_container/struct.AsyncDIContainer.html +/// [`Injectable`]: https://docs.rs/syrette/latest/syrette/interfaces/injectable/trait.Injectable.html +/// [`di_container_bind`]: https://docs.rs/syrette/latest/syrette/macro.di_container_bind.html #[proc_macro_attribute] pub fn injectable(args_stream: TokenStream, impl_stream: TokenStream) -> TokenStream { |