Skip to content

Commit

Permalink
Update doc & add strip flag for release build
Browse files Browse the repository at this point in the history
Signed-off-by: kexuan.yang <[email protected]>
  • Loading branch information
yangkx1024 committed Apr 29, 2024
1 parent 735629f commit d95b4ec
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
1 change: 1 addition & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ opt-level = 'z'
lto = true
codegen-units = 1
panic = 'abort'
strip = true
7 changes: 2 additions & 5 deletions src/mmkv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,8 @@ impl MMKV {
Initialize the MMKV instance with a writeable directory,
absolute or relative paths are acceptable.
All API calls(except [set_logger](MMKV::set_logger), [set_log_level](MMKV::set_log_level))
before initialization will panic.
Calling [initialize](MMKV::initialize) multiple times is allowed,
the old instance will be closed (see [close](MMKV::close)), the last call will take over.
Calling [new](MMKV::new) multiple times with same parameter `dir` will get different MMKV
instances share the same mmap, it's safe to call get or put concurrently on these instances.
If enabled feature "encryption", additional param `key` is required,
the key should be a hexadecimal string of length 16, for example:
Expand Down

0 comments on commit d95b4ec

Please sign in to comment.