-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from mpizenberg/main
Update the wasm wrapper of aiken/uplc to the conway era
- Loading branch information
Showing
5 changed files
with
110 additions
and
74 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -2,9 +2,9 @@ name: Rust | |
|
||
on: | ||
push: | ||
branches: [ "main" ] | ||
branches: ["main"] | ||
pull_request: | ||
branches: [ "main" ] | ||
branches: ["main"] | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
|
@@ -20,13 +20,13 @@ jobs: | |
steps: | ||
- uses: jetli/[email protected] | ||
with: | ||
version: 'latest' | ||
- uses: actions/checkout@v3 | ||
version: "latest" | ||
- uses: actions/checkout@v4 | ||
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }} | ||
- run: ./build.sh | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: my-artifact | ||
path: | | ||
pkg-node | ||
pkg-web | ||
pkg-web |
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 |
---|---|---|
@@ -1,23 +1,29 @@ | ||
[package] | ||
name = "uplc-wrapper" | ||
version = "0.0.1" | ||
name = "uplc-wasm" | ||
version = "0.1.0" | ||
edition = "2021" | ||
|
||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
description = "A WebAssembly (wasm) wrapper for the uplc crate" | ||
repository = "https://github.com/mpizenberg/uplc-wasm" | ||
license = "Apache-2.0" | ||
keywords = ["cardano", "wasm", "uplc"] | ||
categories = ["algorithms"] | ||
|
||
[lib] | ||
crate-type = ["cdylib"] | ||
|
||
[dependencies] | ||
error = "0.1.9" | ||
uplc = { git = "https://github.com/aiken-lang/aiken.git"} | ||
wasm-bindgen = "0.2.89" | ||
k256 = { version = "0.13.0" } | ||
js-sys = "0.3.61" | ||
uplc = { git = "https://github.com/aiken-lang/aiken.git" } | ||
wasm-bindgen = "0.2.93" | ||
js-sys = "0.3.70" | ||
wee_alloc = "0.4.5" | ||
# required for wasm usage of getrandom | ||
getrandom = { version = "0.2", features = ["js"] } | ||
|
||
[profile.release] | ||
codegen-units = 1 | ||
opt-level = "z" | ||
lto = true | ||
debug = false | ||
debug = false | ||
|
||
[package.metadata.wasm-pack.profile.release] | ||
wasm-opt = ['-Oz'] |
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,7 +1,5 @@ | ||
rm -rf pkg | ||
rm -rf pkg-node | ||
rm -rf pkg-web | ||
wasm-pack build -t nodejs | ||
rm -rf pkg pkg-node pkg-web | ||
wasm-pack build --target nodejs | ||
mv pkg pkg-node | ||
wasm-pack build | ||
mv pkg pkg-web | ||
wasm-pack build --target web | ||
mv pkg pkg-web |
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