File tree Expand file tree Collapse file tree 3 files changed +9
-8
lines changed
Expand file tree Collapse file tree 3 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -7,4 +7,5 @@ edition = "2021"
77ckb-std = " 0.17.0"
88
99[features ]
10- native-simulator = [" ckb-std/native-simulator" ]
10+ library = []
11+ native-simulator = [" library" , " ckb-std/native-simulator" ]
Original file line number Diff line number Diff line change 1- #![ cfg_attr( not( feature = "native-simulator " ) , no_std) ]
1+ #![ cfg_attr( not( feature = "library " ) , no_std) ]
22#![ allow( special_module_name) ]
33#![ allow( unused_attributes) ]
4- #[ cfg( feature = "native-simulator " ) ]
4+ #[ cfg( feature = "library " ) ]
55mod main;
6- #[ cfg( feature = "native-simulator " ) ]
6+ #[ cfg( feature = "library " ) ]
77pub use main:: program_entry;
88
99extern crate alloc;
Original file line number Diff line number Diff line change 1- #![ cfg_attr( not( any( feature = "native-simulator " , test) ) , no_std) ]
1+ #![ cfg_attr( not( any( feature = "library " , test) ) , no_std) ]
22#![ cfg_attr( not( test) , no_main) ]
33
4- #[ cfg( any( feature = "native-simulator " , test) ) ]
4+ #[ cfg( any( feature = "library " , test) ) ]
55extern crate alloc;
66
7- #[ cfg( not( any( feature = "native-simulator " , test) ) ) ]
7+ #[ cfg( not( any( feature = "library " , test) ) ) ]
88ckb_std:: entry!( program_entry) ;
9- #[ cfg( not( any( feature = "native-simulator " , test) ) ) ]
9+ #[ cfg( not( any( feature = "library " , test) ) ) ]
1010// By default, the following heap configuration is used:
1111// * 16KB fixed heap
1212// * 1.2MB(rounded up to be 16-byte aligned) dynamic heap
You can’t perform that action at this time.
0 commit comments