File tree 2 files changed +20
-0
lines changed 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,10 @@ and this project adheres to
6
6
7
7
## [ Unreleased]
8
8
9
+ ### Added
10
+
11
+ - cosmwasm-vm: Add constructor ` CacheOptions::new `
12
+
9
13
## [ 1.5.0] - 2023-10-31
10
14
11
15
### Added
Original file line number Diff line number Diff line change @@ -65,6 +65,22 @@ pub struct CacheOptions {
65
65
pub instance_memory_limit : Size ,
66
66
}
67
67
68
+ impl CacheOptions {
69
+ pub fn new (
70
+ base_dir : impl Into < PathBuf > ,
71
+ available_capabilities : impl Into < HashSet < String > > ,
72
+ memory_cache_size : Size ,
73
+ instance_memory_limit : Size ,
74
+ ) -> Self {
75
+ Self {
76
+ base_dir : base_dir. into ( ) ,
77
+ available_capabilities : available_capabilities. into ( ) ,
78
+ memory_cache_size,
79
+ instance_memory_limit,
80
+ }
81
+ }
82
+ }
83
+
68
84
pub struct CacheInner {
69
85
/// The directory in which the Wasm blobs are stored in the file system.
70
86
wasm_path : PathBuf ,
You can’t perform that action at this time.
0 commit comments