Portability of Rust in 2021

This page summarizes the projects mentioned and recommended in the original post on /r/rust

InfluxDB high-performance time series database
Collect, organize, and act on massive volumes of high-resolution data to power real-time intelligent systems.
influxdata.com
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
  1. tch-rs

    Rust bindings for the C++ api of PyTorch.

    - PyTorch/libtorch - https://github.com/LaurentMazare/tch-rs seems pretty good. But on Android and iOS this seems to be an issue. Although this issue exists for C++ as well as there are currently some hacky scripts to download the Java AAR from Maven and then extract the .so libs from there to make sure you got the thing built correctly ;). I actually went the path now to run torch mobile from Java (it's a sequence of 3 neural networks) and call my C++ code between those with JNI. It's mostly passing strings and float arrays, so not too bad. So this could work with Rust as well.

  2. InfluxDB

    InfluxDB high-performance time series database. Collect, organize, and act on massive volumes of high-resolution data to power real-time intelligent systems.

    InfluxDB logo
  3. jni-rs

    Rust bindings to the Java Native Interface — JNI

    - 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?

  4. cbindgen

    A project for generating C bindings from Rust code

    - I still got to wrap one C library. I ran it through https://github.com/eqrion/cbindgen once and seemed to work but didn't do any deeper tests.

  5. tokenizers

    💥 Fast State-of-the-Art Tokenizers optimized for Research and Production

    In sum I would like the idea to go with Rust as I more or less got to rewrite the whole thing anyway, but I am a bit skeptical if I will be able to interface with everything that might come up at some point. Or probably end up in a wrapper hell if I got to use more C++ libraries. On the other hand there are definitely a few Rust projects out there that might come in handy (for example https://github.com/huggingface/tokenizers). And the build process is pretty awful right now (CMake it is but with lots of hacks).

  6. com-rs

    Discontinued A Rust crate for creating and consuming COM APIs

    regarding COM - check https://github.com/microsoft/com-rs

  7. windows-rs

    Rust for Windows

    There's also https://github.com/microsoft/windows-rs for consuming all sorts of windows APIs (COM included)!

  8. onnx-tensorflow

    Tensorflow Backend for ONNX

    We had a few small issues with ONNX. Export worked but when running with e.g. tflite stumbled for example across this https://github.com/onnx/onnx-tensorflow/issues/853 Also the support for sampling from distributions is generally still pretty weak, but we were able to work around that.

  9. CodeRabbit

    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 logo
  10. onnxruntime

    ONNX Runtime: cross-platform, high performance ML inferencing and training accelerator

    Also briefly tried https://github.com/microsoft/onnxruntime

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Rust Bindings for the Python Interpreter

    1 project | news.ycombinator.com | 11 Jan 2025
  • Ask HN: Python in the NoGIL World

    2 projects | news.ycombinator.com | 20 Dec 2024
  • How to introduce 🦀 Rust at your company 🏭?

    2 projects | dev.to | 19 Dec 2024
  • An interpreter inside an interpreter

    2 projects | dev.to | 25 Nov 2024
  • J4rs – 'Java for Rust' allows effortless calls to Java from Rust and vice-versa

    1 project | news.ycombinator.com | 26 Sep 2024

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