-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug: cannot export individual pallet calls #9
Labels
bug
Something isn't working
Comments
It's all impl fns it looks like, this reproduces it: trait SomeTrait {
fn trait_impl_method();
}
pub struct Liam9;
impl SomeTrait for Liam9 {
#[docify::export]
fn trait_impl_method() {
println!("foo!");
}
}
|
Yes indeed, the visitor pattern right now only visits |
ggwpez
pushed a commit
to paritytech/polkadot-sdk
that referenced
this issue
Sep 20, 2023
Upgrades to docify v0.2.4 which adds support for exporting trait and impl items in addition to regular items. This fixes @liamaharon's sam0x17/docify#9 issue. See the release notes for more information: https://github.com/sam0x17/docify/releases/tag/v0.2.4
bgallois
pushed a commit
to duniter/duniter-polkadot-sdk
that referenced
this issue
Mar 25, 2024
Upgrades to docify v0.2.4 which adds support for exporting trait and impl items in addition to regular items. This fixes @liamaharon's sam0x17/docify#9 issue. See the release notes for more information: https://github.com/sam0x17/docify/releases/tag/v0.2.4
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This does not work:
When I try to use
#![doc = docify::embed!("src/lib.rs", set_value)]
in my docs, I get a compile error:However, I am able to export all calls:
#![doc = docify::embed!("src/lib.rs", pallet_calls)]
worksThe text was updated successfully, but these errors were encountered: