Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
bevyengine
GitHub Repository: bevyengine/bevy
Path: blob/main/crates/bevy_image/Cargo.toml
6592 views
1
[package]
2
name = "bevy_image"
3
version = "0.17.0-dev"
4
edition = "2024"
5
description = "Provides image types for Bevy Engine"
6
homepage = "https://bevy.org"
7
repository = "https://github.com/bevyengine/bevy"
8
license = "MIT OR Apache-2.0"
9
keywords = ["bevy"]
10
11
[features]
12
default = ["bevy_reflect"]
13
14
# bevy_reflect can't optional as it's needed for TypePath
15
# this feature only control reflection in bevy_image
16
bevy_reflect = ["bevy_math/bevy_reflect"]
17
18
# Image formats
19
basis-universal = ["dep:basis-universal"]
20
bmp = ["image/bmp"]
21
dds = ["ddsfile"]
22
exr = ["image/exr"]
23
ff = ["image/ff"]
24
gif = ["image/gif"]
25
hdr = ["image/hdr"]
26
ktx2 = ["dep:ktx2"]
27
ico = ["image/ico"]
28
jpeg = ["image/jpeg"]
29
png = ["image/png"]
30
pnm = ["image/pnm"]
31
qoi = ["image/qoi"]
32
tga = ["image/tga"]
33
tiff = ["image/tiff"]
34
webp = ["image/webp"]
35
serialize = ["bevy_reflect", "bevy_platform/serialize", "wgpu-types/serde"]
36
37
# For ktx2 supercompression
38
zlib = ["flate2"]
39
40
# A marker feature indicating zstd support is required for a particular feature.
41
# A backend must be chosen by enabling either the "zstd_rust" or the "zstd_c" feature.
42
zstd = []
43
# Pure-rust zstd implementation (safer)
44
zstd_rust = ["zstd", "dep:ruzstd"]
45
# Binding to zstd C implementation (faster)
46
zstd_c = ["zstd", "dep:zstd"]
47
48
# Enables compressed KTX2 UASTC texture output on the asset processor
49
compressed_image_saver = ["basis-universal"]
50
51
[dependencies]
52
# bevy
53
bevy_app = { path = "../bevy_app", version = "0.17.0-dev" }
54
bevy_asset = { path = "../bevy_asset", version = "0.17.0-dev" }
55
bevy_color = { path = "../bevy_color", version = "0.17.0-dev", features = [
56
"serialize",
57
"wgpu-types",
58
] }
59
bevy_ecs = { path = "../bevy_ecs", version = "0.17.0-dev", default-features = false }
60
bevy_math = { path = "../bevy_math", version = "0.17.0-dev" }
61
bevy_reflect = { path = "../bevy_reflect", version = "0.17.0-dev" }
62
bevy_utils = { path = "../bevy_utils", version = "0.17.0-dev" }
63
bevy_platform = { path = "../bevy_platform", version = "0.17.0-dev", default-features = false, features = [
64
"std",
65
] }
66
67
# rendering
68
image = { version = "0.25.2", default-features = false }
69
70
# misc
71
bitflags = { version = "2.3", features = ["serde"] }
72
bytemuck = { version = "1.5" }
73
wgpu-types = { version = "26", default-features = false }
74
serde = { version = "1", features = ["derive"] }
75
thiserror = { version = "2", default-features = false }
76
futures-lite = "2.0.1"
77
guillotiere = "0.6.0"
78
rectangle-pack = "0.4"
79
ddsfile = { version = "0.5.2", optional = true }
80
ktx2 = { version = "0.4.0", optional = true }
81
# For ktx2 supercompression
82
flate2 = { version = "1.0.22", optional = true }
83
zstd = { version = "0.13.3", optional = true }
84
ruzstd = { version = "0.8.0", optional = true }
85
# For transcoding of UASTC/ETC1S universal formats, and for .basis file support
86
basis-universal = { version = "0.3.0", optional = true }
87
tracing = { version = "0.1", default-features = false, features = ["std"] }
88
half = { version = "2.4.1" }
89
90
[dev-dependencies]
91
bevy_ecs = { path = "../bevy_ecs", version = "0.17.0-dev" }
92
serde_json = "1.0.140"
93
94
[lints]
95
workspace = true
96
97
[package.metadata.docs.rs]
98
rustdoc-args = ["-Zunstable-options", "--generate-link-to-definition"]
99
all-features = true
100
101