Cargo Features
[dependencies]
mustang = { version = "0.17.0", default-features = false, features = ["std", "thread", "env_logger", "atomic-dbg-logger", "log", "max_level_off", "experimental-relocate", "eh-personality", "eh-personality-continue", "panic-handler", "panic-handler-trap", "global-allocator"] }
- default = std, thread
-
These default features are set whenever
mustang
is added without
somewhere in the dependency tree.default-features = false - std default
- thread default
- env_logger
-
Enables env_logger of c-gull
c-gull:
Install the
env_logger
crate as a logger. - atomic-dbg-logger
-
Enables atomic-dbg-logger of c-gull
c-gull:
Install
atomic_dbg::log
as a logger. - log
-
c-gull:
Enable logging of program and thread startup and shutdown.
- max_level_off
-
Enables max_level_off of c-gull
c-gull:
Disable logging.
- experimental-relocate
-
Enable highly experimental support for performing startup-time relocations,
needed to support statically-linked PIE executables.Enables experimental-relocate of c-gull
- eh-personality
-
Provide a
#[lang = eh_personality]
function suitable for unwinding (for no-std).If you know your program never unwinds and want smaller code size, use "eh-personality-continue" instead.
This is only needed in no-std builds, as std provides a personality. See the "personality" feature of the unwinding crate for more details.
Enables eh-personality of c-gull
- eh-personality-continue
-
Provide a
#[lang = eh_personality]
function that just returnsCONTINUE_UNWIND
(for no-std). Use this if you know your program will never unwind and don't want any extra code.Enables eh-personality-continue of c-gull
- panic-handler
-
Provide a
#[panic_handler]
function suitable for unwinding (for no-std).If you know your program never panics and want smaller code size, use "panic-handler-trap" instead.
This is only needed in no-std builds, as std provides a panic handler. See the "panic-handler" feature of the unwinding crate for more details.
Enables panic-handler of c-gull
- panic-handler-trap
-
Provide a
#[panic_handler]
function that just traps (for no-std). Use this if you know your program will never panic and don't want any extra code.Enables panic-handler-trap of c-gull
- global-allocator
-
Provide a
#[global_allocator]
function (for no-std).This is only needed in no-std builds, as std provides a global allocator. Alternatively, you can define the global allocator manually; see the example-crates/custom-allocator example.
Enables global-allocator of c-gull