Skip to content

Refactor/comptime option launch derive - #1513

Merged
nathanielsimard merged 2 commits into
mainfrom
refactor/comptime-option-launch-derive
Aug 14, 2026
Merged

Refactor/comptime option launch derive#1513
nathanielsimard merged 2 commits into
mainfrom
refactor/comptime-option-launch-derive

Conversation

@ThierryCantin-Demers

Copy link
Copy Markdown
Member

Validate your PR with burn.

It is important that you make sure that you don't introduce any bugs in burn.

Instructions

  • Create a new branch or fork of the cubek repo
  • Update the main Cargo.toml with this PR hash.
  • Fix any broken tests or compilation errors in cubek.
  •  Submit a PR in cubek with your fixes and link it here.
  • Create a new branch or fork of the burn repo
  • Update the main Cargo.toml with this PR and the cubek PR hash.
  • Fix any broken tests or compilation errors in burn.
  •  Submit a PR in burn with your fixes and link it here.

The hand-written ComptimeOptionArgs, LaunchArg impl, and
ComptimeOptionCompilationArg with its five manual trait impls duplicate
exactly what the CubeLaunch derive generates for enums, down to the type
names, so the From<Option<RuntimeArg>> convenience impl compiles
unchanged against the derived types.
Covers both variants, so the discriminant compiles one kernel each and
the Some payload rides as a scalar binding.
@nathanielsimard
nathanielsimard merged commit a7bb4e9 into main Aug 14, 2026
6 checks passed
@nathanielsimard
nathanielsimard deleted the refactor/comptime-option-launch-derive branch August 14, 2026 18:21
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.

2 participants