Skip to content
This repository has been archived by the owner on Sep 9, 2024. It is now read-only.

Commit

Permalink
simplify project structure
Browse files Browse the repository at this point in the history
Signed-off-by: Dominic Woerner <dominic.woerner@dfinity.org>
  • Loading branch information
domwoe committed Dec 19, 2023
1 parent 6a42a92 commit f4ab2ed
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 28 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 18 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,18 @@
[workspace]
members = [
"src/schnorr_canister_backend",
]
[package]
name = "schnorr_canister"
version = "0.1.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[lib]
crate-type = ["cdylib"]

[dependencies]
bip32 = { "version" = "0.5.1", features = ["k256"] }
candid = "0.10.1"
ic-cdk = "0.12.0"
ic-stable-structures = "0.6"
getrandom = { version = "0.2.11", features = ["custom"] }
k256 = { "version" = "0.13.2", features = ["schnorr"] }
serde = "1"
4 changes: 2 additions & 2 deletions deploy.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
cargo build --release --target wasm32-unknown-unknown --package schnorr_canister_backend
candid-extractor target/wasm32-unknown-unknown/release/schnorr_canister_backend.wasm > src/schnorr_canister_backend/schnorr_canister_backend.did
cargo build --release --target wasm32-unknown-unknown --package schnorr_canister
candid-extractor target/wasm32-unknown-unknown/release/schnorr_canister.wasm > schnorr_canister.did
dfx deploy
11 changes: 8 additions & 3 deletions dfx.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
{
"canisters": {
"schnorr_canister_backend": {
"candid": "src/schnorr_canister_backend/schnorr_canister_backend.did",
"package": "schnorr_canister_backend",
"type": "rust"
"candid": "schnorr_canister.did",
"package": "schnorr_canister",
"type": "rust",
"pullable": {
"dependencies": [],
"wasm_url": "https://github.com/domwoe/pullable/releases/latest/download/schnorr_canister.wasm",
"init_guide": "Call method `init_key` after installation."
}
}
},
"output_env_file": ".env",
Expand Down
File renamed without changes.
File renamed without changes.
18 changes: 0 additions & 18 deletions src/schnorr_canister_backend/Cargo.toml

This file was deleted.

0 comments on commit f4ab2ed

Please sign in to comment.