1
0
Fork 0
mirror of https://github.com/alacritty/alacritty.git synced 2024-11-03 04:34:21 -05:00
alacritty/Cargo.toml

61 lines
1.1 KiB
TOML
Raw Normal View History

2016-02-21 11:15:41 -05:00
[package]
name = "alacritty"
version = "0.1.0"
authors = ["Joe Wilm <joe@jwilm.com>"]
2016-02-23 23:59:31 -05:00
license = "Apache-2.0"
build = "build.rs"
2017-01-22 04:08:53 -05:00
description = "GPU-accelerated terminal emulator"
[[bin]]
doc = false
path = "src/main.rs"
name = "alacritty"
[[test]]
name = "ref"
harness = false
2016-02-21 11:15:41 -05:00
[dependencies]
libc = "*"
cgmath = "0.7"
notify = "2.6"
bitflags = "*"
Add support for macOS Alacritty now runs on macOS using CoreText for font rendering. The font rendering subsystems were moved into a separate crate called `font`. The font crate provides a unified (albeit limited) API which wraps CoreText on macOS and FreeType/FontConfig on other platforms. The unified API differed slightly from what the original Rasterizer for freetype implemented, and it was updated accordingly. The cell separation properties (sep_x and sep_y) are now premultiplied into the cell width and height. They were previously passed through as uniforms to the shaders; removing them prevents a lot of redundant work. `libc` has some differences between Linux and macOS. `__errno_location` is not available on macOS, and the `errno` crate was brought in to provide a cross-platform API for dealing with errno. Differences in `openpty` were handled by implementing a macOS specific version. It would be worth investigating a way to unify the implementations at some point. A type mismatch with TIOCSCTTY was resolved with a cast. Differences in libc::passwd struct fields were resolved by using std::mem::uninitialized instead of zeroing the struct ourselves. This has the benefit of being much cleaner. The thread setup had to be changed to support both macOS and Linux. macOS requires that events from the window be handled on the main thread. Failure to do so will prevent the glutin window from even showing up! For this reason, the renderer and parser were moved to their own thread, and the input is received on the main thread. This is essentially reverse the setup prior to this commit. Renderer initialization (and thus font cache initialization) had to be moved to the rendering thread as well since there's no way to make_context(null) with glx on Linux. Trying to just call make_context a second time on the rendering thread had resulted in a panic!.
2016-06-09 23:39:40 -04:00
font = { path = "./font" }
errno = "0.1.6"
lazy_static = "0.2.2"
parking_lot = { version = "0.3.1", features = ["nightly"] }
serde = "0.8"
serde_yaml = "0.5"
serde_derive = "0.8"
vte = "0.2.1"
mio = "0.6"
serde_json = "*"
copypasta = { path = "./copypasta" }
xdg = "2.0.0"
log = "0.3"
2017-01-22 04:08:53 -05:00
clap = "2.20"
fnv = "1.0.5"
2016-02-27 23:26:31 -05:00
clippy = { version = "0.0.104", optional = true }
[features]
default = ["err-println"]
# Enabling this feature makes shaders automatically reload when changed
live-shader-reload = []
err-println = []
nightly = []
[build-dependencies]
gl_generator = "0.5"
2016-02-27 23:26:31 -05:00
[dependencies.glutin]
git = "https://github.com/jwilm/glutin"
2016-11-19 21:37:17 -05:00
rev = "af7fe340bd4a2af53ea521defcb4f377cdc588cf"
[dev-dependencies]
rustc-test = { version = "0.1", features = ["capture"] }
[profile.release]
2017-01-07 23:56:29 -05:00
lto = true
debug = true