2016-11-20 00:16:20 +00:00
|
|
|
// Copyright 2016 Joe Wilm, The Alacritty Project Contributors
|
|
|
|
//
|
|
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
// you may not use this file except in compliance with the License.
|
|
|
|
// You may obtain a copy of the License at
|
|
|
|
//
|
|
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
//
|
|
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
// See the License for the specific language governing permissions and
|
|
|
|
// limitations under the License.
|
|
|
|
//
|
|
|
|
//! Alacritty - The GPU Enhanced Terminal
|
|
|
|
#![feature(range_contains)]
|
|
|
|
#![feature(inclusive_range_syntax)]
|
2016-12-22 18:43:06 +00:00
|
|
|
#![feature(inclusive_range)]
|
2016-11-20 00:16:20 +00:00
|
|
|
#![feature(drop_types_in_const)]
|
|
|
|
#![feature(step_trait)]
|
2016-12-17 06:13:51 +00:00
|
|
|
#![feature(plugin)]
|
|
|
|
#![cfg_attr(feature = "clippy", plugin(clippy))]
|
|
|
|
#![cfg_attr(feature = "clippy", deny(clippy))]
|
|
|
|
#![cfg_attr(feature = "clippy", deny(enum_glob_use))]
|
|
|
|
#![cfg_attr(feature = "clippy", deny(if_not_else))]
|
|
|
|
#![cfg_attr(feature = "clippy", deny(wrong_pub_self_convention))]
|
2016-11-28 22:13:11 +00:00
|
|
|
#![cfg_attr(test, feature(test))]
|
2016-11-20 00:16:20 +00:00
|
|
|
#![feature(core_intrinsics)]
|
|
|
|
|
|
|
|
#![feature(proc_macro)]
|
|
|
|
|
|
|
|
#[macro_use]
|
|
|
|
extern crate serde_derive;
|
|
|
|
|
|
|
|
extern crate cgmath;
|
|
|
|
extern crate copypasta;
|
|
|
|
extern crate errno;
|
|
|
|
extern crate font;
|
|
|
|
extern crate glutin;
|
|
|
|
extern crate libc;
|
|
|
|
extern crate mio;
|
|
|
|
extern crate notify;
|
|
|
|
extern crate parking_lot;
|
|
|
|
extern crate serde;
|
|
|
|
extern crate serde_json;
|
|
|
|
extern crate serde_yaml;
|
|
|
|
extern crate vte;
|
|
|
|
|
|
|
|
#[macro_use]
|
|
|
|
extern crate bitflags;
|
|
|
|
|
|
|
|
#[macro_use]
|
|
|
|
pub mod macros;
|
|
|
|
|
2016-12-10 05:10:49 +00:00
|
|
|
pub mod ansi;
|
2016-12-11 06:44:13 +00:00
|
|
|
pub mod cli;
|
2016-12-10 05:10:49 +00:00
|
|
|
pub mod config;
|
2016-12-11 06:44:13 +00:00
|
|
|
pub mod display;
|
2016-11-20 00:16:20 +00:00
|
|
|
pub mod event;
|
|
|
|
pub mod event_loop;
|
2016-12-10 05:10:49 +00:00
|
|
|
pub mod grid;
|
2016-11-20 00:16:20 +00:00
|
|
|
pub mod index;
|
|
|
|
pub mod input;
|
|
|
|
pub mod meter;
|
|
|
|
pub mod renderer;
|
2016-12-22 18:43:06 +00:00
|
|
|
pub mod selection;
|
2016-11-20 00:16:20 +00:00
|
|
|
pub mod sync;
|
|
|
|
pub mod term;
|
|
|
|
pub mod tty;
|
|
|
|
pub mod util;
|
2016-12-10 05:10:49 +00:00
|
|
|
pub mod window;
|
2016-11-20 00:16:20 +00:00
|
|
|
|
|
|
|
pub use grid::Grid;
|
|
|
|
pub use term::Term;
|
|
|
|
|
|
|
|
#[derive(Debug, Eq, PartialEq, Copy, Clone, Default, Serialize, Deserialize)]
|
|
|
|
pub struct Rgb {
|
|
|
|
pub r: u8,
|
|
|
|
pub g: u8,
|
|
|
|
pub b: u8,
|
|
|
|
}
|
|
|
|
|
2016-12-17 06:13:51 +00:00
|
|
|
#[cfg_attr(feature = "clippy", allow(too_many_arguments))]
|
|
|
|
#[cfg_attr(feature = "clippy", allow(doc_markdown))]
|
2016-11-20 00:16:20 +00:00
|
|
|
pub mod gl {
|
|
|
|
#![allow(non_upper_case_globals)]
|
|
|
|
include!(concat!(env!("OUT_DIR"), "/gl_bindings.rs"));
|
|
|
|
}
|