Fix no-std raw test, after removal of lang items
This commit is contained in:
parent
b2edf157cd
commit
18259fd67b
|
@ -52,10 +52,10 @@ use core::fmt::{self, write, Write};
|
|||
use core::intrinsics;
|
||||
use core::panic::PanicInfo;
|
||||
|
||||
use secp256k1::ecdh::SharedSecret;
|
||||
use secp256k1::rand::{self, RngCore};
|
||||
use secp256k1::serde::Serialize;
|
||||
use secp256k1::*;
|
||||
use secp256k1::ecdh::SharedSecret;
|
||||
|
||||
use serde_cbor::de;
|
||||
use serde_cbor::ser::SliceWrite;
|
||||
|
@ -112,23 +112,10 @@ fn start(_argc: isize, _argv: *const *const u8) -> isize {
|
|||
assert_ne!(x_arr, [0u8; 32]);
|
||||
assert_ne!(&y_arr[..], &[0u8; 32][..]);
|
||||
|
||||
|
||||
unsafe { libc::printf("Verified Successfully!\n\0".as_ptr() as _) };
|
||||
0
|
||||
}
|
||||
|
||||
// These functions are used by the compiler, but not
|
||||
// for a bare-bones hello world. These are normally
|
||||
// provided by libstd.
|
||||
#[lang = "eh_personality"]
|
||||
#[no_mangle]
|
||||
pub extern "C" fn rust_eh_personality() {}
|
||||
|
||||
// This function may be needed based on the compilation target.
|
||||
#[lang = "eh_unwind_resume"]
|
||||
#[no_mangle]
|
||||
pub extern "C" fn rust_eh_unwind_resume() {}
|
||||
|
||||
const MAX_PRINT: usize = 511;
|
||||
struct Print {
|
||||
loc: usize,
|
||||
|
|
Loading…
Reference in New Issue