mirror of
https://github.com/emilk/egui.git
synced 2026-08-29 04:40:03 -04:00
Add #![forbid(unsafe_code)] and safety badge
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
[](https://crates.io/crates/egui)
|
[](https://crates.io/crates/egui)
|
||||||
[](https://docs.rs/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
|
* 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)
|
* 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
|
* 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.
|
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)]
|
#![deny(warnings)]
|
||||||
#![warn(clippy::all)]
|
#![warn(clippy::all)]
|
||||||
|
|
||||||
|
|||||||
@@ -20,6 +20,7 @@
|
|||||||
//! }
|
//! }
|
||||||
//! ```
|
//! ```
|
||||||
|
|
||||||
|
#![forbid(unsafe_code)]
|
||||||
#![cfg_attr(not(debug_assertions), deny(warnings))] // Forbid warnings in release builds
|
#![cfg_attr(not(debug_assertions), deny(warnings))] // Forbid warnings in release builds
|
||||||
#![warn(
|
#![warn(
|
||||||
clippy::all,
|
clippy::all,
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
#![forbid(unsafe_code)]
|
||||||
#![deny(warnings)]
|
#![deny(warnings)]
|
||||||
#![warn(clippy::all)]
|
#![warn(clippy::all)]
|
||||||
#![allow(clippy::single_match)]
|
#![allow(clippy::single_match)]
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
#![forbid(unsafe_code)]
|
||||||
#![deny(warnings)]
|
#![deny(warnings)]
|
||||||
#![warn(clippy::all)]
|
#![warn(clippy::all)]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user