From 5702e83df50206fd67ebbfb9b3b1d9555a698415 Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Wed, 14 Feb 2024 16:55:50 +0100 Subject: [PATCH] weird doc trickery --- satrs-mib/codegen/Cargo.toml | 4 +--- satrs-mib/codegen/src/lib.rs | 10 ++++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/satrs-mib/codegen/Cargo.toml b/satrs-mib/codegen/Cargo.toml index b3adaf2..342e743 100644 --- a/satrs-mib/codegen/Cargo.toml +++ b/satrs-mib/codegen/Cargo.toml @@ -26,9 +26,7 @@ features = ["full"] [dev-dependencies] trybuild = { version = "1", features = ["diff"] } +satrs-shared = "0.1.1" [dev-dependencies.satrs-mib] path = ".." - -[dev-dependencies.satrs-shared] -version = "0.1.1" diff --git a/satrs-mib/codegen/src/lib.rs b/satrs-mib/codegen/src/lib.rs index 118f59a..f4e7a48 100644 --- a/satrs-mib/codegen/src/lib.rs +++ b/satrs-mib/codegen/src/lib.rs @@ -3,10 +3,12 @@ use syn::{parse_macro_input, ItemConst, LitStr}; /// This macro can be used to automatically generate introspection information for return codes. /// -/// For example, it can be applied to types like the [satrs_shared::res_code::ResultU16] type -/// to automatically generate [satrs_mib::res_code::ResultU16Info] instances. These instances -/// can then be used for tasks like generating CSVs or YAML files with the list of all result -/// codes. This information is valuable for both operators and developers. +/// For example, it can be applied to types like the +/// [`satrs_mib::res_code::ResultU16`](https://docs.rs/satrs-mib/latest/satrs_mib/res_code/struct.ResultU16.html#) type +/// to automatically generate +/// [`satrs_mib::res_code::ResultU16Info`](https://docs.rs/satrs-mib/latest/satrs_mib/res_code/struct.ResultU16Info.html) +/// instances. These instances can then be used for tasks like generating CSVs or YAML files with +/// the list of all result codes. This information is valuable for both operators and developers. #[proc_macro_attribute] pub fn resultcode( args: proc_macro::TokenStream,