-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature(cargo-miden): support building Wasm component from a Cargo pr…
…oject
- Loading branch information
Showing
30 changed files
with
1,198 additions
and
1,111 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
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
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
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
/target |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
[package] | ||
name = "basic_wallet" | ||
version = "0.1.0" | ||
edition = "2021" | ||
|
||
[lib] | ||
# Build this crate as a self-contained, C-style dynamic library | ||
# This is required to emit the proper Wasm module type | ||
crate-type = ["cdylib"] | ||
|
||
[dependencies] | ||
# Miden SDK consists of a stdlib (intrinsic functions for VM ops, stdlib functions and types) | ||
# and transaction kernel API for the Miden rollup | ||
miden-sdk = { path = "../../../../sdk/sdk" } | ||
wit-bindgen-rt = "0.28" | ||
|
||
|
||
[profile.release] | ||
# optimize the output for size | ||
opt-level = "z" | ||
# Explicitly disable panic infrastructure on Wasm, as | ||
# there is no proper support for them anyway, and it | ||
# ensures that panics do not pull in a bunch of standard | ||
# library code unintentionally | ||
panic = "abort" | ||
|
||
[profile.dev] | ||
# Explicitly disable panic infrastructure on Wasm, as | ||
# there is no proper support for them anyway, and it | ||
# ensures that panics do not pull in a bunch of standard | ||
# library code unintentionally | ||
panic = "abort" | ||
opt-level = 1 | ||
debug-assertions = false | ||
overflow-checks = false | ||
debug = true | ||
|
||
# TODO: switch to miden table | ||
[package.metadata.component] | ||
package = "miden:basic-wallet" | ||
|
||
[package.metadata.component.target.dependencies] | ||
"miden:base" = { path = "wit-sdk" } |
Oops, something went wrong.