Skip to content

add modules support#1

Merged
KyrylR merged 5 commits into
BlockstreamResearch:masterfrom
gerau:feat/modules-support
Jul 2, 2026
Merged

add modules support#1
KyrylR merged 5 commits into
BlockstreamResearch:masterfrom
gerau:feat/modules-support

Conversation

@gerau

@gerau gerau commented May 21, 2026

Copy link
Copy Markdown
Collaborator

Partially closes #2.

This PR does several things:

  • add the linearization_map field to Document so we can get info about functions from outside the given file.
  • refactor Document: move functions that perform operations with SimplicityHL Functions inside the Document implementation, because it makes more sense and uses the new linearization_map.
  • remove jet::documentation because we already moved the documentation inside the compiler itself.
  • make the necessary changes to parsing and LSP functions to support multi-file architecture.

Right now, all LSP functions are working except for references, because we need to find a way to support references from modules to the files that use these modules. Also, I think multi-file support could be done better.

Draft for now, because it uses a custom fork of SimplicityHL with public visibility of DependencyMap and Module.

@gerau gerau changed the base branch from main to master May 26, 2026 09:00
@gerau gerau force-pushed the feat/modules-support branch 5 times, most recently from ea58ef1 to 843bf67 Compare June 22, 2026 10:06
@gerau gerau force-pushed the feat/modules-support branch 3 times, most recently from 4d57f61 to 5a442a2 Compare June 30, 2026 09:53
@gerau

gerau commented Jun 30, 2026

Copy link
Copy Markdown
Collaborator Author

bump version to 0.6.0 to match simplicityhl minor version

@gerau gerau force-pushed the feat/modules-support branch from 5a442a2 to 56a0a4a Compare June 30, 2026 10:36
@gerau gerau marked this pull request as ready for review June 30, 2026 10:39
@gerau gerau force-pushed the feat/modules-support branch 3 times, most recently from 48e364c to 0620cb7 Compare July 1, 2026 10:25
gerau added 5 commits July 1, 2026 13:46
run cargo update psm --precise 0.1.28 to downgrade ar-archive-writer, so
it would compile on rust 1.85
It's constantly throwing errors to an client if there are document are
not builded, so it's better to silently fail here
@gerau gerau force-pushed the feat/modules-support branch from 0620cb7 to 179f73c Compare July 1, 2026 10:46

@KyrylR KyrylR left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK 179f73c; code review

@KyrylR KyrylR merged commit 7a26673 into BlockstreamResearch:master Jul 2, 2026
9 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.

implement modules support

2 participants