-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathCargo.toml
48 lines (42 loc) · 1.56 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
[package]
name = "orbclient"
version = "0.3.48"
authors = ["Jeremy Soller <[email protected]>"]
description = "The Orbital Client Library"
documentation = "https://docs.rs/orbclient"
repository = "https://gitlab.redox-os.org/redox-os/orbclient"
readme = "README.md"
license = "MIT"
edition = "2018"
keywords = [
"orbital",
"redox",
"ui",
]
[lib]
name = "orbclient"
path = "src/lib.rs"
[target.'cfg(not(target_os = "redox"))'.dependencies]
sdl2 = { version = "0.35.2", optional = true }
sdl2-sys = { version = "0.35.2", optional = true }
libc = { version = "0.2", optional = true }
raw-window-handle = { version = "0.5.2", optional = true }
[target.'cfg(target_os = "redox")'.dependencies]
libredox = "0.1"
[dev-dependencies]
toml = "0.7"
serde_derive = "=1.0.197"
[features]
default = ["std", "sdl", "unifont"]
std = []
sdl = ["sdl2", "sdl2-sys", "libc"]
bundled = ["sdl", "sdl2/bundled", "sdl2/static-link", "sdl2-sys/bundled", "sdl2-sys/static-link"]
unifont = []
# This is required to fix a problem compiling sdl2 v0.35.2 on macos with clang14
# until the rust-sdl project publishes a new version on crates.io with the fix that is in HEAD of Master
# See issues https://github.com/Rust-SDL2/rust-sdl2/issues/1302 where reported to them, and comment
# https://github.com/Rust-SDL2/rust-sdl2/issues/1302#issuecomment-1525745146 that indicates that a release may not
# be forthcoming very soon, hence this patch as a workaround.
[patch.crates-io]
sdl2 = { git = "https://github.com/Rust-SDL2/rust-sdl2.git" }
sdl2-sys = { git = "https://github.com/Rust-SDL2/rust-sdl2.git" }