feat: rename crate from rustfs-event-notifier to rustfs-event

This change simplifies the crate name to better reflect its core functionality
as the event handling system for RustFS. The renamed package maintains all
existing functionality while improving naming consistency across the project.

- Updated all imports and references to use the new crate name
- Maintained API compatibility with existing implementations
- Updated tests to reflect the name change
This commit is contained in:
houseme
2025-05-19 17:23:17 +08:00
parent 791780dd68
commit c6de1ae994
27 changed files with 27 additions and 27 deletions
+1 -1
View File
@@ -53,7 +53,7 @@ protos.workspace = true
query = { workspace = true }
rmp-serde.workspace = true
rustfs-config = { workspace = true }
rustfs-event-notifier = { workspace = true }
rustfs-event = { workspace = true }
rustfs-obs = { workspace = true }
rustfs-utils = { workspace = true, features = ["full"] }
rustls.workspace = true
+2 -2
View File
@@ -1,4 +1,4 @@
use rustfs_event_notifier::NotifierConfig;
use rustfs_event::NotifierConfig;
use tracing::{error, info, instrument};
#[instrument]
@@ -8,7 +8,7 @@ pub(crate) async fn init_event_notifier(notifier_config: Option<String>) {
info!("event_config is not empty");
tokio::spawn(async move {
let config = NotifierConfig::event_load_config(notifier_config);
let result = rustfs_event_notifier::initialize(config).await;
let result = rustfs_event::initialize(config).await;
if let Err(e) = result {
error!("Failed to initialize event notifier: {}", e);
} else {
+2 -2
View File
@@ -562,9 +562,9 @@ async fn run(opt: config::Opt) -> Result<()> {
state_manager.update(ServiceState::Stopping);
// Stop the notification system
if rustfs_event_notifier::is_ready() {
if rustfs_event::is_ready() {
// stop event notifier
rustfs_event_notifier::shutdown().await.map_err(|err| {
rustfs_event::shutdown().await.map_err(|err| {
error!("Failed to shut down the notification system: {}", err);
Error::from_string(err.to_string())
})?;
+2 -2
View File
@@ -1,4 +1,4 @@
use rustfs_event_notifier::{Event, Metadata};
use rustfs_event::{Event, Metadata};
/// Create a new metadata object
#[allow(dead_code)]
@@ -13,5 +13,5 @@ pub(crate) fn create_metadata() -> Metadata {
/// Create a new event object
#[allow(dead_code)]
pub(crate) async fn send_event(event: Event) -> Result<(), Box<dyn std::error::Error>> {
rustfs_event_notifier::send_event(event).await.map_err(|e| e.into())
rustfs_event::send_event(event).await.map_err(|e| e.into())
}