Code Monkey home page Code Monkey logo

deprecated_rust_wasm_template's Introduction

DEPRECATED: Use rustwasm/wasm-pack-template for libraries and rustwasm/rust-webpack-template for webapps with webpack.

Rust ๐Ÿฆ€ and WebAssembly ๐Ÿ•ธ Template ๐Ÿ—

Build Status

This is a template to jump-start your Rust and WebAssembly project and let you hit the ground running.

๐Ÿ› What's Inside?

  • โœ” The latest wasm-bindgen for light and seamless bidirectional communication between Rust and JavaScript. Import JavaScript things into Rust and export Rust things to JavaScript.

  • โœ” Boilerplate for builds, optimizing, and post-processing:

    • โœ” Generates the JS interface to your .wasm binary with the appropriate wasm-bindgen invocation.

    • โœ” Runs wasm-opt to shrink the .wasm binary's code size and also speed it up at runtime.

    • โœ” Bundles your JS with Webpack.

  • โœ” Serve your .wasm and JS locally with Webpack's dev-server.

  • โœ” Better debugging with Rust panics forwarded to console.error.

  • โœ” Optionally use wee_alloc as the global allocator, to help keep your code size footprint small.

  • โœ” Boilerplate for writing #[test]s and #[bench]es for the native target.

  • โœ” Travis CI integration already set up. Make sure you never break your tests or your WebAssembly builds.

๐Ÿคธ Using this Template

First, install cargo-generate:

cargo install cargo-generate

Second, generate a new project with this repository as a template:

cargo-generate --git https://github.com/rustwasm/rust_wasm_template.git

Answer the prompts and then you should be good to go! Check out your new CONTRIBUTING.md for details on building and project organization.

Enabling Travis CI

The Travis CI configuration is 100% pre-configured, and all you need to do is enable CI for the repo on your profile page.

deprecated_rust_wasm_template's People

Contributors

acdha avatar alexcrichton avatar dependabot-support avatar dependabot[bot] avatar fitzgen avatar hockeybuggy avatar sendilkumarn avatar xtuc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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.