wasm-bindgen-cli: init at 0.2.51
CLI for `wasm-bindgen`, a tool that helps to interact between WASM modules written in Rust and JS-Code. This contains only the CLI[1], the libraries are usually included via `Cargo.toml` in a project. Co-authored-by: Fabian Möller <fabianm88@gmail.com> [1] https://crates.io/crates/wasm-bindgen-cli
This commit is contained in:
parent
1737cd07ca
commit
9bffa5a6a5
3 changed files with 2272 additions and 0 deletions
File diff suppressed because it is too large
Load diff
28
pkgs/development/tools/wasm-bindgen-cli/default.nix
Normal file
28
pkgs/development/tools/wasm-bindgen-cli/default.nix
Normal file
|
@ -0,0 +1,28 @@
|
|||
{ rustPlatform, fetchFromGitHub, lib, openssl, pkgconfig, stdenv, curl, Security, ... }:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "wasm-bindgen-cli";
|
||||
version = "0.2.51";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "rustwasm";
|
||||
repo = "wasm-bindgen";
|
||||
rev = version;
|
||||
sha256 = "1pfkwak11k3ghvv985c20vhg4cyvf131a1f7k3sv5snw2klww7vm";
|
||||
};
|
||||
|
||||
buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [ Security curl ];
|
||||
nativeBuildInputs = [ pkgconfig ];
|
||||
|
||||
cargoSha256 = "06zk2yzwpl569q5mgn56gprsfxxvyz4a2i949lls13daq1kal5pa";
|
||||
cargoPatches = [ ./0001-Add-cargo.lock-for-rustPlatform.buildRustPackage-in-.patch ];
|
||||
cargoBuildFlags = [ "-p" pname ];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = https://rustwasm.github.io/docs/wasm-bindgen/;
|
||||
license = licenses.asl20;
|
||||
description = "Facilitating high-level interactions between wasm modules and JavaScript";
|
||||
maintainers = with maintainers; [ ma27 ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
|
@ -6886,6 +6886,10 @@ in
|
|||
wasm-text-gen = nodePackages."@webassemblyjs/wasm-text-gen";
|
||||
wast-refmt = nodePackages."@webassemblyjs/wast-refmt";
|
||||
|
||||
wasm-bindgen-cli = callPackage ../development/tools/wasm-bindgen-cli {
|
||||
inherit (darwin.apple_sdk.frameworks) Security;
|
||||
};
|
||||
|
||||
welkin = callPackage ../tools/graphics/welkin {};
|
||||
|
||||
wf-recorder = callPackage ../applications/video/wf-recorder { };
|
||||
|
|
Loading…
Reference in a new issue