rspec-core VS Rustler

Compare rspec-core vs Rustler and see what are their differences.

rspec-core

RSpec runner and formatters (by rspec)

Rustler

Safe Rust bridge for creating Erlang NIF functions (by rusterlium)
Nutrient - The #1 PDF SDK Library
Bad PDFs = bad UX. Slow load times, broken annotations, clunky UX frustrates users. Nutrient’s PDF SDKs gives seamless document experiences, fast rendering, annotations, real-time collaboration, 100+ features. Used by 10K+ devs, serving ~half a billion users worldwide. Explore the SDK for free.
nutrient.io
featured
CodeRabbit: AI Code Reviews for Developers
Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
coderabbit.ai
featured
rspec-core Rustler
6 37
1,233 4,433
- 0.9%
8.6 8.6
3 months ago 15 days ago
Ruby Rust
MIT License Apache License 2.0
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

rspec-core

Posts with mentions or reviews of rspec-core. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-06-30.
  • Metaprogramming in Ruby: Advanced Level
    3 projects | dev.to | 30 Jun 2023
    That being said, the code and documentation for rspec is generally clear and descriptive, making it a fantastic repository for learning about metaprogramming techniques. In rspec-core/lib/rspec/core/dsl.rb, for example, the implementation is spelled out in code comments.
  • Relishapp is down, anyone knows what happened?
    4 projects | /r/ruby | 9 Mar 2023
  • Anyone have any good Ruby repos that showcase best practices?
    2 projects | /r/ruby | 8 Mar 2023
    Something like that. You almost certainly want to use bundler because it's pretty much the easiest way to add 3rd party libs to your app. (Read more about bundler). Tests aren't an absolute requirement but are a generally considered to be an important part of ruby (and rails) culture. They can be difficult to learn in the beginning, but get easier with practice -- start soon and practice often! (Good rule of thumb: test any public methods of your objects that you define, at a minimum -- a guide. There's also relishapp, which seems to be down at the moment?)
  • It's legos all the way down
    3 projects | dev.to | 17 Feb 2023
    Take this small excerpt[9] from rspec-core of the describe public api:
  • When not to use instance variables in RSpec
    1 project | /r/ruby | 2 Feb 2021
    From what I understand RSpec creates a class per spec (e.g. #) and it stores the instance variables (defined in the before :context DSL) on the RSpec::Core::ExampleGroup class on class level. The RSpec::Core::ExampleGroup is the parent class of the spec classes.
    1 project | dev.to | 2 Feb 2021
    From the RSpec docs

Rustler

Posts with mentions or reviews of Rustler. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2025-02-09.
  • Pulumi W̶a̶s̶m̶/̶R̶u̶s̶t̶ Gestalt devlog #7
    4 projects | dev.to | 9 Feb 2025
    Currently, Pulumi Gestalt supports C and Wasm/Rust. Next week, I'll be working on native Rust support, which will also pave the way for other languages like Dart and Erlang.
  • Ask HN: What is the best way to learn Erlang?
    5 projects | news.ycombinator.com | 1 Oct 2024
    Yep, I think you'd be hard-pressed to find the actual Elixir code be the bottleneck in a real-life application. But if you do encounter that, you can use something like Rustler[0] for the CPU-intensive bottleneck, as Discord did[1] while working on a data structure they needed. Slow DB queries are something else to look out for.

    [0] https://github.com/rusterlium/rustler

    [1] https://github.com/discord/sorted_set_nif

  • AI Toolkit: Give a brain to your game's NPCs, a header-only C++ library
    2 projects | news.ycombinator.com | 9 Jan 2024
    For performance intensive tasks, you could rely on Rust NIFs, there is this great project: https://github.com/rusterlium/rustler

    My last project with Elixir was using Elixir merely as an orchestrator of static binaries (developed in golang) which were talking in JSON via stdin/stdout.

  • Building Apps with Tauri and Elixir
    14 projects | dev.to | 19 Oct 2023
    From the moment we discovered Tauri, we really felt like this was the perfect fit. The API is really solid, the configuration files are minimal and easy to understand, and the usage of Rust makes it way easier to add new functionalities and think about interesting ways of interoperating with Elixir via the Rustler library.
  • Async Rust Is A Bad Language
    11 projects | news.ycombinator.com | 8 Sep 2023
    Elixir/Rust is the new Python/C++, and Rustler makes the communicating between the 2 languages super easy: https://github.com/rusterlium/rustler
  • Why elixir over Golang
    10 projects | /r/elixir | 29 May 2023
    Rustler is so awesome for this. Write Elixir NIFs in Rust? Yes, please!
  • Is RUST a good choice for building web browsers?
    6 projects | /r/rust | 27 May 2023
  • Why do you enjoy systems programming languages?
    2 projects | /r/rust | 25 May 2023
    But really, I would suggest thinking about what you want to build before "how" or "with which tool" - one of the signs of a person becoming a good engineer is having an array of tools at their disposal and being able to choose a correct tool for the correct task. Rust also excels in integrating with other languages - with JS via WebAssembly (a bit of self-promotion, for example), with Elixir via Rustler, with Python via PyO3 and PyOxidizer, etc. So you absolutely can start writing a frontend app with JS, or a distributed system with Elixir, or a data processing/ML app with Python and use Rust to speed up critical parts of those. Or, in reverse, you can start with Rust & add new capabilities to whatever you're building, that being a frontend, a resilient chat interface, or an ML model.
  • PasswordRs 0.1.0 released (Rust NIF for password hashing)
    4 projects | /r/elixir | 24 Apr 2023
    I created a elixir (wrapper) library to generate password hashes. Other Elixir libraries use a C NIF to generate password hashes. This libary uses a Rust NIF (using Rustler) and the Rust libraries the generate the different hashes. Additionally this library uses RustlerPrecompiled so you don't need to have a Rust compiler installed to use this library. It supports argon2, scrypt, brypt and pbkdf2.
  • Elixir and Rust is a good mix
    10 projects | news.ycombinator.com | 13 Apr 2023

What are some alternatives?

When comparing rspec-core and Rustler you can also consider the following projects:

rspec-mocks - RSpec's 'test double' framework, with support for stubbing and mocking

gleam - ⭐️ A friendly language for building type-safe, scalable systems!

ex_vec - re-creating rust's `vec!` macro in elixir

nifty - helpful tools for when I need to create an Elixir NIF .

factory_bot - A library for setting up Ruby objects as test data.

crate-deps

Devise - Flexible authentication solution for Rails with Warden.

hsnif - Tool that allows to write Erlang NIF libraries in Haskell

rspec-rails - RSpec for Rails 7+

dplyr - dplyr: A grammar of data manipulation

rspec-expectations - Provides a readable API to express expected outcomes of a code example

duckdb-rs - Ergonomic bindings to duckdb for Rust

Nutrient - The #1 PDF SDK Library
Bad PDFs = bad UX. Slow load times, broken annotations, clunky UX frustrates users. Nutrient’s PDF SDKs gives seamless document experiences, fast rendering, annotations, real-time collaboration, 100+ features. Used by 10K+ devs, serving ~half a billion users worldwide. Explore the SDK for free.
nutrient.io
featured
CodeRabbit: AI Code Reviews for Developers
Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
coderabbit.ai
featured

Did you know that Ruby is
the 12th most popular programming language
based on number of references?