I’m sure everyone’s thought about it already but hasn’t done enough so far.
Note though that the rust foundation has established a security initiative (see e.g. here), which does include the supply chain via crates.io.
I’m sure everyone’s thought about it already but hasn’t done enough so far.
Note though that the rust foundation has established a security initiative (see e.g. here), which does include the supply chain via crates.io.
2
was good, thanks. 4
needs a tad more thought imho, returning an impl T
does have its place, because it makes changing the return type of the function a non-breaking change.
Note that when you change
num
to take&self
instead, this works out (you also need to markfoo
as mutable, of course).