Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add
miden-package
crate withPackage
type to represent a compiled Miden program/library. #1544base: next
Are you sure you want to change the base?
Add
miden-package
crate withPackage
type to represent a compiled Miden program/library. #1544Changes from 12 commits
759eed6
9360362
1358e28
ca9bf14
82a7d5f
809bda9
2920963
919bfec
9e3948c
b1354c1
8aae530
ebc8311
4d031dd
15dfc12
ae31949
2d65242
cc88636
86d8974
7e37745
43e0a83
ab26b55
ad3e722
3cd2d1b
72b700e
a93f3a2
8b60a31
37fe048
e3fa250
a1b44a7
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we expand the comment a bit here to explain what the code below is intending to cover? My understanding is:
If
path
is not a validLibraryPath
, we try to take the first "leg" of the path and use it as a namespace and the rest of the string as the module name. And if there is no first "leg", then we useAnon
namespace and try to use the wholepath
as the module name.If the above is correct, it is not clear to me what exactly we are trying to enable here. It seems like maybe we want to make sure that a path with no namespaces get
Anon
namespace? If so, could we simplify the code as: