Skip to content

Commit

Permalink
revert crate-type change and add a comment
Browse files Browse the repository at this point in the history
  • Loading branch information
altkdf committed Jun 5, 2024
1 parent 65119cb commit 62fc489
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ resolver = "2"

[lib]
name = "schnorr_canister"
crate-type = ["lib"]
crate-type = ["rlib", "cdylib"]

[dependencies]
bip32 = { version = "0.5.1", features = ["k256"] }
Expand Down
4 changes: 3 additions & 1 deletion tests/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,9 @@ fn load_schnorr_canister_wasm() -> Vec<u8> {
use std::io::prelude::*;

let wasm_path = Path::new("./target/wasm32-unknown-unknown/release/schnorr_canister.wasm");
let wasm_bytes = std::fs::read(wasm_path).expect("wasm does not exist");
let wasm_bytes = std::fs::read(wasm_path).expect(
"wasm does not exist - run `cargo build --release --target wasm32-unknown-unknown`",
);

let mut e = GzEncoder::new(Vec::new(), Compression::default());
e.write_all(wasm_bytes.as_slice()).unwrap();
Expand Down

0 comments on commit 62fc489

Please sign in to comment.