Comment

Comment by steveklabnik

Rust does not have classes, strictly speaking, though you can define methods on structs.

https://crates.io/crates/cxx is the simplest way to do an integration. It is slightly more work than "just plop in" but it's not incredibly difficult. It's harder than mixing C and C++ together, but then again, almost no pairings of languages are that easy.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton