This is an automated email from the ASF dual-hosted git repository.
piotr pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iggy.git
The following commit(s) were added to refs/heads/master by this push:
new a2c10522d fix(configs): remove configs_derive re-export from common
crate (#2649)
a2c10522d is described below
commit a2c10522d204747a2ce9562992c77b0d6c3d7fb6
Author: Hubert Gruszecki <[email protected]>
AuthorDate: Fri Jan 30 18:56:54 2026 +0100
fix(configs): remove configs_derive re-export from common crate (#2649)
The configs_derive crate has `publish = false`, which blocked
iggy_common from being published to crates.io. Server configs
now import ConfigEnv from the configs crate instead.
---
Cargo.lock | 1 -
core/common/Cargo.toml | 1 -
core/common/src/lib.rs | 1 -
core/server/src/configs/cluster.rs | 2 +-
core/server/src/configs/http.rs | 2 +-
core/server/src/configs/quic.rs | 2 +-
core/server/src/configs/server.rs | 4 ++--
core/server/src/configs/sharding.rs | 2 +-
core/server/src/configs/system.rs | 2 +-
core/server/src/configs/tcp.rs | 3 ++-
core/server/src/configs/websocket.rs | 2 +-
11 files changed, 10 insertions(+), 12 deletions(-)
diff --git a/Cargo.lock b/Cargo.lock
index 03c3bb7ca..3e0e813f2 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -4658,7 +4658,6 @@ dependencies = [
"compio-quic",
"compio-tls",
"compio-ws",
- "configs_derive",
"crossbeam",
"derive_more",
"err_trail",
diff --git a/core/common/Cargo.toml b/core/common/Cargo.toml
index 07a82abc7..74aea461b 100644
--- a/core/common/Cargo.toml
+++ b/core/common/Cargo.toml
@@ -48,7 +48,6 @@ compio = { workspace = true }
compio-quic = { workspace = true }
compio-tls = { workspace = true }
compio-ws = { workspace = true }
-configs_derive = { workspace = true }
crossbeam = { workspace = true }
derive_more = { workspace = true }
err_trail = { workspace = true }
diff --git a/core/common/src/lib.rs b/core/common/src/lib.rs
index c8391d601..2ae5bd845 100644
--- a/core/common/src/lib.rs
+++ b/core/common/src/lib.rs
@@ -45,7 +45,6 @@ pub use commands::system::get_cluster_metadata::*;
pub use commands::system::*;
pub use commands::topics::*;
pub use commands::users::*;
-pub use configs_derive::ConfigEnv;
pub use sender::{
QuicSender, Sender, SenderKind, TcpSender, TcpTlsSender, WebSocketSender,
WebSocketTlsSender,
};
diff --git a/core/server/src/configs/cluster.rs
b/core/server/src/configs/cluster.rs
index 8468c3a81..28421015d 100644
--- a/core/server/src/configs/cluster.rs
+++ b/core/server/src/configs/cluster.rs
@@ -16,7 +16,7 @@
* under the License.
*/
-use iggy_common::ConfigEnv;
+use configs::ConfigEnv;
use serde::{Deserialize, Serialize};
#[derive(Debug, Deserialize, Serialize, Clone, ConfigEnv)]
diff --git a/core/server/src/configs/http.rs b/core/server/src/configs/http.rs
index b21720cfb..b19b53cae 100644
--- a/core/server/src/configs/http.rs
+++ b/core/server/src/configs/http.rs
@@ -16,7 +16,7 @@
* under the License.
*/
-use iggy_common::ConfigEnv;
+use configs::ConfigEnv;
use iggy_common::IggyByteSize;
use iggy_common::IggyDuration;
use iggy_common::IggyError;
diff --git a/core/server/src/configs/quic.rs b/core/server/src/configs/quic.rs
index ee4c28c12..9067bc62b 100644
--- a/core/server/src/configs/quic.rs
+++ b/core/server/src/configs/quic.rs
@@ -16,7 +16,7 @@
* under the License.
*/
-use iggy_common::ConfigEnv;
+use configs::ConfigEnv;
use iggy_common::IggyByteSize;
use iggy_common::IggyDuration;
use serde::{Deserialize, Serialize};
diff --git a/core/server/src/configs/server.rs
b/core/server/src/configs/server.rs
index f3fe593ce..7e28320ee 100644
--- a/core/server/src/configs/server.rs
+++ b/core/server/src/configs/server.rs
@@ -24,13 +24,13 @@ use crate::configs::system::SystemConfig;
use crate::configs::tcp::TcpConfig;
use crate::configs::websocket::WebSocketConfig;
use crate::server_error::ConfigurationError;
-use configs::{ConfigEnvMappings, ConfigProvider, FileConfigProvider,
TypedEnvProvider};
+use configs::{ConfigEnv, ConfigEnvMappings, ConfigProvider,
FileConfigProvider, TypedEnvProvider};
use derive_more::Display;
use err_trail::ErrContext;
use figment::providers::{Format, Toml};
use figment::value::Dict;
use figment::{Metadata, Profile, Provider};
-use iggy_common::{ConfigEnv, IggyByteSize, IggyDuration,
MemoryPoolConfigOther, Validatable};
+use iggy_common::{IggyByteSize, IggyDuration, MemoryPoolConfigOther,
Validatable};
use serde::{Deserialize, Serialize};
use serde_with::DisplayFromStr;
use serde_with::serde_as;
diff --git a/core/server/src/configs/sharding.rs
b/core/server/src/configs/sharding.rs
index 5b9d28718..5224c0b47 100644
--- a/core/server/src/configs/sharding.rs
+++ b/core/server/src/configs/sharding.rs
@@ -31,7 +31,7 @@ use std::thread::available_parallelism;
use tracing::info;
use crate::server_error::ServerError;
-use iggy_common::ConfigEnv;
+use configs::ConfigEnv;
#[derive(Debug, Deserialize, Serialize, Default, ConfigEnv)]
pub struct ShardingConfig {
diff --git a/core/server/src/configs/system.rs
b/core/server/src/configs/system.rs
index 35ba9ed55..f8c7423ed 100644
--- a/core/server/src/configs/system.rs
+++ b/core/server/src/configs/system.rs
@@ -19,7 +19,7 @@
use super::cache_indexes::CacheIndexesConfig;
use super::sharding::ShardingConfig;
use crate::configs::server::MemoryPoolConfig;
-use iggy_common::ConfigEnv;
+use configs::ConfigEnv;
use iggy_common::IggyByteSize;
use iggy_common::IggyError;
use iggy_common::IggyExpiry;
diff --git a/core/server/src/configs/tcp.rs b/core/server/src/configs/tcp.rs
index fcc7d2de6..5d2f21acc 100644
--- a/core/server/src/configs/tcp.rs
+++ b/core/server/src/configs/tcp.rs
@@ -16,7 +16,8 @@
* under the License.
*/
-use iggy_common::{ConfigEnv, IggyByteSize, IggyDuration};
+use configs::ConfigEnv;
+use iggy_common::{IggyByteSize, IggyDuration};
use serde::{Deserialize, Serialize};
use serde_with::DisplayFromStr;
use serde_with::serde_as;
diff --git a/core/server/src/configs/websocket.rs
b/core/server/src/configs/websocket.rs
index b911f4c15..b5a3446fc 100644
--- a/core/server/src/configs/websocket.rs
+++ b/core/server/src/configs/websocket.rs
@@ -16,7 +16,7 @@
* under the License.
*/
-use iggy_common::ConfigEnv;
+use configs::ConfigEnv;
use iggy_common::IggyByteSize;
use serde::{Deserialize, Serialize};
use std::fmt::{Display, Formatter};