added panic_handler implementation

This commit is contained in:
Emma Tebibyte 2023-03-23 18:47:30 -04:00
parent 42bb7655ba
commit 3cb89896eb
Signed by: emma
GPG Key ID: 6D661C738815E7DD
3 changed files with 8 additions and 2 deletions

2
Cargo.lock generated
View File

@ -186,7 +186,7 @@ checksum = "43b2853a4d09f215c24cc5489c992ce46052d359b5109343cbafbf26bc62f8a3"
[[package]] [[package]]
name = "spd" name = "spd"
version = "0.0.1" version = "0.0.2"
dependencies = [ dependencies = [
"bindgen", "bindgen",
"libc", "libc",

View File

@ -1,6 +1,6 @@
[package] [package]
name = "spd" name = "spd"
version = "0.0.1" version = "0.0.2"
edition = "2021" edition = "2021"
license = "LGPL-3.0-or-later" license = "LGPL-3.0-or-later"
authors = [ authors = [

View File

@ -74,3 +74,9 @@ pub use libc_println as println;
pub use libc_writeln as writeln; pub use libc_writeln as writeln;
pub const SOURCE: &str = "https://git.tebibyte.media/emma/spd.git"; pub const SOURCE: &str = "https://git.tebibyte.media/emma/spd.git";
#[panic_handler]
pub fn panic(info: &panic::PanicInfo) -> ! {
eprintln!("{:?}", info);
loop {}
}