
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
@hirosystems/clarinet-sdk-wasm
Advanced tools
This component exposes Clarinet features to a JS interface through wasm-bindgen.
It's built with wasm-pack.
It powers @hirosystems/clarinet-sdk and
@hirosystems/clarinet-sdk-browser.
Install wasm-pack.
Build for node
wasm-pack build --release --scope hirosystems --out-dir pkg-node --target nodejs
Build for the browser
wasm-pack build --release --scope hirosystems --out-dir pkg-browser --target web
Run this script to build both versions:
node build.mjs
In most of the situations, your project won't directly depend on this package, but instead on
@hirosystems/clarinet-sdk
or @hirosystems/clarinet-sdk-browser
. If you want to use a local or
a different version of @hirosystems/clarinet-sdk-wasm
or @hirosystems/clarinet-sdk-wasm-browser
,
you can use the overrides
setting in your package.json:
"overrides": {
"@hirosystems/clarinet-sdk": {
"@hirosystems/clarinet-sdk-wasm": "file:/<absolue-path-to>/clarinet/components/clarinet-sdk-wasm/pkg-node"
}
}
Or for the browser:
"overrides": {
"@hirosystems/clarinet-sdk-browser": {
"@hirosystems/clarinet-sdk-wasm-browser": "file:/<absolue-path-to>/clarinet/components/clarinet-sdk-wasm/pkg-browser"
}
}
The command npm link
can be useful to run the unit tests in the clarinet-sdk
.
See the contribution section of @hirosystems/clarinet-sdk
(`../clarinet-sdk/README.md).
The package is built twice with wasm-pack
as it can't target node
and web
at the same time.
The following script will build for both target, it will also rename the package name for the
browser build.
cd components/clarinet-sdk-wasm
node build.mjs
Once built, the packages can be released by running the following commands. Note that by default we release with the beta tag.
cd pkg-node && npm publish --tag beta && cd ..
cd pkg-browser && npm publish --tag beta && cd ..
FAQs
The core lib that powers @hirosystems/clarinet-sdk
The npm package @hirosystems/clarinet-sdk-wasm receives a total of 973 weekly downloads. As such, @hirosystems/clarinet-sdk-wasm popularity was classified as not popular.
We found that @hirosystems/clarinet-sdk-wasm demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.