diff options
author | Theodore Dubois <tblodt@icloud.com> | 2019-04-28 06:24:58 -0700 |
---|---|---|
committer | Christian Duerr <chrisduerr@users.noreply.github.com> | 2019-04-28 13:24:58 +0000 |
commit | dbd8538762ef8968a493e1bf996e8693479ca783 (patch) | |
tree | 32ac2a6a5e01238a272d4ba534551d2e42903c7a /alacritty_terminal/src/lib.rs | |
parent | 9c6d12ea2c863ba76015bdedc00db13b7307725a (diff) | |
download | alacritty-dbd8538762ef8968a493e1bf996e8693479ca783.tar.gz alacritty-dbd8538762ef8968a493e1bf996e8693479ca783.zip |
Split alacritty into a separate crates
The crate containing the entry point is called alacritty, and the crate
containing everything else is called alacritty_terminal.
Diffstat (limited to 'alacritty_terminal/src/lib.rs')
-rw-r--r-- | alacritty_terminal/src/lib.rs | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/alacritty_terminal/src/lib.rs b/alacritty_terminal/src/lib.rs new file mode 100644 index 00000000..ab1ba35e --- /dev/null +++ b/alacritty_terminal/src/lib.rs @@ -0,0 +1,60 @@ +// 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 +#![deny(clippy::all, clippy::if_not_else, clippy::enum_glob_use, clippy::wrong_pub_self_convention)] +#![cfg_attr(feature = "nightly", feature(core_intrinsics))] +#![cfg_attr(all(test, feature = "bench"), feature(test))] + +#[macro_use] +extern crate log; +#[macro_use] +extern crate serde_derive; + +#[cfg(target_os = "macos")] +#[macro_use] +extern crate objc; + +#[macro_use] +pub mod macros; +pub mod ansi; +pub mod cli; +pub mod config; +mod cursor; +pub mod display; +pub mod event; +pub mod event_loop; +pub mod grid; +pub mod index; +pub mod input; +pub mod locale; +pub mod message_bar; +pub mod meter; +pub mod panic; +pub mod renderer; +pub mod selection; +pub mod sync; +pub mod term; +pub mod tty; +mod url; +pub mod util; +pub mod window; + +pub use crate::grid::Grid; +pub use crate::term::Term; + +pub mod gl { + #![allow(clippy::all)] + include!(concat!(env!("OUT_DIR"), "/gl_bindings.rs")); +} |