Crate hide_console

Source
Expand description

§Hide Console

A library for hiding console windows in Rust applications.

Main purpose - creating background applications or applications with graphical interface without visible console window.

§Features

  • Hiding console window on Windows platform
  • Cross-platform support (works safely on all platforms)
  • Minimal dependencies
  • Simple and clear API

§Usage Example

use hide_console::hide_console;
 
fn main() {
    // Hide console window
    hide_console();
     
    // Continue application execution...
    println!("Console is hidden, but this text will be written to stdout");
}

§Compatibility with GUI Libraries

This library can be used with popular GUI frameworks:

use hide_console::hide_console;
 
fn main() {
    // Hide console before GUI initialization
    hide_console();
     
    // Your GUI framework initialization code goes here
    // ...
}

§Platforms

  • Windows: Full support for hiding console
  • macOS, Linux and others: Function does nothing but doesn’t cause errors

Functions§

hide_console
Hides the application’s console window.
is_hide_console_supported
Checks if hiding the console is supported on the current platform.