Skip to content
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

[Draft] Network retriever module #3374

Merged
merged 25 commits into from
Dec 2, 2023
Merged
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
1b9ac65
mess
evan-schott Oct 19, 2023
8b28c16
Add retriever module
evan-schott Nov 3, 2023
551eb1e
Examples
evan-schott Nov 3, 2023
1aac5ef
Retriever module
evan-schott Nov 3, 2023
26ff2b5
Change disassembler structure
evan-schott Nov 3, 2023
da1419c
Compiler::new() changes
evan-schott Nov 3, 2023
c7d3cf9
Test CLI build command
evan-schott Nov 3, 2023
650d47f
Integrate network retrieval to build system
evan-schott Nov 3, 2023
c44949c
Add new errors
evan-schott Nov 3, 2023
cd3ae36
Clippy fix
evan-schott Nov 3, 2023
3ff41db
Default trait for stubs
evan-schott Nov 3, 2023
184c2f5
Print imports in post order
evan-schott Nov 3, 2023
d5cbd8e
Modify compiler struct
evan-schott Nov 3, 2023
bb960bf
Merge dependencies stated in `program.json` w/ dependencies stated in…
evan-schott Nov 3, 2023
3695ac6
clippy
evan-schott Nov 3, 2023
a55e5e4
post rebase patches
evan-schott Nov 4, 2023
babac66
Working example in . Run test in and to see it in action
evan-schott Nov 4, 2023
931698f
Working example in `utils/tmp/nested`. Run test in `cli.rs` and `retr…
evan-schott Nov 4, 2023
3564389
add proper error checking
evan-schott Nov 8, 2023
b7e6bca
versioning update
evan-schott Dec 2, 2023
51dd617
return stubs in post order from retrieval module
evan-schott Dec 2, 2023
4b3b198
reorganization of errors
evan-schott Dec 2, 2023
94b3290
remove leftover traces of previous import system
evan-schott Dec 2, 2023
20a4278
allow functions to have empty blocks
evan-schott Dec 2, 2023
db20544
merge `program.json` and `.leo` dependencies in `compiler.rs`
evan-schott Dec 2, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add new errors
evan-schott committed Dec 1, 2023
commit c44949ce3d4b02763ed378ff376d72421ae178d5
2 changes: 2 additions & 0 deletions errors/Cargo.toml
Original file line number Diff line number Diff line change
@@ -43,3 +43,5 @@ features = [ "derive", "rc" ]

[dependencies.thiserror]
version = "1.0.49"
[dependencies]
reqwest = "0.11.22"
30 changes: 30 additions & 0 deletions errors/src/errors/cli/cli_errors.rs
evan-schott marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -178,4 +178,34 @@ create_messages!(
msg: format!("Failed to write file.\nIO Error: {error}"),
help: None,
}

@backtraced
reqwest_error {
args: (error: impl Display),
msg: format!("{}", error),
help: None,
}

@backtraced
failed_to_open_file {
args: (error: impl Display),
msg: format!("Failed to open file {error}"),
help: None,
}

@backtraced
failed_to_read_file {
args: (error: impl Display),
msg: format!("Failed to read file {error}"),
help: None,
}

@backtraced
failed_to_deserialize_file {
args: (error: impl Display),
msg: format!("Failed to deserialize file {error}"),
help: None,
}


);
6 changes: 3 additions & 3 deletions errors/src/errors/parser/parser_errors.rs
Original file line number Diff line number Diff line change
@@ -215,10 +215,10 @@ create_messages!(
}

@formatted
leo_imports_only {
leo_and_aleo_imports_only {
args: (),
msg: "Invalid import call to non-leo file.",
help: Some("Only imports of Leo `.leo` files are currently supported.".to_string()),
msg: "Invalid import call to non-leo non-aleo file.",
help: Some("Only imports of Leo `.leo` and Aleo `.aleo` files are currently supported.".to_string()),
}

@formatted