Initial public release of Warp.
Repo-Sync-Origin: warpdotdev/warp-internal@12af1d983b
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
// On Windows, we don't want to display a console window when the application is running in release
|
||||
// builds. See https://doc.rust-lang.org/reference/runtime.html#the-windows_subsystem-attribute.
|
||||
#![cfg_attr(feature = "release_bundle", windows_subsystem = "windows")]
|
||||
|
||||
#[path = "channel_config.rs"]
|
||||
mod channel_config;
|
||||
|
||||
use anyhow::Result;
|
||||
use warp_core::{
|
||||
channel::{Channel, ChannelState},
|
||||
features,
|
||||
};
|
||||
|
||||
// Simple wrapper around warp::run() for dev channel builds.
|
||||
fn main() -> Result<()> {
|
||||
ChannelState::set(
|
||||
ChannelState::new(Channel::Dev, channel_config::load_config!("dev"))
|
||||
.with_additional_features(features::DEBUG_FLAGS)
|
||||
.with_additional_features(features::DOGFOOD_FLAGS)
|
||||
.with_additional_features(features::PREVIEW_FLAGS),
|
||||
);
|
||||
|
||||
warp::run()
|
||||
}
|
||||
Reference in New Issue
Block a user