Remix.run Logo
praseodym 3 hours ago

As mentioned by others it’s just as easy for an attacker to modify a crate’s runtime code.

vlovich123 2 hours ago | parent [-]

So? Runtime code requires actually executing the malicious code path which isn’t an immediate 100% hit rate for everyone that includes it in the dependency chain. For build.rs it’s a 100% compromise of everyone it’s in the dependency chain for. Additionally, at runtime you may not have access to secrets whereas at build time you most certainly do.