Skip to main content

Crate rt

Crate rt 

Source

Modules§

boot
cpu
crash
fx
os
portable
Portable arithmetic, available on native targets for exact backend comparisons.
sync
x87

Macros§

app_version
The app’s own version: version= of apps/NAME/PACKAGE, which build_rs.py hands to rustc as JFGUI_VERSION (every program of the app); “0.0.0” without one. An expression of type &'static str: const APP_VERSION: &str = rt::app_version!();, update::Config::new(app, rt::app_version!(), ..).
main
(see above)

Constants§

VERSION
the library’s version, “MAJOR.MINOR.PATCH” (the root Cargo.toml; docs/VERSIONING.md says what a change of each part promises). Not the app’s version: that is rt::app_version!().
VERSION_MAJOR
the first number of VERSION (incompatible API changes; while 0, the MINOR number counts them)
VERSION_MINOR
the second number of VERSION
VERSION_PATCH
the third number of VERSION

Functions§

panic_hook
(feature std) std’s panics end as rt’s panic handler ends them without std: one line on stderr, the crash hook, exit code 3. plat’s start of a std program installs it; replacing it with std::panic::set_hook gives up JFLib’s crash report for panics.