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};
|
use eframe::{egui, epi};
|
||||||
|
|
||||||
#[derive(Default)]
|
#[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};
|
use eframe::{egui, epi};
|
||||||
|
|
||||||
struct MyApp {
|
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};
|
use eframe::{egui, epi};
|
||||||
|
|
||||||
#[derive(Default)]
|
#[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:
|
// Forbid warnings in release builds:
|
||||||
#![cfg_attr(not(debug_assertions), deny(warnings))]
|
#![cfg_attr(not(debug_assertions), deny(warnings))]
|
||||||
#![forbid(unsafe_code)]
|
#![forbid(unsafe_code)]
|
||||||
|
|
|
@ -1,4 +1,7 @@
|
||||||
//! Example how to use [epi::NativeTexture] with glium.
|
//! 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 epi::NativeTexture;
|
||||||
use glium::glutin;
|
use glium::glutin;
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,7 @@
|
||||||
//! Example how to use pure `egui_glium` without [`epi`].
|
//! 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;
|
use glium::glutin;
|
||||||
|
|
||||||
fn create_display(event_loop: &glutin::event_loop::EventLoop<()>) -> glium::Display {
|
fn create_display(event_loop: &glutin::event_loop::EventLoop<()>) -> glium::Display {
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
//! Example how to use pure `egui_glow` without [`epi`].
|
//! 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(
|
fn create_display(
|
||||||
event_loop: &glutin::event_loop::EventLoop<()>,
|
event_loop: &glutin::event_loop::EventLoop<()>,
|
||||||
) -> (
|
) -> (
|
||||||
|
|
Loading…
Reference in a new issue