Hide console on windows for all examples in release builds (#1008)
This commit is contained in:
parent
4ef21380a2
commit
753d709d3d
7 changed files with 16 additions and 0 deletions
|
@ -1,3 +1,5 @@
|
|||
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")] // hide console window on Windows in release
|
||||
|
||||
use eframe::{egui, epi};
|
||||
|
||||
#[derive(Default)]
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")] // hide console window on Windows in release
|
||||
|
||||
use eframe::{egui, epi};
|
||||
|
||||
struct MyApp {
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")] // hide console window on Windows in release
|
||||
|
||||
use eframe::{egui, epi};
|
||||
|
||||
#[derive(Default)]
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")] // hide console window on Windows in release
|
||||
|
||||
// Forbid warnings in release builds:
|
||||
#![cfg_attr(not(debug_assertions), deny(warnings))]
|
||||
#![forbid(unsafe_code)]
|
||||
|
|
|
@ -1,4 +1,7 @@
|
|||
//! Example how to use [epi::NativeTexture] with glium.
|
||||
|
||||
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")] // hide console window on Windows in release
|
||||
|
||||
use epi::NativeTexture;
|
||||
use glium::glutin;
|
||||
|
||||
|
|
|
@ -1,4 +1,7 @@
|
|||
//! Example how to use pure `egui_glium` without [`epi`].
|
||||
|
||||
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")] // hide console window on Windows in release
|
||||
|
||||
use glium::glutin;
|
||||
|
||||
fn create_display(event_loop: &glutin::event_loop::EventLoop<()>) -> glium::Display {
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
//! Example how to use pure `egui_glow` without [`epi`].
|
||||
|
||||
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")] // hide console window on Windows in release
|
||||
|
||||
fn create_display(
|
||||
event_loop: &glutin::event_loop::EventLoop<()>,
|
||||
) -> (
|
||||
|
|
Loading…
Reference in a new issue