GithubHelp home page GithubHelp logo

sendilkumarn / rust_wasm_template Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rustwasm/deprecated_rust_wasm_template

0.0 3.0 0.0 31 KB

A template for jump-starting Rust and WebAssembly projects!

License: Apache License 2.0

Rust 26.60% Shell 64.70% HTML 2.75% JavaScript 5.94%

rust_wasm_template's Introduction

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

Clone the template repository:

git clone https://github.com/rustwasm/rust_wasm_template.git my_awesome_project

Replace all the references to the rustwasm github organization with your github username or organization:

git ls-files | xargs sed -i -e 's/rustwasm/my_github_username/g'

Replace all the references to the rust_wasm_template and replace them with my_awesome_project or whatever your awesome project is called:

git ls-files | xargs sed -i -e 's/rust_wasm_template/my_awesome_project/g'

For more details on building and testing, see CONTRIBUTING.md.

Enabling Travis CI

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

rust_wasm_template's People

Contributors

fitzgen avatar xtuc avatar

Watchers

 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.