Giter Site home page Giter Site logo

abnercosta / deno_rust_wasm Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wioswitch/deno_rust_wasm

0.0 1.0 0.0 9 KB

This shows how you can import Rust WASM files into Deno to speed things up greatly.

License: MIT License

TypeScript 81.78% Rust 18.22%

deno_rust_wasm's Introduction

deno_rust_wasm

This shows how you can import Rust WASM files into Deno to speed things up greatly.

// Installation

  1. Install rust. a. Go to https://www.rust-lang.org/tools/install. b. Copy install script. c. Run script on machine.

  2. Install wasm-pack a. Go to https://rustwasm.github.io/wasm-pack/installer/ b. Copy install script c. Run on machine

// Build rwasm

  1. cd into rwasm directory.
  2. Run "wasm-pack buld".

// Run server

  1. deno run --allow-net --allow-read app.ts

// Test server

  1. Deno: curl -d '{"type":"deno","rounds":46340}' -H 'Content-Type: application/json' http://localhost:8000/api
  2. Rust: curl -d '{"type":"rust","rounds":46340}' -H 'Content-Type: application/json' http://localhost:8000/api

deno_rust_wasm's People

Contributors

ewong avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.