-
Notifications
You must be signed in to change notification settings - Fork 248
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: remove conditional compilation around
acvm_js
package (#4702)
# Description ## Problem\* Resolves <!-- Link to GitHub Issue --> ## Summary\* We previously had acvm_js wrapped in a big conditional compilation statement which shortcircuited it if it wasn't building for a wasm architecture. This isn't ideal as it prevents a lot of IDE LSP features from working and it shouldn't be necessary (as shown by the other wasm packages). I've then removed this and fixed any issues caused as a result. ## Additional Context ## Documentation\* Check one: - [x] No documentation needed. - [ ] Documentation included in this PR. - [ ] **[For Experimental Features]** Documentation to be submitted in a separate PR. # PR Checklist\* - [x] I have tested the changes locally. - [x] I have formatted the changes with [Prettier](https://prettier.io/) and/or `cargo fmt` on default settings.
- Loading branch information
1 parent
07af567
commit a6c2c9f
Showing
7 changed files
with
36 additions
and
38 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,26 @@ | ||
#![forbid(unsafe_code)] | ||
#![warn(unreachable_pub)] | ||
#![warn(clippy::semicolon_if_nothing_returned)] | ||
#![cfg_attr(not(test), warn(unused_crate_dependencies, unused_extern_crates))] | ||
|
||
// TODO: Absence of per package targets | ||
// https://doc.rust-lang.org/cargo/reference/unstable.html#per-package-target | ||
// otherwise could be reorganized to make this file more pretty. | ||
mod black_box_solvers; | ||
mod build_info; | ||
mod compression; | ||
mod execute; | ||
mod foreign_call; | ||
mod js_execution_error; | ||
mod js_witness_map; | ||
mod logging; | ||
mod public_witness; | ||
|
||
cfg_if::cfg_if! { | ||
if #[cfg(target_arch = "wasm32")] { | ||
mod build_info; | ||
mod compression; | ||
mod execute; | ||
mod foreign_call; | ||
mod js_witness_map; | ||
mod logging; | ||
mod public_witness; | ||
mod js_execution_error; | ||
mod black_box_solvers; | ||
|
||
pub use black_box_solvers::{and, xor, sha256, blake2s256, keccak256, ecdsa_secp256k1_verify, ecdsa_secp256r1_verify}; | ||
pub use build_info::build_info; | ||
pub use compression::{compress_witness, decompress_witness}; | ||
pub use execute::{execute_circuit, execute_circuit_with_black_box_solver, create_black_box_solver}; | ||
pub use js_witness_map::JsWitnessMap; | ||
pub use logging::init_log_level; | ||
pub use public_witness::{get_public_parameters_witness, get_public_witness, get_return_witness}; | ||
pub use js_execution_error::JsExecutionError; | ||
} | ||
} | ||
pub use black_box_solvers::{ | ||
and, blake2s256, ecdsa_secp256k1_verify, ecdsa_secp256r1_verify, keccak256, sha256, xor, | ||
}; | ||
pub use build_info::build_info; | ||
pub use compression::{compress_witness, decompress_witness}; | ||
pub use execute::{ | ||
create_black_box_solver, execute_circuit, execute_circuit_with_black_box_solver, | ||
}; | ||
pub use js_execution_error::JsExecutionError; | ||
pub use js_witness_map::JsWitnessMap; | ||
pub use logging::init_log_level; | ||
pub use public_witness::{get_public_parameters_witness, get_public_witness, get_return_witness}; |
This file contains 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
This file contains 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