i have a rust workspace, with a bunch of library crates in the workspace. one of these library crates is the proc-macro-attribute crate, that provides derives for some traits in the other library crates.
.
├── Cargo.toml
├── cas-attrs # proc macro attributes crate, deriving traits...
├── cas-error # ...that are located here
├── cas-eval # ...documentation refers to other types in here
├── ...
how can i refer to the types / traits in cas-error and cas-eval? this is what i've tried doing:
// ./cas-attrs/src/lib.rs
/// A link to the [`ErrorKind`] trait, provided in the `cas_error` crate. Uses [`Value::Number`].
///
/// [`ErrorKind`]: cas_error::ErrorKind
/// [`Value`]: cas_eval::ctxt::Value
#[proc_macro_derive(ErrorKind, attributes(error))]
pub fn error_kind(item: TokenStream) -> TokenStream {
// ....
after running cargo doc, the resulting links link to nowhere