GithubHelp home page GithubHelp logo

skimhugo / esbuild-rs Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wilsonzlin/esbuild-rs

1.0 0.0 0.0 2.6 MB

Rust wrapper for esbuild, an extremely fast JS minifier written in Go

Rust 100.00%

esbuild-rs's Introduction

esbuild-rs

Rust wrapper for esbuild using FFI and Cgo. esbuild is an extremely fast JavaScript minifier written in Go.

Using

This library requires Go 1.13 or higher. The Go source is included and compiled at build time. The build will not interfere with or create files in GOROOT or GOPATH, or download any Go dependencies.

Check the docs for the API.

Async

A fork of esbuild is used to allow taking advantage of the Go scheduler for optimal concurrency. Friendly functions that use Futures are available, which are suitable for most cases; for advanced usage, direct functions that take a callback and return immediately are also available, requiring additional concurrency management on top.

Windows

Since Cgo uses GCC, a GCC compiler is required to compile the Go library, even if the MSVC Rust toolchain is used. TDM-GCC is recommended.

If the msvc toolchain is used, this library will compile a DLL, embed it into the resulting Rust binary, and load it at runtime from memory using MemoryModule. This happens transparently at build time and run time, and requires no extra effort.

esbuild-rs's People

Contributors

qimiko avatar wilsonzlin avatar

Stargazers

 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.