Compare commits

...
2 Commits
Author SHA1 Message Date
semantic-release-bot 52d9e1e93e chore(release): 1.3.1 [skip ci]
## [1.3.1](https://github.com/asepharyana/mytheclipse/compare/v1.3.0...v1.3.1) (2026-08-28)

### Bug Fixes

* **ci:** gate event crate doctest behind mem feature and apply rustfmt ([1994115](https://github.com/asepharyana/mytheclipse/commit/19941156b43ec58370d0d1369174ec84400e9bc9))
2026-08-28 15:41:53 +00:00
asepharyana 19941156b4 fix(ci): gate event crate doctest behind mem feature and apply rustfmt
The crate-root doctest used InMemoryEventBus/TypedEventBus (gated behind
the 'mem' feature), so `cargo test -p mytheclipse-event --no-default-features
--features amqp|nats` failed to compile the doctest (E0432). The example is
now no_run with the mem-dependent imports inside a #[cfg(feature="mem")]
main, so it compiles (and runs) when mem is on and degrades to an empty main
when off.

Also apply rustfmt to mytheclipse-config/dynamic.rs and
mytheclipse-storage/{gcs,s3}.rs to satisfy cargo fmt --all --check.
2026-08-28 22:41:06 +07:00
12 changed files with 53 additions and 26 deletions
+7
View File
@@ -1,3 +1,10 @@
## [1.3.1](https://github.com/asepharyana/mytheclipse/compare/v1.3.0...v1.3.1) (2026-08-28)
### Bug Fixes
* **ci:** gate event crate doctest behind mem feature and apply rustfmt ([1994115](https://github.com/asepharyana/mytheclipse/commit/19941156b43ec58370d0d1369174ec84400e9bc9))
# [1.3.0](https://github.com/asepharyana/mytheclipse/compare/v1.2.0...v1.3.0) (2026-08-28)
Generated
+6 -6
View File
@@ -2539,7 +2539,7 @@ dependencies = [
[[package]]
name = "mytheclipse"
version = "1.3.0"
version = "1.3.1"
dependencies = [
"num_cpus",
"rand 0.8.8",
@@ -2551,7 +2551,7 @@ dependencies = [
[[package]]
name = "mytheclipse-cache"
version = "1.3.0"
version = "1.3.1"
dependencies = [
"async-trait",
"moka",
@@ -2564,7 +2564,7 @@ dependencies = [
[[package]]
name = "mytheclipse-config"
version = "1.3.0"
version = "1.3.1"
dependencies = [
"dotenvy",
"notify",
@@ -2579,7 +2579,7 @@ dependencies = [
[[package]]
name = "mytheclipse-crypto"
version = "1.3.0"
version = "1.3.1"
dependencies = [
"aead",
"aes-gcm",
@@ -2596,7 +2596,7 @@ dependencies = [
[[package]]
name = "mytheclipse-event"
version = "1.3.0"
version = "1.3.1"
dependencies = [
"async-nats",
"async-trait",
@@ -2612,7 +2612,7 @@ dependencies = [
[[package]]
name = "mytheclipse-storage"
version = "1.3.0"
version = "1.3.1"
dependencies = [
"async-trait",
"aws-config",
+1 -1
View File
@@ -1,6 +1,6 @@
[package]
name = "mytheclipse-cache"
version = "1.3.0"
version = "1.3.1"
edition = "2021"
rust-version = "1.75"
license = "MIT OR Apache-2.0"
+1 -1
View File
@@ -1,6 +1,6 @@
[package]
name = "mytheclipse-config"
version = "1.3.0"
version = "1.3.1"
edition = "2021"
rust-version = "1.75"
license = "MIT OR Apache-2.0"
+4 -1
View File
@@ -49,7 +49,10 @@ impl<T: Config + Clone> DynamicConfig<T> {
/// Replaces the current value and notifies subscribers.
pub fn set(&self, new: T) {
*self.inner.write().expect("mytheclipse-config: RwLock poisoned") = new;
*self
.inner
.write()
.expect("mytheclipse-config: RwLock poisoned") = new;
let _ = self.tx.send(());
}
+1 -1
View File
@@ -1,6 +1,6 @@
[package]
name = "mytheclipse-crypto"
version = "1.3.0"
version = "1.3.1"
edition = "2021"
rust-version = "1.75"
license = "MIT OR Apache-2.0"
+1 -1
View File
@@ -1,6 +1,6 @@
[package]
name = "mytheclipse-event"
version = "1.3.0"
version = "1.3.1"
edition = "2021"
rust-version = "1.75"
license = "MIT OR Apache-2.0"
+16 -9
View File
@@ -15,20 +15,27 @@
//!
//! ## Example
//!
//! ```
//! use mytheclipse_event::{EventBus, InMemoryEventBus, TypedEventBus};
//! The in-memory + typed bus (`mem` feature, on by default):
//!
//! ```no_run
//! use serde::{Deserialize, Serialize};
//!
//! #[derive(Debug, Serialize, Deserialize, PartialEq)]
//! struct OrderCreated { id: u64 }
//!
//! # #[tokio::main] async fn main() {
//! let bus = TypedEventBus::new(InMemoryEventBus::default());
//! let mut sub = bus.subscribe::<OrderCreated>("orders").await.unwrap();
//! bus.publish("orders", &OrderCreated { id: 42 }).await.unwrap();
//! let event = sub.recv().await.unwrap();
//! assert_eq!(event, OrderCreated { id: 42 });
//! # }
//! #[cfg(feature = "mem")]
//! #[tokio::main]
//! async fn main() {
//! use mytheclipse_event::{EventBus, InMemoryEventBus, TypedEventBus};
//! let bus = TypedEventBus::new(InMemoryEventBus::default());
//! let mut sub = bus.subscribe::<OrderCreated>("orders").await.unwrap();
//! bus.publish("orders", &OrderCreated { id: 42 }).await.unwrap();
//! let event = sub.recv().await.unwrap();
//! assert_eq!(event, OrderCreated { id: 42 });
//! }
//!
//! #[cfg(not(feature = "mem"))]
//! fn main() {}
//! ```
pub mod traits;
+1 -1
View File
@@ -1,6 +1,6 @@
[package]
name = "mytheclipse-storage"
version = "1.3.0"
version = "1.3.1"
edition = "2021"
rust-version = "1.75"
license = "MIT OR Apache-2.0"
+4 -1
View File
@@ -160,6 +160,9 @@ mod tests {
.await
.unwrap();
assert_eq!(data, b"hello gcs");
storage.delete("mytheclipse-storage-test.txt").await.unwrap();
storage
.delete("mytheclipse-storage-test.txt")
.await
.unwrap();
}
}
+10 -3
View File
@@ -52,7 +52,8 @@ impl S3Storage {
access_key: &str,
secret_key: &str,
) -> Self {
let credentials = Credentials::new(access_key, secret_key, None, None, "mytheclipse-storage");
let credentials =
Credentials::new(access_key, secret_key, None, None, "mytheclipse-storage");
let config = aws_sdk_s3::Config::builder()
.region(Region::new(region.to_string()))
.endpoint_url(endpoint)
@@ -322,13 +323,19 @@ mod tests {
.await;
storage
.put("mytheclipse-storage-test.txt", bytes_stream(b"hello s3".to_vec()))
.put(
"mytheclipse-storage-test.txt",
bytes_stream(b"hello s3".to_vec()),
)
.await
.unwrap();
let data = read_to_vec(storage.get("mytheclipse-storage-test.txt").await.unwrap())
.await
.unwrap();
assert_eq!(data, b"hello s3");
storage.delete("mytheclipse-storage-test.txt").await.unwrap();
storage
.delete("mytheclipse-storage-test.txt")
.await
.unwrap();
}
}
+1 -1
View File
@@ -1,6 +1,6 @@
[package]
name = "mytheclipse"
version = "1.3.0"
version = "1.3.1"
edition = "2021"
rust-version = "1.75"
license = "MIT OR Apache-2.0"