2015-09-07 16:11:00 -04:00
|
|
|
[package]
|
2015-09-12 15:31:26 -04:00
|
|
|
name = "steven"
|
2015-09-07 16:11:00 -04:00
|
|
|
version = "0.0.1"
|
|
|
|
authors = [ "Thinkofdeath <thinkofdeath@spigotmc.org>" ]
|
2018-11-04 15:15:34 -05:00
|
|
|
edition = "2018"
|
2015-09-07 16:11:00 -04:00
|
|
|
|
2016-12-09 09:32:02 -05:00
|
|
|
[profile.dev]
|
|
|
|
# Steven runs horrendously slow with no optimizations, and often freezes.
|
|
|
|
# However, building with full -O3 optimizations takes too long for a debug build.
|
|
|
|
# Use an -O1 optimization level strikes a good compromise between build and program performance.
|
|
|
|
opt-level = 1
|
|
|
|
|
2015-09-07 16:11:00 -04:00
|
|
|
[dependencies]
|
2018-12-03 17:29:29 -05:00
|
|
|
sha-1 = "0.8.1"
|
Use glutin to replace sdl2 (#35)
* Add glutin dependency
* Create a glutin window
* Use the glutin window, basics work
* Store DPI factor on game object, update on Resized
* Use physical size for rendering only. Fixes UI scaled too small
Fixes https://github.com/iceiix/steven/pull/35#issuecomment-442683373
See also https://github.com/iceiix/steven/issues/22
* Begin adding mouse input events
* Listen for DeviceEvents
* Call hover_at on mouse motion
* Listen for CursorMoved window event, hovering works
Glutin has separate WindowEvent::CursorMoved and
DeviceEvent::MouseMotion events, for absolute cursor and relative mouse
motion, respectively, instead of SDL's Event::MouseMotion for both.
* Use tuple pattern matching instead of nested if for MouseInput
* Implement left clicking
* Use grab_cursor() to capture the cursor
* Hide the cursor when grabbing
* Implement MouseWheel event
* Listen for keyboard input, escape key release
* Keyboard input: console toggling, glutin calls backquote 'grave'
* Implement fullscreen in glutin, updates https://github.com/iceiix/steven/pull/31
* Update settings for glutin VirtualKeyCode
* Keyboard controls (note: must clear conf.cfg to use correct bindings)
* Move DeviceEvent match arm up higher for clarity
* Remove SDL
* Pass physical dimensions to renderer tick so blit_framebuffer can use full size but the ui is still sized logically.
* Listen for DeviceEvent::Text
* Implement text input using ReceivedCharacter window event, works
https://github.com/iceiix/steven/pull/35#issuecomment-443247267
* Request specific version of OpenGL, version 3.2
* Request OpenGL 3.2 but fallback to OpenGL ES 2.0 if available (not tested)
* Set core profile and depth 24-bits, stencil 0-bits
* Allow changing vsync, but require restarting (until https://github.com/tomaka/glutin/issues/693)
* Clarify specific Rust version requirement
* Import glutin::* in handle_window_event() to avoid overly repetitive code
* Linux in VM fix: manually calculate delta in MouseMotion
For the third issue on https://github.com/iceiix/steven/pull/35#issuecomment-443084458
https://github.com/tomaka/glutin/issues/1084 MouseMotion event returns absolute instead of relative values, when running Linux in a VM
* Heuristic to detect absolute/relative MouseMotion from delta:(xrel, yrel); use a higher scaling factor
* Add clipboard pasting with clipboard crate instead of sdl2
https://github.com/iceiix/steven/pull/35#issuecomment-443307295
2018-11-30 14:35:35 -05:00
|
|
|
glutin = "0.19.0"
|
2018-12-02 10:16:31 -05:00
|
|
|
byteorder = "1.2.7"
|
2018-12-03 17:29:29 -05:00
|
|
|
reqwest = "0.9.5"
|
2019-01-05 22:55:27 -05:00
|
|
|
serde = "1.0.84"
|
|
|
|
serde_json = "1.0.34"
|
2018-12-03 17:29:29 -05:00
|
|
|
flate2 = "1.0.6"
|
2018-12-04 18:22:00 -05:00
|
|
|
zip = "0.5.0"
|
2018-12-02 10:16:18 -05:00
|
|
|
image = "0.20.1"
|
2018-09-30 22:05:20 -04:00
|
|
|
rand = "0.5.5"
|
2018-09-30 21:14:36 -04:00
|
|
|
hex = "0.3.2"
|
2019-01-05 22:55:27 -05:00
|
|
|
base64 = "0.10.0"
|
2018-12-02 10:16:06 -05:00
|
|
|
log = { version = "0.4.6", features = ["std"] }
|
2018-10-27 21:11:26 -04:00
|
|
|
cgmath = "0.16.1"
|
2018-12-03 17:29:29 -05:00
|
|
|
lazy_static = "1.2.0"
|
2018-10-27 21:11:26 -04:00
|
|
|
collision = "0.18.0"
|
2018-11-01 23:45:40 -04:00
|
|
|
aes = "0.3.2"
|
|
|
|
cfb8 = "0.3.1"
|
2018-11-05 20:17:02 -05:00
|
|
|
rsa_public_encrypt_pkcs1 = "0.2.0"
|
Use glutin to replace sdl2 (#35)
* Add glutin dependency
* Create a glutin window
* Use the glutin window, basics work
* Store DPI factor on game object, update on Resized
* Use physical size for rendering only. Fixes UI scaled too small
Fixes https://github.com/iceiix/steven/pull/35#issuecomment-442683373
See also https://github.com/iceiix/steven/issues/22
* Begin adding mouse input events
* Listen for DeviceEvents
* Call hover_at on mouse motion
* Listen for CursorMoved window event, hovering works
Glutin has separate WindowEvent::CursorMoved and
DeviceEvent::MouseMotion events, for absolute cursor and relative mouse
motion, respectively, instead of SDL's Event::MouseMotion for both.
* Use tuple pattern matching instead of nested if for MouseInput
* Implement left clicking
* Use grab_cursor() to capture the cursor
* Hide the cursor when grabbing
* Implement MouseWheel event
* Listen for keyboard input, escape key release
* Keyboard input: console toggling, glutin calls backquote 'grave'
* Implement fullscreen in glutin, updates https://github.com/iceiix/steven/pull/31
* Update settings for glutin VirtualKeyCode
* Keyboard controls (note: must clear conf.cfg to use correct bindings)
* Move DeviceEvent match arm up higher for clarity
* Remove SDL
* Pass physical dimensions to renderer tick so blit_framebuffer can use full size but the ui is still sized logically.
* Listen for DeviceEvent::Text
* Implement text input using ReceivedCharacter window event, works
https://github.com/iceiix/steven/pull/35#issuecomment-443247267
* Request specific version of OpenGL, version 3.2
* Request OpenGL 3.2 but fallback to OpenGL ES 2.0 if available (not tested)
* Set core profile and depth 24-bits, stencil 0-bits
* Allow changing vsync, but require restarting (until https://github.com/tomaka/glutin/issues/693)
* Clarify specific Rust version requirement
* Import glutin::* in handle_window_event() to avoid overly repetitive code
* Linux in VM fix: manually calculate delta in MouseMotion
For the third issue on https://github.com/iceiix/steven/pull/35#issuecomment-443084458
https://github.com/tomaka/glutin/issues/1084 MouseMotion event returns absolute instead of relative values, when running Linux in a VM
* Heuristic to detect absolute/relative MouseMotion from delta:(xrel, yrel); use a higher scaling factor
* Add clipboard pasting with clipboard crate instead of sdl2
https://github.com/iceiix/steven/pull/35#issuecomment-443307295
2018-11-30 14:35:35 -05:00
|
|
|
clipboard = "0.5.0"
|
2016-03-26 10:24:26 -04:00
|
|
|
# clippy = "*"
|
2015-09-07 16:11:00 -04:00
|
|
|
|
|
|
|
[dependencies.steven_gl]
|
|
|
|
path = "./gl"
|
|
|
|
version = "0"
|
2015-09-10 06:49:41 -04:00
|
|
|
|
2016-03-16 14:15:13 -04:00
|
|
|
[dependencies.steven_resources]
|
|
|
|
path = "./resources"
|
|
|
|
version = "0"
|
2016-04-03 13:26:52 -04:00
|
|
|
|
|
|
|
[dependencies.steven_blocks]
|
|
|
|
path = "./blocks"
|
|
|
|
version = "0"
|
2016-04-03 15:53:40 -04:00
|
|
|
|
|
|
|
[dependencies.steven_shared]
|
|
|
|
path = "./shared"
|
|
|
|
version = "0"
|