mirror of
https://github.com/doukutsu-rs/doukutsu-rs
synced 2024-11-06 06:14:16 +00:00
86 lines
2.5 KiB
TOML
86 lines
2.5 KiB
TOML
[package]
|
|
authors = ["Alula"]
|
|
edition = "2018"
|
|
name = "doukutsu-rs"
|
|
version = "0.1.0"
|
|
|
|
[lib]
|
|
#crate-type = ["lib", "cdylib"]
|
|
crate-type = ["lib"]
|
|
|
|
[[bin]]
|
|
name = "doukutsu-rs"
|
|
path = "src/main.rs"
|
|
test = false
|
|
bench = false
|
|
required-features = ["exe"]
|
|
|
|
[profile.release]
|
|
lto = 'thin'
|
|
panic = 'abort'
|
|
|
|
[profile.dev.package."*"]
|
|
opt-level = 3
|
|
|
|
[features]
|
|
default = ["scripting", "backend-sdl", "render-opengl", "ogg-playback", "exe"]
|
|
ogg-playback = ["lewton"]
|
|
backend-sdl = ["sdl2", "sdl2-sys"]
|
|
#backend-sokol = ["sokol"]
|
|
backend-glutin = ["winit", "glutin", "render-opengl"]
|
|
render-opengl = []
|
|
scripting = ["lua-ffi"]
|
|
netplay = []
|
|
editor = []
|
|
hooks = ["libc"]
|
|
exe = []
|
|
android = []
|
|
|
|
[dependencies]
|
|
#cpal = { path = "./3rdparty/cpal" }
|
|
#glutin = { path = "./3rdparty/glutin/glutin", optional = true }
|
|
bitvec = "0.20"
|
|
byteorder = "1.4"
|
|
case_insensitive_hashmap = "1.0.0"
|
|
chrono = "0.4"
|
|
cpal = { git = "https://github.com/doukutsu-rs/cpal.git", rev = "e027550be0b93b7e2912c7de28a4944a7d04e070" }
|
|
directories = "3"
|
|
funty = "=1.1.0" # https://github.com/bitvecto-rs/bitvec/issues/105
|
|
glutin = { git = "https://github.com/doukutsu-rs/glutin.git", rev = "a34ee3c99b3c999b638ca2bae53cf96df2b94c04", optional = true, default_features = false, features = ["x11"] }
|
|
imgui = "0.7.0"
|
|
image = { version = "0.23", default-features = false, features = ["png", "bmp"] }
|
|
itertools = "0.10"
|
|
lazy_static = "1.4.0"
|
|
lewton = { version = "0.10.2", optional = true }
|
|
libc = { version = "0.2", optional = true }
|
|
log = "0.4"
|
|
lua-ffi = { git = "https://github.com/doukutsu-rs/lua-ffi.git", rev = "1ef3caf772d72068297ddf75df06fd2ef8c1daab", optional = true }
|
|
num-derive = "0.3.2"
|
|
num-traits = "0.2.12"
|
|
paste = "1.0.0"
|
|
pretty_env_logger = "0.4.0"
|
|
sdl2 = { version = "=0.34.2", optional = true, features = ["unsafe_textures", "bundled", "static-link"] }
|
|
sdl2-sys = { version = "=0.34.2", optional = true, features = ["bundled", "static-link"] }
|
|
#sokol = { git = "https://github.com/doukutsu-rs/sokol-rs.git", rev = "", optional = true }
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_derive = "1"
|
|
serde_yaml = "0.8"
|
|
strum = "0.20"
|
|
strum_macros = "0.20"
|
|
# remove and replace when drain_filter is in stable
|
|
vec_mut_scan = "0.4"
|
|
webbrowser = "0.5.5"
|
|
winit = { version = "0.24", optional = true, default_features = false, features = ["x11"] }
|
|
|
|
#[build-dependencies]
|
|
#gl_generator = { version = "0.14.0", optional = true }
|
|
|
|
[target.'cfg(target_os = "windows")'.dependencies]
|
|
winapi = { version = "0.3", features = ["winuser"] }
|
|
|
|
[target.'cfg(target_os = "android")'.dependencies]
|
|
ndk = "0.2"
|
|
ndk-glue = "0.2"
|
|
ndk-sys = "0.2"
|
|
jni = "0.19"
|