Skip to content

feat(derive): support #[from] conversions#32

Merged
RAprogramm merged 2 commits intonew_versionfrom
codex/add-support-for-#-from]-attribute-parsing
Sep 17, 2025
Merged

feat(derive): support #[from] conversions#32
RAprogramm merged 2 commits intonew_versionfrom
codex/add-support-for-#-from]-attribute-parsing

Conversation

@RAprogramm
Copy link
Owner

Summary

  • parse the #[from] attribute on struct fields and enum variants, integrate it with existing source detection, and emit the matching From<T> impls
  • reject conflicting usages of #[from] while keeping display/source generation intact
  • extend the derive tests with runtime coverage and trybuild-based negative cases for the new conversions

Testing

  • cargo +nightly fmt --
  • cargo clippy -- -D warnings
  • cargo build --all-targets
  • cargo test --all
  • cargo doc --no-deps

https://chatgpt.com/codex/tasks/task_e_68ca2d3a02bc832bae565f264597a17f

@RAprogramm RAprogramm merged commit f63b5ad into new_version Sep 17, 2025
1 of 2 checks passed
@RAprogramm RAprogramm deleted the codex/add-support-for-#-from]-attribute-parsing branch September 17, 2025 04:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant