The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning. Learn more →
Top 23 Rust Compiler Projects
-
Another week, another dive into Rust. This time, we're delving into structs. Structs bear resemblance to interfaces in TypeScript, enabling the grouping of intricate data sets within an object, much like TypeScript/JavaScript. Rust also accommodates functions within these structs, offering a semblance of classes, albeit with distinctions. Let's delve into this topic.
-
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
-
First, we switched the default compiler for new projects from Babel to SWC (Speedy Web Compiler). SWC is dramatically faster than Babel and requires zero configuration. We’ll continue to support Babel in any project currently using it.
-
Project mention: Ask HN: What Underrated Open Source Project Deserves More Recognition? | news.ycombinator.com | 2024-03-07
-
-
-
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
-
-
Would you consider using some libraries in your project? There are lots of good ones in the Rust ecosystem, and many of them are not part of any existing browsers.
For example:
- https://github.com/servo/html5ever (HTML parsing - note: this is used in Servo)
- https://github.com/parcel-bundler/lightningcss (CSS parsing)
- https://github.com/DioxusLabs/taffy (web layout)
- https://github.com/pop-os/cosmic-text (text layout and rendering)
Obviously you should be free to work on whatever you like, but just as a benchmark on the scope of your project: I spent ~6 months implementing just the CSS Grid algorithm in Taffy last year. An entire browser from literal scratch is probably a 10 year project for one person.
-
leo
🦁 The Leo Programming Language. A Programming Language for Formally Verified, Zero-Knowledge Applications
-
melody
Melody is a language that compiles to regular expressions and aims to be more readable and maintainable
-
Project mention: Firefly – A new compiler and runtime for BEAM languages | /r/patient_hackernews | 2023-04-19
-
I've been using Rust and WASM for my latest front-end project, and I think this setup is a viable alternative to commonly used JS frameworks for those willing to put in some effort to ramp up on new technology. Addressing the concerns from the article:
"No universal import system" - Rust has it's own module system and Cargo is used for managing dependencies, no need to worry about different module systems.
"Layers of minification, uglification, and transpilation." Just compile Rust to WASM file for the browser, same as using any other compile target.
"Wildly different environments." Something that you'll still need to deal with. Some runtime dependencies are system-specific (code running on the browser usually needs access to Web APIs, and JavaScript, code running on the server can't access WebAPIs but can access the system clock and filesystem. Sometimes separate libraries or separate runtime configs are needed (e.g. configurable time source)
"Overemphasis on file structure." Not a problem for imports, but you may still have file structure dependencies things like CSS, image resources etc.
"Configuration hell." Pretty much non-existent once you have your Rust compiler setup locally.
"Development parity." Just use trunk: https://trunkrs.dev/, to watch, build and serve, config is minimal.
-
Project mention: Gluon is a static, type inferred and embeddabble language written in Rust | news.ycombinator.com | 2023-07-01
-
-
ezno
A JavaScript compiler and TypeScript checker written in Rust with a focus on static analysis and runtime performance
Project mention: Ezno's checker (Rust based type checker and compiler) is now open source | /r/typescript | 2023-06-08 -
-
Project mention: What languages have the best error message rendering styles in the terminal? | /r/ProgrammingLanguages | 2023-07-12
To complement, Nushell's error rendering is done with miette (whose name is a reference to this cute meme AFAIK). There is also another notable Rust error rendering lib: ariadne. So you can get the same beautiful error rendering in your own projects :D
-
Windows is supported. See https://github.com/rust-lang/rustc_codegen_cranelift/issues/....
-
Project mention: Pavex DevLog #5: redesigning our runtime types [Rust web framework] | /r/rust | 2023-06-29
The update goes into the details of the rationale driving the new design choices, which might of interest if you use or design web frameworks. The project is developed in the open on GitHub if you want to have a look under the hood.
-
-
KCL: A declarative configuration and policy programming language implemented by Rust, which improves the writing of a large number of complex configurations through mature programming language technology and practice, and is committed to building better modularity, scalability and stability around configuration, simpler logic writing, fast automation and good ecological extensionally.
-
tao
A statically-typed functional language with generics, typeclasses, sum types, pattern-matching, first-class functions, currying, algebraic effects, associated types, good diagnostics, etc. (by zesterer)
Project mention: What backwards-incompatible changes would you make in a hypothetical Rust 2.0? | /r/rust | 2023-04-19If you want some prior work on this, I've implemented effect-objects-as-return-values in my own language Tao, using uniqueness types. There's still work to be done, but I think it's sufficient as a proof of concept that this approach is viable without type soup.
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
Rust Compiler related posts
- Cranelift code generation comes to Rust
- Learning Rust: Structuring Data with Structs
- Algorithms for Modern Hardware
- What part of Rust compilation is the bottleneck?
- Rust: Actix-web and Daily Logging
- Learning Rust: Looking at Ownership
- Dada, an Experiement by the Creators of Rust
-
A note from our sponsor - WorkOS
workos.com | 19 Mar 2024
Index
What are some of the best open-source Compiler projects in Rust? This list will help you:
Project | Stars | |
---|---|---|
1 | rust | 91,688 |
2 | sway | 60,543 |
3 | swc | 29,719 |
4 | typst | 26,888 |
5 | RustPython | 17,361 |
6 | gleam | 13,107 |
7 | oxc | 8,348 |
8 | rspack | 7,111 |
9 | lightningcss | 5,757 |
10 | leo | 4,724 |
11 | melody | 4,587 |
12 | lumen | 3,556 |
13 | trunk | 3,099 |
14 | gluon | 3,076 |
15 | erg | 2,505 |
16 | ezno | 2,090 |
17 | ante | 1,811 |
18 | ariadne | 1,524 |
19 | rustc_codegen_cranelift | 1,388 |
20 | pavex | 1,367 |
21 | solang | 1,180 |
22 | kcl | 1,171 |
23 | tao | 1,057 |