this post was submitted on 18 Aug 2023
91 points (98.9% liked)
Rust
5960 readers
2 users here now
Welcome to the Rust community! This is a place to discuss about the Rust programming language.
Wormhole
Credits
- The icon is a modified version of the official rust logo (changing the colors to a gradient and black background)
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I saw some other crate doing something similar but using wasm, the idea is to sandbox the binary used as a proc macro. So that seems a bit better. Can't see to find it any more.
EDIT: Found it https://lib.rs/crates/watt
Fun fact: the guy who wrote
watt
is the same guy who wroteserde
.Made by the same guy
serde
is maintained by dtolnay, he is not the original author.I thought he was a genious inventing so many useful tools. Does he maintain other projects he didn't create?
Not sure, possibly. You still need to be pretty smart maintaining and extending all those tools.
Sandboxing the binary doesn't protect you. It can still insert malicious code into your application.