Announcement

Collapse
No announcement yet.

Google To Allow Rust Code In The Chromium Browser

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Originally posted by mdedetrich View Post
    there are even crates that allow you to ban unsafe if you need to do so.
    Actually, you don't need crates for that, that's built into the linter.

    These are my warn/forbid lints, for instance:
    Code:
    #![forbid(unsafe_code)]
    #![forbid(clippy::unwrap_used)]
    #![warn(missing_docs)]
    #![warn(rust_2018_idioms)]
    #![warn(trivial_casts)]
    #![warn(unused_lifetimes)]
    #![warn(unused_qualifications)]‚Äč
    I just put them at the top of my project's lib.rs and it affects the whole project.

    Comment

    Working...
    X