Cargo Features
[dependencies]
origin-studio = { version = "0.9.0", default-features = false, features = ["std", "alloc", "thread", "log", "stack-overflow", "experimental-relocate", "atomic-dbg"] }
- default = stack-overflow, std, thread
-
These default features are set whenever
origin-studio
is added without
somewhere in the dependency tree.default-features = false - std default = alloc
-
Provide a
std
-like API.Enables fs and stdio of rustix
Affects
origin-studio::env
,origin-studio::io
,origin-studio::prelude
,origin-studio::sync
,origin-studio::thread
… - alloc std = rustix-dlmalloc
-
Provide the
alloc
API.Enables alloc of origin ^0.16.0
- thread default = rustix-futex-sync
-
Support threads
Enables origin-thread of origin ^0.16.0
Affects
origin-studio::sync
,origin-studio::thread
… - log
-
Enable debug logging.
Enables atomic-dbg-logger and log of origin ^0.16.0
- stack-overflow default
-
Enable Rust's stack overflow reporting code.
- experimental-relocate
-
Enable highly experimental support for performing startup-time relocations,
needed to support statically-linked PIE executables.Enables experimental-relocate of origin ^0.16.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.
- rustix stack-overflow std
- rustix-dlmalloc alloc?
- rustix-futex-sync thread
- atomic-dbg implicit feature
-
Enables atomic-dbg
atomic-dbg:
Atomic
dbg
/eprintln
/eprint
macros