Remix.run Logo
nothinkjustai an hour ago

Rust doesn’t have post install scripts

est31 39 minutes ago | parent | next [-]

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.

fabrice_d an hour ago | parent | prev | next [-]

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.

deeebug an hour ago | parent | prev | next [-]

They have build.rs (https://doc.rust-lang.org/cargo/reference/build-scripts.html)

tasn an hour ago | parent | prev [-]

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