You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* rust-bitcoin/master:
Fix no-std raw test, after removal of lang items
Fix broken benchmarks
Disable emscripten tests until they work again rust-lang/rust#66916rustwasm/team#291
Add constant of the prime of the curve field.
Simplify callback logic to returning raw coordinates
Removed no longer used dont_replace_c_symbols feature
Fix wrong feature name external-symbols
Fix missing return c_int in NonceFn
Copy file name to clipboardExpand all lines: no_std_test/src/main.rs
+9-22
Original file line number
Diff line number
Diff line change
@@ -14,13 +14,13 @@
14
14
15
15
//! # secp256k1 no-std test.
16
16
//! This binary is a short smallest rust code to produce a working binary *without libstd*.
17
-
//! This gives us 2 things:
17
+
//! This gives us 2 things:
18
18
//! 1. Test that the parts of the code that should work in a no-std enviroment actually work.
19
19
//! 2. Test that we don't accidentally import libstd into `secp256k1`.
20
-
//!
20
+
//!
21
21
//! The first is tested using the following command `cargo run --release | grep -q "Verified Successfully"`.
22
22
//! (Making sure that it successfully printed that. i.e. it didn't abort before that).
23
-
//!
23
+
//!
24
24
//! The second is tested by the fact that it compiles. if we accidentally link against libstd we should see the following error:
25
25
//! `error[E0152]: duplicate lang item found`.
26
26
//! Example:
@@ -33,11 +33,11 @@
33
33
//! |
34
34
//! = note: first defined in crate `panic_unwind` (which `std` depends on).
35
35
//! ```
36
-
//!
37
-
//! Notes:
36
+
//!
37
+
//! Notes:
38
38
//! * Requires `panic=abort` and `--release` to not depend on libunwind(which is provided usually by libstd) https://github.com/rust-lang/rust/issues/47493
39
39
//! * Requires linking with `libc` for calling `printf`.
40
-
//!
40
+
//!
41
41
42
42
#![feature(lang_items)]
43
43
#![feature(start)]
@@ -52,10 +52,10 @@ use core::fmt::{self, write, Write};
0 commit comments