Skip to content

Commit c4e942b

Browse files
committed
Update doc & add strip flag for release build
Signed-off-by: kexuan.yang <kexuan.yang@gmail.com>
1 parent a082755 commit c4e942b

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

.cargo/config.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ opt-level = 'z'
77
lto = true
88
codegen-units = 1
99
panic = 'abort'
10+
strip = true

src/mmkv.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,8 @@ impl MMKV {
8686
Initialize the MMKV instance with a writeable directory,
8787
absolute or relative paths are acceptable.
8888
89-
All API calls(except [set_logger](MMKV::set_logger), [set_log_level](MMKV::set_log_level))
90-
before initialization will panic.
91-
92-
Calling [initialize](MMKV::initialize) multiple times is allowed,
93-
the old instance will be closed (see [close](MMKV::close)), the last call will take over.
89+
Calling [new](MMKV::new) multiple times with same parameter `dir` will get different MMKV
90+
instances share the same mmap, it's safe to call get or put concurrently on these instances.
9491
9592
If enabled feature "encryption", additional param `key` is required,
9693
the key should be a hexadecimal string of length 16, for example:

0 commit comments

Comments
 (0)