Skip to content

feat(macros): support transformation of a function for #[dynify]#13

Merged
loichyan merged 4 commits into
mainfrom
feat/macro-fn-item
Aug 19, 2025
Merged

feat(macros): support transformation of a function for #[dynify]#13
loichyan merged 4 commits into
mainfrom
feat/macro-fn-item

Conversation

@loichyan

Copy link
Copy Markdown
Owner

Support using #[dynify] on a standalone function:

#[dynify::dynify]
async fn my_func(id: usize) -> String {
    todo!()
}
// It expands to
fn dyn_my_func<'dynify>(
    id: usize,
) -> dynify::Fn!(usize => dyn 'dynify + Future<Output = String>) {
    dynify::from_fn!(my_func, id)
}

@codecov

codecov Bot commented Aug 19, 2025

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.37%. Comparing base (3f2b478) to head (e94f2eb).

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #13      +/-   ##
==========================================
+ Coverage   98.19%   98.37%   +0.17%     
==========================================
  Files          12       12              
  Lines         830      859      +29     
==========================================
+ Hits          815      845      +30     
+ Misses         15       14       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@loichyan loichyan merged commit 84883ca into main Aug 19, 2025
@loichyan loichyan deleted the feat/macro-fn-item branch August 19, 2025 13:57
@loichyan loichyan mentioned this pull request Aug 28, 2025
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