From f09701f6d456bd0f7ec9d70881a117d8d1c30a52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=BE=B7=E5=AE=87?= Date: Fri, 2 Oct 2026 19:56:54 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E6=9E=84(=E8=AE=A1=E8=B4=B9):=20modul?= =?UTF-8?q?e-runtime=20=E5=8E=BB=E6=8E=89=E9=80=9A=E9=85=8D=20re-export=20?= =?UTF-8?q?=E6=94=B9=E4=B8=BA=E7=AD=96=E5=B1=95=E5=AF=BC=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - lib.rs 移除 pub use civil_calendar::*,公历基元只保留 civil_calendar:: 命名空间 - lib.rs 移除 pub use membership::*,改为只重导出对外的会员契约符号 - 未改动 spacetime-module / spacetime-client / api-server,现有引用保持可用 Co-authored-by: Junie --- server-rs/crates/module-runtime/src/lib.rs | 26 ++++++++++++++++------ 1 file changed, 19 insertions(+), 7 deletions(-) diff --git a/server-rs/crates/module-runtime/src/lib.rs b/server-rs/crates/module-runtime/src/lib.rs index ce5c04494..614e9695a 100644 --- a/server-rs/crates/module-runtime/src/lib.rs +++ b/server-rs/crates/module-runtime/src/lib.rs @@ -1,22 +1,34 @@ pub mod agc_analytics; -mod agc_models; pub mod civil_calendar; -pub use civil_calendar::*; -mod llm_billing; -pub use llm_billing::*; -mod application; pub mod membership; -pub use agc_models::*; + +mod agc_models; +mod application; mod commands; mod domain; mod errors; mod events; +mod llm_billing; +pub use agc_models::*; pub use application::*; pub use commands::*; pub use domain::*; pub use errors::*; -pub use membership::*; +pub use llm_billing::*; + +// 中文注释:`membership` 与 `civil_calendar` 不再用 `pub use ...::*` 摊平到 crate 根: +// 通配会把公历基元和目录内部件都变成公开 API,模块继续增长后容易命名冲突; +// 这里只重导出真正对外的会员契约符号,其余留在 `membership::` / `civil_calendar::` 命名空间下。 +pub use membership::{ + MEMBERSHIP_UNLIMITED_CONCURRENCY, RuntimeProfileMembershipPlanRecord, + RuntimeProfileMembershipPlanSnapshot, RuntimeProfileMembershipUpgradeQuoteInput, + beijing_local_micros, build_runtime_profile_membership_plan_snapshot, is_unlimited_concurrency, + membership_cycle_window, membership_expires_at, parse_runtime_profile_membership_product_id, + quote_runtime_profile_membership_upgrade, resolve_runtime_profile_membership_plan_row, + runtime_profile_membership_plan_catalog, runtime_profile_membership_plan_rank, + runtime_profile_membership_product_id, +}; use shared_kernel::format_rfc3339 as format_shared_rfc3339; use time::OffsetDateTime;