Skip to content

Extract dag into a separate waymark-dag crate [1 / 4]#180

Merged
piercefreeman merged 2 commits intopiercefreeman:mainfrom
MOZGIII:extract-dag
Feb 24, 2026
Merged

Extract dag into a separate waymark-dag crate [1 / 4]#180
piercefreeman merged 2 commits intopiercefreeman:mainfrom
MOZGIII:extract-dag

Conversation

@MOZGIII
Copy link
Collaborator

@MOZGIII MOZGIII commented Feb 18, 2026

This PR utilizes the work started at #179 and extracts the dag into a separate crate.

To review changes in this PR only go here: https://github.com/piercefreeman/waymark/pull/180/changes

Now we can clearly see that dag has no dependencies on i/o (besides, maybe, std i/o) or tokio - thus it is easy to conclude it consists only of dag types and related conversions.

In the further work we could further split these two modules into dag-core (as in holds only the core types) and dag-coverter (some logic on top of core types); this kind of organization is easy to reason about.

Another potential future improvement is to split the ast (aka ir) waymark-proto into an waymark-proto-ast package.

This work also unlocks extracting backends base into a separate crate, since they depend on dag. It does not need the converter - only the dag types themselves - so this is where we'll see the benefit from dag-core / dag-converter split in the future

@MOZGIII MOZGIII changed the title Add a dedicated waymark-proto crate [2/2] Extract dag into a separate waymark-dag crate [2/2] Feb 18, 2026
@piercefreeman
Copy link
Owner

@MOZGIII Might have to rebase for this one, otherwise looks good to me.

@MOZGIII MOZGIII marked this pull request as ready for review February 19, 2026 08:48
@MOZGIII
Copy link
Collaborator Author

MOZGIII commented Feb 19, 2026

Rebased, ready to go

@MOZGIII MOZGIII changed the title Extract dag into a separate waymark-dag crate [2/2] Extract dag into a separate waymark-dag crate Feb 21, 2026
@MOZGIII MOZGIII changed the title Extract dag into a separate waymark-dag crate Extract dag into a separate waymark-dag crate [1 / 4] Feb 22, 2026
@piercefreeman piercefreeman merged commit 6c4b48d into piercefreeman:main Feb 24, 2026
14 of 15 checks passed
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