Add #![forbid(unsafe_code)] and safety badge
This commit is contained in:
parent
b8642b4db4
commit
92cfbe643c
5 changed files with 6 additions and 0 deletions
|
@ -2,6 +2,7 @@
|
|||
|
||||
[](https://crates.io/crates/egui)
|
||||
[](https://docs.rs/egui)
|
||||
[](https://github.com/rust-secure-code/safety-dance/)
|
||||

|
||||

|
||||
|
||||
|
@ -54,6 +55,7 @@ Window::new("Debug").show(ui.ctx(), |ui| {
|
|||
* Simple: no callbacks, minimal dependencies, avoid unnecessary monomorphization
|
||||
* Extensible: [easy to write your own widgets for Egui](https://github.com/emilk/egui/blob/master/egui/src/demos/toggle_switch.rs)
|
||||
* Modular: You should be able to use small parts of Egui and combine them in new ways
|
||||
* Safe: there is no `unsafe` code in Egui
|
||||
|
||||
Egui is *not* a framework. Egui is a library you call into, not an environment you program for.
|
||||
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#![forbid(unsafe_code)]
|
||||
#![deny(warnings)]
|
||||
#![warn(clippy::all)]
|
||||
|
||||
|
|
|
@ -20,6 +20,7 @@
|
|||
//! }
|
||||
//! ```
|
||||
|
||||
#![forbid(unsafe_code)]
|
||||
#![cfg_attr(not(debug_assertions), deny(warnings))] // Forbid warnings in release builds
|
||||
#![warn(
|
||||
clippy::all,
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#![forbid(unsafe_code)]
|
||||
#![deny(warnings)]
|
||||
#![warn(clippy::all)]
|
||||
#![allow(clippy::single_match)]
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#![forbid(unsafe_code)]
|
||||
#![deny(warnings)]
|
||||
#![warn(clippy::all)]
|
||||
|
||||
|
|
Loading…
Reference in a new issue