-
Notifications
You must be signed in to change notification settings - Fork 89
/
Cargo.toml
175 lines (142 loc) · 3.69 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
[package]
name = "sfml"
description = "Rust binding for sfml"
version = "0.24.0"
authors = ["Jeremy Letang <[email protected]>"]
documentation = "https://docs.rs/sfml"
repository = "https://github.com/jeremyletang/rust-sfml"
license = "zlib-acknowledgement"
keywords = ["sfml", "multimedia", "game"]
readme = "README.md"
edition = "2021"
rust-version = "1.82"
# We have to exclude a few things, otherwise, the package would be too big for crates.io
exclude = [
"SFML/doc",
"SFML/examples",
"SFML/tools",
"SFML/extlibs/bin",
"SFML/extlibs/libs-android",
"SFML/extlibs/libs-ios",
"SFML/extlibs/libs-mingw-ucrt",
"SFML/extlibs/libs-osx",
"SFML/extlibs/libs-mingw/x64/libFLAC.a",
"SFML/extlibs/libs-mingw/x64/libogg.a",
"SFML/extlibs/libs-mingw/x86/libFLAC.a",
"SFML/extlibs/libs-mingw/x86/libogg.a",
"SFML/extlibs/libs-msvc/x64/flac.lib",
"SFML/extlibs/libs-msvc/x64/ogg.lib",
"SFML/extlibs/libs-msvc/x86/flac.lib",
"SFML/extlibs/libs-msvc/x86/ogg.lib",
"SFML/extlibs/libs-msvc-universal/x86/flac.lib",
"SFML/extlibs/libs-msvc-universal/x86/ogg.lib",
"SFML/extlibs/libs-msvc-universal/x64/flac.lib",
"SFML/extlibs/libs-msvc-universal/x64/ogg.lib",
"SFML/extlibs/libs-msvc-universal/ARM64",
]
[package.metadata.docs.rs]
cargo-args = ["-Zunstable-options", "-Zrustdoc-scrape-examples"]
rustdoc-args = ["-Zunstable-options", "--generate-link-to-definition"]
[features]
default = ["graphics", "audio"]
window = ["dep:bitflags"]
graphics = ["window"]
audio = ["dep:libflac-sys"]
serde = ["dep:serde"]
# Used to skip running certain tests on CI, since it's running in a headless environment.
ci-headless = []
[dependencies]
link-cplusplus = "1.0.9"
num-traits = "0.2.15"
[dependencies.serde]
version = "1.0"
features = ["derive"]
optional = true
[dependencies.widestring]
version = "1.0"
[dependencies.bitflags]
version = "2.3.3"
optional = true
[dependencies.libflac-sys]
version = "0.3"
optional = true
[build-dependencies]
cc = "1.0.79"
cmake = "0.1.51"
pkg-config = "0.3.31"
[dev-dependencies]
rand = "0.8.5"
glu-sys = "0.1.4"
[lib]
name = "sfml"
[[example]]
name = "borrowed-resources"
required-features = ["graphics"]
doc-scrape-examples = true
[[example]]
name = "custom-drawable"
required-features = ["graphics"]
[[example]]
name = "custom-shape"
required-features = ["graphics"]
[[example]]
name = "custom-sound-stream"
required-features = ["audio"]
[[example]]
name = "mouse"
required-features = ["graphics"]
[[example]]
name = "music-stream"
required-features = ["audio"]
[[example]]
name = "pong"
required-features = ["graphics", "audio"]
[[example]]
name = "sound-capture"
required-features = ["audio"]
[[example]]
name = "sound"
required-features = ["audio"]
[[example]]
name = "unicode-text-entry"
required-features = ["graphics"]
[[example]]
name = "vertex-arrays"
required-features = ["graphics"]
[[example]]
name = "shader"
required-features = ["graphics"]
[[example]]
name = "custom-sound-recorder"
required-features = ["audio", "graphics"]
[[example]]
name = "positional-audio"
required-features = ["audio", "graphics"]
[[example]]
name = "cursor"
required-features = ["graphics"]
[[example]]
name = "resource-holder"
required-features = ["graphics", "audio"]
[[example]]
name = "vertex-buffers"
required-features = ["graphics"]
[[example]]
name = "spritemark"
required-features = ["graphics"]
[[example]]
name = "opengl"
required-features = ["graphics"]
[[example]]
name = "joystick"
required-features = ["window"]
[[example]]
name = "rc-resources"
required-features = ["graphics", "window"]
[[example]]
name = "window-test"
required-features = ["graphics", "window"]
[[example]]
name = "opengl-context"
required-features = ["window"]
[workspace]