3 ms·
There’s already a runtime for sandboxing macros with wasm: https://github.com/dtolnay/watt https://github.com/dtolnay/watt
by cmrx64 2y ago
There’s already a runtime for sandboxing macros with wasm: https://github.com/dtolnay/watt https://github.com/dtolnay/watt
- deleted 2y ago[deleted]
- codedokode 2y agoSo you need to use hacks, like compiling code into a web-browser language and messing with config files instead of having security out-of-box? But thank you for letting me learn something useful.
- cmrx64 2y agoIt’s a demonstration. wasm is a portable ISA more than a “language”. Surely it makes sense to build things incrementally, in layers? https://internals.rust-lang.org/t/pre-rfc-sandboxed-deterministic-reproducible-efficient-wasm-compilation-of-proc-macros https://internals.rust-lang.org/t/pre-rfc-sandboxed-determin... But go off, king.