diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fd383e90..50139b6d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -52,6 +52,7 @@ jobs: toolchain: ${{matrix.rust}} - run: cd serde && cargo build --features rc - run: cd serde && cargo build --no-default-features + - run: cd test_suite/no_std && cargo build nightly: name: Rust nightly ${{matrix.os == 'windows' && '(windows)' || ''}} diff --git a/test_suite/no_std/Cargo.toml b/test_suite/no_std/Cargo.toml index 5bf7eb2d..9c8f6aa5 100644 --- a/test_suite/no_std/Cargo.toml +++ b/test_suite/no_std/Cargo.toml @@ -10,4 +10,10 @@ libc = { version = "0.2", default-features = false } serde = { path = "../../serde", default-features = false } serde_derive = { path = "../../serde_derive" } +[profile.dev] +panic = "abort" + +[profile.release] +panic = "abort" + [workspace] diff --git a/test_suite/no_std/src/main.rs b/test_suite/no_std/src/main.rs index e5338922..71d553e1 100644 --- a/test_suite/no_std/src/main.rs +++ b/test_suite/no_std/src/main.rs @@ -1,5 +1,3 @@ -#![allow(internal_features)] -#![feature(lang_items)] #![no_std] #![no_main] @@ -10,10 +8,6 @@ extern "C" fn main(_argc: c_int, _argv: *const *const u8) -> c_int { 0 } -#[lang = "eh_personality"] -#[no_mangle] -pub extern "C" fn rust_eh_personality() {} - #[panic_handler] fn panic(_info: &core::panic::PanicInfo) -> ! { unsafe {