mutagen
Breaking your Rust code for fun and profit (by llogiq)
jni-rs
Rust bindings to the Java Native Interface — JNI (by jni-rs)
mutagen | jni-rs | |
---|---|---|
8 | 5 | |
619 | 1,115 | |
- | 2.4% | |
0.0 | 6.3 | |
11 months ago | 17 days ago | |
Rust | Rust | |
Apache License 2.0 | 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.
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.
mutagen
Posts with mentions or reviews of mutagen.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-12-30.
-
Rust Tests Itself (Kind of!)
There are two testing techniques you didn't mention: Snapshot tests (which are greatly simplified using the insta crate and mutation testing (which can be done on nightly with my mutagen crate.
-
What's everyone working on this week (6/2022)?
How does this compare to mutagen?
-
Hey Rustaceans! Got an easy question? Ask here (52/2021)!
Do you mean as part of build.rs? Yes, that's certainly doable, and has been done in the past. You can use env!("OUT_DIR") for that. Examples you may want to refer to include my mutagen crate and criterion.
-
Uncovered Intermediate Topics
Would be great if this could include mutation testing.
-
Question for experienced Rustaceans
I wrote a good number of macros though, both macro_rules! and various proc_macros. The latest iteration of overflower has both, for example. mutagen is a mutation testing tool built as a proc macro, and it's helper library has a bunch of macros, too. compact_arena uses macros to tie unique lifetime tags to arenas.
-
Make Your Tests Bulletproof With Mutation Testing
Also there are far more mutation testing frameworks. I maintain the rust-based mutagen one. There are also LLVM-based ones (etc. mull) that can cover multiple languages (but may yield mutations not expressible in your preferred one).
-
Mutable Arguments Considered Harmful | micouy.github.io
Cargo (and Rust) makes it so easy to write test cases that you should really use it to find these kinds of bugs. And there are other good test crates available: mutagen, quickcheck, etc.
-
Project Ideas
I had a student completely reachitecture my mutagen tool, and saw some working on various clippy contributions.
jni-rs
Posts with mentions or reviews of jni-rs.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-12-10.
-
A system Steam should add
I do have education and real experience in the field. See, for example, my recent work on the rather arcane subject of Rust↔Java FFI. You don't get to pull rank with me, son. I know quite well what CreateFile does. (Fun fact: it creates a file handle, i.e. opens a file, and may or may not create the file itself.)
- Scala project rewrite
-
Having trouble understanding JNI
I've been playing around with jni-rs, I'm eventually planning on developing an app with Java gui and Rust backend. However I'm having some trouble advancing past HelloWorld lol. For example, here's some simple code that doesn't work and I really can't figure out why:
-
Portability of Rust in 2021
- JNI - how well does https://github.com/jni-rs/jni-rs work? Assuming that Firefox runs on Android and uses Rust this should be reasonable to work with?
-
Project Ideas
Even so, staying relatively close to the Java focus of the class might be a good idea, since it will help prepare you for the AP exam. One idea would be using jni-rs to build Java bindings for a useful Rust library. Interesting candidates might be io-uring, lockfree, or even pyo3, if you wanted to try your hand at integrating Java and Python.
What are some alternatives?
When comparing mutagen and jni-rs you can also consider the following projects:
cargo-mutants - :zombie: Inject bugs and see if your tests catch them!
j4rs - Java for Rust
ClippyCloud - Easy way to upload and share files quickly.
java-rust-example - Embedding Rust in Java
cargo-fuzz - Command line helpers for fuzzing
RustJNI - Run Java code from Rust!
tokio - A runtime for writing reliable asynchronous applications with Rust. Provides I/O, networking, scheduling, timers, ...
cbindgen - A project for generating C bindings from Rust code
rust - Empowering everyone to build reliable and efficient software.
rucaja
alacritty - A cross-platform, OpenGL terminal emulator.
Buzzard - 🦀 Learning Rust by Examples.