Cargo Features

fermium has no features set by default.

fermium = { version = "22605.0.0", features = ["vulkan", "cargo_check", "static_bundled_build", "raw-window-handle"] }
vulkan = raw_vulkan_handle

Affects fermium::vulkan


Enabling this will completely skip the build/link of SDL2 itself. This makes cargo check and similar much faster (including rust-analyzer), but you'll get linking errors if you try to actually build an executable with this enabled (eg: a bin/bench/test).

static_bundled_build = cmake

If you enable this, the crate will static link to a build of the bundled version of SDL2. Otherwise, the crate will dynamically link to the SDL2
installed on the system (on Windows x86_64 MSVC it will dynamic link to provided developer files).

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.

raw-window-handle implicit feature

Enables raw-window-handle ^0.5


Interoperability library for Rust Windowing applications

raw_vulkan_handle vulkan?
cmake build static_bundled_build?