Skip to content

Commit b062663

Browse files
committed
#194 (Note that this breaks crossterm for now). Ctrlc is optional, and the rand dev-dependency in bracket-terminal no longer uses getrandom. This makes it build on my local system.
1 parent 6e6948e commit b062663

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

bracket-terminal/Cargo.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ pancurses = { version = "0.16.1", optional = true }
2929
amethyst = { version = "=0.15.0", features = [ "tiles" ], optional = true }
3030
ultraviolet = "~0.7.5"
3131
parking_lot = { version = "~0.11.1" }
32-
ctrlc = { version = "~3.1" }
32+
ctrlc = { version = "~3.1", optional=true }
3333

3434
[target.'cfg(not(any(target_arch = "wasm32")))'.dependencies]
3535
glutin = {version = "0.26.0", optional = true }
@@ -38,9 +38,10 @@ winit = { version = "0.24.0" }
3838
[features]
3939
default = [ "opengl" ]
4040
opengl = [ "glow", "image", "glutin" ]
41-
curses = [ "pancurses" ]
41+
curses = [ "pancurses", "ctrlc" ]
4242
amethyst_engine_vulkan = [ "amethyst/vulkan", "image" ]
4343
amethyst_engine_metal = [ "amethyst/metal", "image" ]
44+
# TODO: Add crossterm optional ctrlc
4445

4546
[dev-dependencies]
4647
bracket-random = { path = "../bracket-random", version = "~0.8.2" }
@@ -54,7 +55,7 @@ web-sys = { version = "0.3", features=["console", "Attr", "CanvasRenderingContex
5455
"MouseEvent"] }
5556
wasm-bindgen = "0.2"
5657
wasm-timer = "0.1.0"
57-
rand = { version = "0.8.3" }
58+
rand = { version = "0.8.3", default-features = false }
5859
console_error_panic_hook = "0.1.6"
5960
winit = { version = "0.24.0", features = [ "web-sys" ] }
6061

0 commit comments

Comments
 (0)