I think its quite important especially when you get 100K to 1M line
projects knowing what is safe .. Nothing more annoying that c Heisenbugs
 some which took a decade to track down . If the c lib is mature  people
will write wrappers and with a bit of luck eventually the wrappers may
mature into safe rust libs.

In C# they use assemblies and you must explicitly allow unsafe assemblies
except  for system libs ( i dont know the mechanism but mscorlib has a ton
of unsafe). The idea being that they put that unsafe  through an incredible
amount of automated and manual checks which is not likely to be repeated in
typical projects.

Ist there are a  compile switch to allow unsafe then  you can link in c at
will .

Ben
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to