Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@kanarus
Copy link
Member

@kanarus kanarus commented Feb 21, 2025

Before, in manual binding mode of #[bindings], doc comments for variable bindings like

#[bindings]
struct Bindings {
    /// this is a sample variable binding
    MY_VARIABLE: bindings::Var,
}

are not shown only for the fields, not in associated consts corresponded to them. This PR improves this DX by copying the doc comments if any to each associated consts.

@kanarus kanarus merged commit b6dde53 into v0.23.2 Feb 21, 2025
9 checks passed
@kanarus kanarus deleted the DX/worker/bindings branch February 21, 2025 13:09
@kanarus kanarus linked an issue Feb 21, 2025 that may be closed by this pull request
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.

DX(worker): copy doc comment for a Var binding to associated const

1 participant