1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- #![doc = include_str!("../README.md")]
- #![feature(c_unwind)]
- #![feature(naked_functions)]
- // lang_items is an internal feature. `internal_features` lint is added recently
- // so also allow unknown lints to prevent warning in older nightly versions.
- #![cfg_attr(
- any(feature = "personality", feature = "personality-dummy"),
- allow(internal_features)
- )]
- #![cfg_attr(
- any(feature = "personality", feature = "personality-dummy"),
- feature(lang_items)
- )]
- #![cfg_attr(
- any(feature = "panicking", feature = "panic-handler-dummy"),
- feature(core_intrinsics)
- )]
- #![cfg_attr(feature = "panic-handler", feature(thread_local))]
- #![warn(rust_2018_idioms)]
- #![warn(unsafe_op_in_unsafe_fn)]
- #![no_std]
- #[cfg(feature = "alloc")]
- extern crate alloc;
- #[cfg(feature = "unwinder")]
- mod unwinder;
- #[cfg(all(feature = "unwinder", feature = "fde-custom"))]
- pub use unwinder::custom_eh_frame_finder;
- pub mod abi;
- mod arch;
- mod util;
- #[cfg(feature = "print")]
- pub mod print;
- #[cfg(feature = "personality")]
- mod personality;
- #[cfg(all(not(feature = "personality"), feature = "personality-dummy"))]
- mod personality_dummy;
- #[cfg(feature = "panic")]
- pub mod panic;
- #[cfg(feature = "panicking")]
- pub mod panicking;
- #[cfg(feature = "panic-handler")]
- mod panic_handler;
- #[cfg(all(not(feature = "panic-handler"), feature = "panic-handler-dummy"))]
- mod panic_handler_dummy;
- #[cfg(feature = "system-alloc")]
- mod system_alloc;
|