logoalt Hacker News

nothinkjustaitoday at 2:07 AM4 repliesview on HN

Rust doesn’t have post install scripts


Replies

est31today at 2:18 AM

There is build.rs, proc macros are unsandboxed, and lastly you install the binary so that you can run it. Even if the build and install were fully sandboxed, the binary could still do malicious stuff if ran.

show 2 replies
fabrice_dtoday at 2:10 AM

It has build.rs that will run as soon as you compile the dependency. That's not the same thing but pretty close to a post install script: it's very likely to run.

tasntoday at 2:10 AM

It has build.rs, which has essentially the same problems.