-
-
Notifications
You must be signed in to change notification settings - Fork 63
/
Cargo.toml
79 lines (69 loc) · 2.18 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
[package]
name = "tetra"
description = "A simple 2D game framework written in Rust"
version = "0.8.0"
edition = "2021"
authors = ["Joe Clay <27cupsofcoffee@gmail.com>"]
license = "MIT"
repository = "https://github.com/17cupsofcoffee/tetra"
documentation = "https://docs.rs/tetra"
readme = "README.md"
keywords = ["game", "engine", "framework", "gamedev"]
categories = ["game-engines"]
[dependencies]
sdl2 = "0.37.0"
rodio = { version = "0.20.1", optional = true, default-features = false }
glow = "0.15.0"
image = { version = "0.25.0", default-features = false }
vek = { version = "0.17.0", default-features = false }
hashbrown = "0.15.1"
serde = { version = "1.0.104", optional = true }
ab_glyph = { version = "0.2.2", optional = true }
xi-unicode = "0.3.0"
bytemuck = "1.5.0"
num-traits = "0.2.14"
lyon_tessellation = "1.0.7"
half = { version = "2.1.0", features = ["bytemuck"] }
[dev-dependencies]
rand = "0.8.0"
anyhow = "1.0.33"
legion = "0.4.0"
[features]
default = [
"audio",
"audio_mp3",
"audio_vorbis",
"audio_wav",
"font_ttf",
"texture_png",
"texture_jpeg",
"texture_gif",
"texture_bmp",
]
# Enables the `tetra::audio` API. This feature can be disabled if you want to use a different
# audio API in your game (e.g. FMod or WWise).
audio = ["rodio"]
# Enables support for audio formats.
audio_flac = ["audio", "rodio/flac"]
audio_mp3 = ["audio", "rodio/mp3"]
audio_vorbis = ["audio", "rodio/vorbis"]
audio_wav = ["audio", "rodio/wav"]
# Enables support for font formats.
font_ttf = ["ab_glyph"]
# Enables support for texture formats.
texture_png = ["image/png"]
texture_jpeg = ["image/jpeg"]
texture_gif = ["image/gif"]
texture_bmp = ["image/bmp"]
texture_ico = ["image/ico"]
texture_tiff = ["image/tiff"]
texture_webp = ["image/webp"]
texture_pnm = ["image/pnm"]
texture_dds = ["image/dds"]
texture_tga = ["image/tga"]
# Enables support for serialization/deserialization via Serde.
serde_support = ["serde", "vek/serde"]
# Compiles SDL2 from source (see https://github.com/Rust-SDL2/rust-sdl2#bundled-feature).
sdl2_bundled = ["sdl2/bundled"]
# Links SDL2 statically (see https://hg.libsdl.org/SDL/file/default/docs/README-dynapi.md).
sdl2_static_link = ["sdl2/static-link"]