Skip to content

Pre/post-conditions annotations using Rust expressions#57

Open
coord-e wants to merge 10 commits intomainfrom
coord-e/annotation-v2
Open

Pre/post-conditions annotations using Rust expressions#57
coord-e wants to merge 10 commits intomainfrom
coord-e/annotation-v2

Conversation

@coord-e
Copy link
Copy Markdown
Owner

@coord-e coord-e commented Mar 28, 2026

Introduce thrust-macros crate, and thrust_macros::requires and thrust_macros::ensures expands to annotations using thrust::formula_fn introduced in #65

@coord-e coord-e force-pushed the coord-e/annotation-v2 branch from 809279c to 89fc507 Compare March 30, 2026 14:52
@coord-e coord-e force-pushed the coord-e/annotation-v2 branch from 89fc507 to 2958eb1 Compare March 31, 2026 13:39
@coord-e coord-e changed the title Annotations via actual Rust functions Pre/post-conditions annotations using Rust expressions Mar 31, 2026
@coord-e coord-e force-pushed the coord-e/annotation-v2 branch 2 times, most recently from ec48146 to 97f139c Compare March 31, 2026 16:46
@coord-e coord-e marked this pull request as ready for review March 31, 2026 16:49
coord-e and others added 6 commits April 30, 2026 20:58
When the annotated function already has #[thrust::extern_spec_fn],
inject requires_path/ensures_path into the original function body
instead of generating a separate _thrust_extern_spec_ wrapper.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…quires/ensures expansion

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@coord-e coord-e force-pushed the coord-e/annotation-v2 branch from 97f139c to 7017724 Compare April 30, 2026 11:59
@coord-e coord-e force-pushed the coord-e/annotation-v2 branch from 8083491 to e26cf4c Compare April 30, 2026 15:22
@coord-e coord-e force-pushed the coord-e/annotation-v2 branch from e26cf4c to d0bb522 Compare April 30, 2026 15:26
@coord-e coord-e force-pushed the coord-e/annotation-v2 branch from d0bb522 to 50bcc1b Compare April 30, 2026 16:14
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