
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Rust does not presently have a Read Eval Print Loop (REPL) that allows interactive usage of the language on-the-fly without the need to write full programs. Or rather, Rust does ship a REPL, but it's broken and won't be fixed until Rust natively supports JIT compilation.
iRust is a Ruby-powered band-aid of a Rust REPL that shells out to the Rust compiler for you and lets you use the language semi-interactively. It's not great, but if you're looking for a way to play around with Rust quickly and easily, it might get the job done.
To use iRust you must first install Rust. Please refer to the Rust README for Rust installation directions. Or if you're an impatient Mac user and you have Homebrew installed, run:
$ brew install rust
After you've installed Rust, you'll need Ruby. You can find installers for Ruby for various platforms here:
Next, install the irust gem:
$ gem install irust
Congrats, it should be installed and working now!
Now that you have iRust installed, run:
$ irust
This should give you the following prompt:
Using rustc 0.9-pre (619c4fc 2013-12-23 11:26:34 -0800)
irust>
Now type some fancy Rust expressions and watch them get magically evaluated before your eyes!
irust> 2+2
4 : int
irust>
Technology!
Copyright (c) 2014 Tony Arcieri. Distributed under the MIT License. See LICENSE.txt for further details.
FAQs
Unknown package
We found that irust demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.