Skip to content

Commit

Permalink
doc
Browse files Browse the repository at this point in the history
  • Loading branch information
kingwingfly committed Aug 13, 2024
1 parent 13955ad commit 33a5bce
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 13 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ Note: In this file, do not use the hard wrap in the middle of a sentence for com
-->

## [Unreleased]
## [1.0.2] - 2024-08-13

- doc

## [1.0.1] - 2024-08-13

- update keyring to 3.0, removing linux only features
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ members = ["encrypt-config", "encrypt-config-derive", "tests", "examples"]
resolver = "2"

[workspace.package]
version = "1.0.1"
version = "1.0.2"
authors = ["Louis <[email protected]>"]
description = "A Rust crate to manage, persist and encrypt your configurations."
license = "MIT"
Expand Down
6 changes: 0 additions & 6 deletions encrypt-config/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,6 @@ encrypt_config = { version = "1.0.0", features = ["full"] }
opt-level = 3
```

**Caution: This version bases on `rom_cache` crate, and the cache size is fixed for easy using.**

**So, too heavy workload will certainly lead to panic. See [`Config`] for detailes.**

<!-- ABOUT THE PROJECT -->
## About The Project

Expand Down Expand Up @@ -102,8 +98,6 @@ The `Config` in this crate is a wrapper of `rom_cache::Cache`, only if the confi

<p align="right">(<a href="#readme-top">back to top</a>)</p>



### Built With

* Rust
Expand Down
7 changes: 1 addition & 6 deletions encrypt-config/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ use std::any::Any;
/// 2. If cache miss, reading loads the value from the source to cache, while writing saves the value to source then loads it to cache.
/// 3. All caches values dirty will be written back when Config dropped.
///
/// **At most N** different types in all threads are safe to be managed
/// due to the default cache capacity.
/// **At most N** different types in all threads are safe to be managed due to the default cache capacity.
/// And each type can be ref **up to 63** times or mut ref **up to 1** time at the same time.
/// Or panic occurs with errors like `Busy` or `Locked`.
///
Expand Down Expand Up @@ -70,8 +69,6 @@ impl<const N: usize> Config<N> {
///
/// T: (T1, T2, T3,)
///
/// Caution: You can only get up to 32 (1 << 5) immutable refs ([`CfgRef`]) at the same time.
///
/// If the value was not valid, it would try loading from source, and fell back to the default value.
/// See [`CfgRef`] for more details.
pub fn get_many<T>(&self) -> <T as Cacheable<((),)>>::Ref<'_>
Expand All @@ -85,8 +82,6 @@ impl<const N: usize> Config<N> {
///
/// T: (T1, T2, T3,)
///
/// Caution: You can only get up to 1 mutable ref ([`CfgMut`]) at the same time.
///
/// If the value was not valid, it would try loading from source, and fell back to the default value.
/// See [`CfgMut`] for more details.
pub fn get_mut_many<T>(&self) -> <T as Cacheable<((),)>>::Mut<'_>
Expand Down

0 comments on commit 33a5bce

Please sign in to comment.