Skip to content

feat(derive): add crate attribute for re-export scenarios - #150

Open
ldseraph wants to merge 2 commits into
tokio-rs:masterfrom
ldseraph:feature/crate-attr
Open

feat(derive): add crate attribute for re-export scenarios#150
ldseraph wants to merge 2 commits into
tokio-rs:masterfrom
ldseraph:feature/crate-attr

Conversation

@ldseraph

Copy link
Copy Markdown

Add support for #[valuable(crate = "...")] attribute to allow specifying a custom path to the valuable crate. This is useful when re-exporting the derive macro from another crate.

Example:
mod my_crate {
pub use valuable::*;
}

#[derive(my_crate::Valuable)]
#[valuable(crate = "my_crate")]
struct MyStruct { x: String }

Add support for `#[valuable(crate = "...")]` attribute to allow
specifying a custom path to the valuable crate. This is useful when
re-exporting the derive macro from another crate.

Example:
    mod my_crate {
        pub use valuable::*;
    }

    #[derive(my_crate::Valuable)]
    #[valuable(crate = "my_crate")]
    struct MyStruct { x: String }
@ldseraph
ldseraph force-pushed the feature/crate-attr branch from c079fe9 to d8076cc Compare June 17, 2026 10:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant