Press J to jump to the feed. Press question mark to learn the rest of the keyboard shortcuts
Log In
Found the internet!
Create an account to follow your favorite communities and start taking part in conversations.

Posts about Rust

Subreddit Icon
r/rust
248k members
A place for all things related to the Rust programming languageโ€”an open-source systems language that emphasizes performance, reliability, and productivity.
Visit
Subreddit Icon
r/RustConsole
57.1k members
The RUST Console Edition subreddit. A central place for game discussion, media, news, and more.
Visit
Subreddit Icon
r/rust_gamedev
34.8k members
The Rust programming language has a powerful type system and provides safety without a garbage collector. This makes it suitable for game programming, where both performance and code maintenance are of high importance.
Visit
Subreddit Icon
r/RustPc
389 members
This subbreddit Is for the people who use Rust on pc and are looking for teammates or servers. (advertising is welcome but please use the correct flair)
Visit
Subreddit Icon
r/learnrust
17.5k members
This subreddit is for asking questions about the programming language Rust
Visit
r/RustConsoleLFG
6.8k members
Rust Console Looking for Group and Recruitment
Visit
Subreddit Icon
r/programming
5.6m members
Computer Programming
Visit
Subreddit Icon
r/RustChat
1.0k members
Some of the conversations which occur whilst playing the game Rust.
Visit
Subreddit Icon
r/HilariaBaldwin
50.6k members
Discussion of all things Hilaria Baldwin, Alec Baldwin's wife. Also known as Hillary Hayward-Thomas. Also known as "The Grifter" or "Brand-thrax." Rachel Dolezal walked so Hilaria could run.
Visit
r/projectcar
281k members
Shine that turd! - A place to share and discuss projects with wheels
Visit
Subreddit Icon
r/Justrolledintotheshop
2.1m members
For those absolutely stupid things that you see people bring, roll, or toss into your place of business and the people that bring them in.
Visit
Subreddit Icon
r/castiron
516k members
Welcome to r/castiron
Visit
Subreddit Icon
r/Miata
156k members
r/Miata has joined the protest against Reddit's API changes. This subreddit will be private from June 12-14. A subreddit for all those who have owned, driven, raced, admired, or had anything ever to do with a Mazda MX-5.
Visit
r/rustservers
207 members
A subreddit for advertising your rust servers
Visit
Subreddit Icon
r/Megadeth
44.6k members
Welcome to the subreddit of the Thrash Metal giants Megadeth. Listen to their new album โ€œThe Sick, The Dyingโ€ฆ And The Dead!โ€ out now!
Visit
Subreddit Icon
r/Warhammer40k
677k members
Warhammer 40k is a franchise created by Games Workshop, detailing the far future and the grim darkness it holds. The main attraction of 40k is the miniatures, but there are also many video games, board games, books, ect. that are all connected in the 40k universe. This subreddit is for anything and everything related to Warhammer 40k.
Visit
Subreddit Icon
r/RustXbox
1.0k members
Rust for Xbox One. PM for mod
Visit
r/MechanicAdvice
1.2m members
This is more than a car repair forum!
Visit
r/Autobody
51.2k members
Discussion among Autobody enthusiasts, anyone wanting to become more aware of processes and what it takes to fix automobiles.
Visit
Subreddit Icon
r/gaming
38.1m members
The Number One Gaming forum on the Internet.
Visit
r/Rust_clanfinder
434 members
Rust is a very interactive game but sometimes it is hard to find a clan or just friends to play with!
Visit
Subreddit Icon
r/CherokeeXJ
28.7k members
If it's an XJ or MJ it's welcome here!
Visit
Subreddit Icon
r/minipainting
1.1m members
A community for painting miniatures and models. Everything from tabletop wargames to board games, display pieces or just for fun! Painters of all skill levels are welcome! From beginners who have never held a brush to pros who have been painting for years.
Visit
Subreddit Icon
r/Earwolf
40.1k members
Earwolf is a comedy podcasting network founded by Scott Aukerman and Jeff Ullrich in August 2010. It merged with podcast advertising network The Mid Roll in 2014 to form Midroll Media. Midroll was acquired by the E. W. Scripps Company in 2015. Here at /r/Earwolf you may enjoy discussing anything Alt-Comedy with your fellow podcast fans!
Visit
Subreddit Icon
r/ProgrammerHumor
3.1m members
For anything funny related to programming and software development.
Visit
Subreddit Icon
r/Rust_Valley
99 members
A subreddit for Rust Valley Restorers fans.
Visit
Subreddit Icon
r/modelmakers
228k members
The subreddit dedicated to the hobby of plastic model kit building and painting. Swap tips and techniques, show your latest builds/WIPs, post kit reviews and discuss the latest kits! And much more!
Visit
Subreddit Icon
r/FortNiteBR
2.8m members
The developer supported, community run subreddit dedicated to the Fortnite: Battle Royale game mode by Epic Games.
Visit
570
570
140 comments
212
Subreddit Icon
โ€ขPosted by6 months ago

A few months ago, NSA recommended Rust as an alternative to C and C++ and now CISA (I had to look it up, CISA is the Cybersecurity and Infrastructure Security Agency) is talking about how memory safe languages like Rust can remove a whole class of security vulnerabilities: CISA Director Jen Easterly Lecture and Fireside Chat.

I work on Rust in Android and I find it really encouraging to see the language being highlighted again and again as a safe alternative to C and C++.

212
25 comments
377
Subreddit Icon
โ€ขPosted by2 years ago

Edit 1

Already open-sourced. But please wait for maybe one day, before I clean up everything and publish it! https://github.com/fzyzcjy/flutter_rust_bridge


Original

I have made a bindgen to allow Dart/Flutter to call Rust via FFI. It is memory safe, and you do not need to care about anything like allocate/free an object.

Question: Anyone interested in it? If many people are interested, I can polish it can make it open-source. (Since you know, making it open-source will require some time and efforts.)

Features
  • Memory-safe: never need to think about alloc/free.

  • Zero-copy (almost): Big objects can be passed from Rust to Dart without any copy.

  • Rich type support: Not only primitives like int/double, but also Uint8List(Vec<u8>), List<T>(Vec<T>), any custom structs. You can even use recursive structs.

  • Async programming: Your Rust code can run for a long time, and it will not block the main isolate (i.e. not block UI). You can call functions directly in main isolate of Dart, so no need for switching between isolates.

  • Easy to use: All you need to do is write down your Rust code. The bindgen will do everything and expose an API in the Dart/Flutter style.

Example

Write the following Rust code (that is all you need to do!):

pub struct TreeNode {
    pub value: i32, # of course, also support also support other types
    pub children: Vec<MyTreeNode>,
}

pub fn hello_world(s: MyTreeNode, b: SomeOtherStruct) -> Result<Something> {
    Ok(...)
}

It will automatically generate everything, and you only need to call a generated Dart/Flutter API which looks like:

class ExampleApi {
    Future<Something> helloWorld({required MyTreeNode a, required SomeOtherStruct b}) async { ... auto generated implementation ... }
}

P.S. There already exists a low-level one (in the C style), but all memory alloc/free should be done manually, so it is quite unsafe. That is why I do this high-level bindgen.


Edit 2: You choose the name of this lib!

What name do you think is the best? If many people vote on your suggested name, I will use it. (Fallback name: flutter_rust_bridge).

Oh I see editing a post will not make any notifications. So this edit is almost useless...

377
88 comments
230
230
28 comments
12
Subreddit Icon
Crossposted by22 days ago
12
6 comments
197
Subreddit Icon
โ€ขPosted by1 year ago
197
40 comments
348
348
6 comments