Imports Support#95
Open
LesterEvSe wants to merge 10 commits into
Open
Conversation
667340e to
4084ed0
Compare
4084ed0 to
3cab2bd
Compare
Arvolear
reviewed
Jun 12, 2026
Arvolear
reviewed
Jun 12, 2026
Arvolear
reviewed
Jun 12, 2026
Arvolear
reviewed
Jun 12, 2026
Arvolear
reviewed
Jun 12, 2026
3cab2bd to
e509d10
Compare
Arvolear
reviewed
Jun 15, 2026
Arvolear
reviewed
Jun 15, 2026
Arvolear
reviewed
Jun 15, 2026
Arvolear
reviewed
Jun 15, 2026
Arvolear
reviewed
Jun 15, 2026
Arvolear
reviewed
Jun 15, 2026
Arvolear
reviewed
Jun 15, 2026
Arvolear
reviewed
Jun 15, 2026
Arvolear
reviewed
Jun 15, 2026
Arvolear
reviewed
Jun 15, 2026
Arvolear
reviewed
Jun 15, 2026
Arvolear
reviewed
Jun 15, 2026
Arvolear
reviewed
Jun 16, 2026
Arvolear
reviewed
Jun 16, 2026
Arvolear
reviewed
Jun 16, 2026
Arvolear
reviewed
Jun 16, 2026
Arvolear
reviewed
Jun 16, 2026
Arvolear
reviewed
Jun 16, 2026
Arvolear
reviewed
Jun 16, 2026
Arvolear
reviewed
Jun 16, 2026
Arvolear
reviewed
Jun 16, 2026
Arvolear
reviewed
Jun 16, 2026
| #[command(flatten)] | ||
| flags: TestFlags, | ||
| }, | ||
| /// Install the simplicity dependency |
Member
There was a problem hiding this comment.
Suggested change
| /// Install the simplicity dependency | |
| /// Installs a SimplicityHL dependency (requires the dep to be a Simplex project) |
Arvolear
reviewed
Jun 16, 2026
Comment on lines
+86
to
+87
| } | ||
| installed_repos.push(target_dir.clone()); |
Member
There was a problem hiding this comment.
Suggested change
| } | |
| installed_repos.push(target_dir.clone()); | |
| } | |
| installed_repos.push(target_dir.clone()); |
Arvolear
reviewed
Jun 16, 2026
| /// - `Some(PathBuf)` when a repository name can be extracted from the URL. | ||
| /// - `None` when the URL is empty or malformed such that no repository name | ||
| /// can be determined. | ||
| pub fn generate_hashed_repo_path(url: &str) -> Option<PathBuf> { |
Member
There was a problem hiding this comment.
Let's move this function to resolver and rename it to resolve_hashed_repo_path.
Arvolear
reviewed
Jun 16, 2026
| /// A temporary context struct to hold global state during recursion. | ||
| /// This eliminates the need to pass `builder`, `visited`, and `config_filename` | ||
| /// into every single recursive call. | ||
| struct DepCollector { |
Member
There was a problem hiding this comment.
Let's move this to a separate file and change the interface a bit. Add a pub collect function that calls rec_collect and handles visiting logic internally.
Arvolear
reviewed
Jun 16, 2026
Comment on lines
+191
to
+192
| let nested_deps = DependencyConfig::from_source(&config_source)?; | ||
| self.rec_collect(&nested_deps, &loaded_simf_dir, &loaded_context)?; |
Member
There was a problem hiding this comment.
Suggested change
| let nested_deps = DependencyConfig::from_source(&config_source)?; | |
| self.rec_collect(&nested_deps, &loaded_simf_dir, &loaded_context)?; | |
| let nested_deps = DependencyConfig::from_source(&config_source)?; | |
| self.rec_collect(&nested_deps, &loaded_simf_dir, &loaded_context)?; |
Arvolear
reviewed
Jun 16, 2026
Comment on lines
+80
to
+81
| config.dependencies.validate()?; | ||
| Ok(()) |
Member
There was a problem hiding this comment.
Suggested change
| config.dependencies.validate()?; | |
| Ok(()) | |
| config.dependencies.validate()?; | |
| Ok(()) |
Arvolear
reviewed
Jun 16, 2026
| @@ -0,0 +1,3 @@ | |||
| pub fn hash(x: u32, y: u32) -> u32 { | |||
| jet::xor_32(x, y) | |||
| } No newline at end of file | |||
Arvolear
reviewed
Jun 16, 2026
| @@ -0,0 +1 @@ | |||
| pub use hl_compiler::simple_op::hash; No newline at end of file | |||
Member
There was a problem hiding this comment.
Suggested change
| pub use hl_compiler::simple_op::hash; | |
| pub use hl_compiler::simple_op::hash; | |
Arvolear
reviewed
Jun 16, 2026
| fn main() { | ||
| jet::bip_0340_verify((param::PUBLIC_KEY, jet::sig_all_hash()), witness::SIGNATURE) | ||
| } | ||
| } No newline at end of file |
Arvolear
reviewed
Jun 16, 2026
| @@ -1 +1 @@ | |||
| src/artifacts | |||
| src/artifacts No newline at end of file | |||
Member
There was a problem hiding this comment.
Suggested change
| src/artifacts | |
| src/artifacts | |
Arvolear
reviewed
Jun 16, 2026
Arvolear
reviewed
Jun 16, 2026
| let output_dir = ArtifactsResolver::resolve_local_dir(&config.out_dir)?; | ||
| let src_dir = ArtifactsResolver::resolve_local_dir(&config.src_dir)?; | ||
|
|
||
| // NOTE: Assume that remappings already install |
Member
There was a problem hiding this comment.
Suggested change
| // NOTE: Assume that remappings already install | |
| // NOTE: Assumes that remappings are already installed |
Arvolear
reviewed
Jun 16, 2026
| // NOTE: Assume that remappings already install | ||
| let dependency_builder = ArtifactsResolver::resolve_remappings(deps, CONFIG_FILENAME)?; | ||
|
|
||
| // TODO: For all remappings need to check `files_to_build` and concatenate it to `Vec<Path>` |
Member
There was a problem hiding this comment.
Suggested change
| // TODO: For all remappings need to check `files_to_build` and concatenate it to `Vec<Path>` |
Arvolear
reviewed
Jun 16, 2026
|
|
||
| electrsd = { version = "0.29.0", features = ["legacy"] } | ||
| simplicityhl = { version = "0.5.0" } | ||
| # simplicityhl = { version = "0.5.0" } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Replaces #69. Now that SimplicityHL natively supports flattening (PR #337) functionality, it made more sense to rewrite this implementation from scratch in a clean PR rather than trying to salvage and rebase the old one