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"
7
7
ckb-std = " 0.17.0"
8
8
9
9
[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) ]
2
2
#![ allow( special_module_name) ]
3
3
#![ allow( unused_attributes) ]
4
- #[ cfg( feature = "native-simulator " ) ]
4
+ #[ cfg( feature = "library " ) ]
5
5
mod main;
6
- #[ cfg( feature = "native-simulator " ) ]
6
+ #[ cfg( feature = "library " ) ]
7
7
pub use main:: program_entry;
8
8
9
9
extern 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) ]
2
2
#![ cfg_attr( not( test) , no_main) ]
3
3
4
- #[ cfg( any( feature = "native-simulator " , test) ) ]
4
+ #[ cfg( any( feature = "library " , test) ) ]
5
5
extern crate alloc;
6
6
7
- #[ cfg( not( any( feature = "native-simulator " , test) ) ) ]
7
+ #[ cfg( not( any( feature = "library " , test) ) ) ]
8
8
ckb_std:: entry!( program_entry) ;
9
- #[ cfg( not( any( feature = "native-simulator " , test) ) ) ]
9
+ #[ cfg( not( any( feature = "library " , test) ) ) ]
10
10
// By default, the following heap configuration is used:
11
11
// * 16KB fixed heap
12
12
// * 1.2MB(rounded up to be 16-byte aligned) dynamic heap
You can’t perform that action at this time.
0 commit comments