Cargo Features

[dependencies]
tetra = { version = "0.8.0", default-features = false, features = ["audio", "audio_flac", "audio_mp3", "audio_vorbis", "audio_wav", "font_ttf", "texture_png", "texture_jpeg", "texture_gif", "texture_bmp", "texture_ico", "texture_tiff", "texture_webp", "texture_pnm", "texture_dds", "texture_tga", "serde_support", "sdl2_bundled", "sdl2_static_link"] }
default = audio, audio_mp3, audio_vorbis, audio_wav, font_ttf, texture_bmp, texture_gif, texture_jpeg, texture_png

These default features are set whenever tetra is added without default-features = false somewhere in the dependency tree.

audio default audio_flac? audio_mp3 audio_vorbis audio_wav = rodio

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_flac = audio

Enables support for audio formats.

Enables flac of rodio ^0.17.1

audio_mp3 default = audio

Enables mp3 of rodio ^0.17.1

audio_vorbis default = audio

Enables vorbis of rodio ^0.17.1

audio_wav default = audio

Enables wav of rodio ^0.17.1

font_ttf default = ab_glyph

Enables support for font formats.

texture_png default

Enables support for texture formats.

Enables png of image ^0.24.1

texture_jpeg default

Enables jpeg and jpeg_rayon of image ^0.24.1

texture_gif default

Enables gif of image ^0.24.1

texture_bmp default

Enables bmp of image ^0.24.1

texture_ico

Enables ico of image ^0.24.1

texture_tiff

Enables tiff of image ^0.24.1

texture_webp

Enables webp of image ^0.24.1

texture_pnm

Enables pnm of image ^0.24.1

texture_dds

Enables dds and dxt of image ^0.24.1

texture_tga

Enables tga of image ^0.24.1

serde_support = serde

Enables support for serialization/deserialization via Serde.

Enables serde of vek ^0.15.4

sdl2_bundled

Compiles SDL2 from source (see https://github.com/Rust-SDL2/rust-sdl2#bundled-feature).

Enables bundled of sdl2 ^0.35.0

Links SDL2 statically (see https://hg.libsdl.org/SDL/file/default/docs/README-dynapi.md).

Enables static-link of sdl2 ^0.35.0

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

rodio audio audio_flac? audio_mp3 audio_vorbis audio_wav

Enables rodio ^0.17.1

serde serde_support?
ab_glyph font_ttf