Narrow the dead glob re-exports of the module splits: pub use x::* becomes use x::* or pub(crate) use x::* (STRA-338)
Where the split left pub use x::* over items that no outside module can name, the compiler said the glob re-exports nothing pub. The glob now has the visibility its items really have: plain use where they are pub(self), pub(crate) where siblings reach them (model.rs file_download, libc-shim launch_interposers). One glob of backend-api scripted.rs was dead and is deleted. 7 globs of control-plane stay with their allow: the compiler calls them unused in the lib build and the lib test build of control-plane cannot be built on Windows, so a test use cannot be ruled out. cargo check --all-targets on backend-api, control-plane, gateway-domain, gateway-text and libc-shim: no new warning, no new error (the one control-plane lib test error is the pre-existing std::os::unix use).
This commit is contained in:
@@ -40,10 +40,8 @@ pub use state::{AppState, EngineLink, HttpPolicy, ModelView, Services};
|
||||
mod routes;
|
||||
pub use routes::*;
|
||||
mod admin_routes;
|
||||
#[allow(unused_imports)]
|
||||
pub use admin_routes::*;
|
||||
use admin_routes::*;
|
||||
mod readiness;
|
||||
#[allow(unused_imports)]
|
||||
pub use readiness::*;
|
||||
use readiness::*;
|
||||
mod metrics_document;
|
||||
pub use metrics_document::*;
|
||||
|
||||
@@ -105,13 +105,10 @@ mod archive_file;
|
||||
mod archive_plan;
|
||||
pub use archive_entry_points::*;
|
||||
mod archive_write_steps;
|
||||
#[allow(unused_imports)]
|
||||
pub use archive_write_steps::*;
|
||||
use archive_write_steps::*;
|
||||
mod nested_layout;
|
||||
pub use nested_layout::*;
|
||||
mod section_payload;
|
||||
#[allow(unused_imports)]
|
||||
pub use section_payload::*;
|
||||
use section_payload::*;
|
||||
mod directory_record;
|
||||
#[allow(unused_imports)]
|
||||
pub use directory_record::*;
|
||||
use directory_record::*;
|
||||
|
||||
@@ -146,17 +146,14 @@ pub struct Hub {
|
||||
mod tests;
|
||||
|
||||
mod mcp_settings_errors;
|
||||
#[allow(unused_imports)]
|
||||
pub use mcp_settings_errors::*;
|
||||
use mcp_settings_errors::*;
|
||||
mod stdio_transport;
|
||||
#[allow(unused_imports)]
|
||||
pub use stdio_transport::*;
|
||||
mod stdio_message_routing;
|
||||
#[allow(unused_imports)]
|
||||
pub use stdio_message_routing::*;
|
||||
use stdio_message_routing::*;
|
||||
mod http_transport;
|
||||
#[allow(unused_imports)]
|
||||
pub use http_transport::*;
|
||||
use http_transport::*;
|
||||
mod transport;
|
||||
#[allow(unused_imports)]
|
||||
pub use transport::*;
|
||||
@@ -166,7 +163,6 @@ pub use server::*;
|
||||
mod tool_result_text;
|
||||
pub use tool_result_text::*;
|
||||
mod hub;
|
||||
#[allow(unused_imports)]
|
||||
pub use hub::*;
|
||||
use hub::*;
|
||||
mod parse_config;
|
||||
pub use parse_config::*;
|
||||
|
||||
@@ -34,5 +34,4 @@ pub use count_tokens::*;
|
||||
mod error_type;
|
||||
pub use error_type::*;
|
||||
mod messages_stream;
|
||||
#[allow(unused_imports)]
|
||||
pub use messages_stream::*;
|
||||
use messages_stream::*;
|
||||
|
||||
@@ -46,5 +46,4 @@ mod tests;
|
||||
mod manifest_fetch;
|
||||
pub use manifest_fetch::*;
|
||||
mod file_download;
|
||||
#[allow(unused_imports)]
|
||||
pub use file_download::*;
|
||||
pub(crate) use file_download::*;
|
||||
|
||||
@@ -70,21 +70,16 @@ pub struct Options {
|
||||
mod tests;
|
||||
|
||||
mod pack_rules;
|
||||
#[allow(unused_imports)]
|
||||
pub use pack_rules::*;
|
||||
use pack_rules::*;
|
||||
mod expert_layout;
|
||||
#[allow(unused_imports)]
|
||||
pub use expert_layout::*;
|
||||
use expert_layout::*;
|
||||
mod convert_tensor;
|
||||
#[allow(unused_imports)]
|
||||
pub use convert_tensor::*;
|
||||
use convert_tensor::*;
|
||||
mod dense_files;
|
||||
#[allow(unused_imports)]
|
||||
pub use dense_files::*;
|
||||
use dense_files::*;
|
||||
mod pack_publication;
|
||||
pub use pack_publication::*;
|
||||
mod pack_outputs;
|
||||
pub use pack_outputs::*;
|
||||
mod same_bytes;
|
||||
#[allow(unused_imports)]
|
||||
pub use same_bytes::*;
|
||||
use same_bytes::*;
|
||||
|
||||
@@ -83,19 +83,15 @@ pub use preview_entry_points::*;
|
||||
mod prepare_sharded;
|
||||
pub use prepare_sharded::*;
|
||||
mod streamed_sharded_prepare;
|
||||
#[allow(unused_imports)]
|
||||
pub use streamed_sharded_prepare::*;
|
||||
use streamed_sharded_prepare::*;
|
||||
mod spool_raw_f32;
|
||||
#[allow(unused_imports)]
|
||||
pub use spool_raw_f32::*;
|
||||
use spool_raw_f32::*;
|
||||
mod prepare_single_file;
|
||||
#[allow(unused_imports)]
|
||||
pub use prepare_single_file::*;
|
||||
use prepare_single_file::*;
|
||||
mod tensor_encoding;
|
||||
pub use tensor_encoding::*;
|
||||
mod derived_verification;
|
||||
#[allow(unused_imports)]
|
||||
pub use derived_verification::*;
|
||||
use derived_verification::*;
|
||||
mod preview_tensor_io;
|
||||
use preview_tensor_io::*;
|
||||
mod sharded_encode;
|
||||
|
||||
@@ -93,8 +93,7 @@ struct Tap {
|
||||
mod tests;
|
||||
|
||||
mod captured_text;
|
||||
#[allow(unused_imports)]
|
||||
pub use captured_text::*;
|
||||
use captured_text::*;
|
||||
mod record;
|
||||
#[allow(unused_imports)]
|
||||
pub use record::*;
|
||||
|
||||
@@ -28,7 +28,6 @@ mod unix;
|
||||
mod tests;
|
||||
|
||||
mod command_line;
|
||||
#[allow(unused_imports)]
|
||||
pub use command_line::*;
|
||||
use command_line::*;
|
||||
mod control;
|
||||
pub use control::*;
|
||||
|
||||
@@ -188,12 +188,10 @@ mod storage {
|
||||
mod tests;
|
||||
|
||||
mod switch_profiles;
|
||||
#[allow(unused_imports)]
|
||||
pub use switch_profiles::*;
|
||||
use switch_profiles::*;
|
||||
mod run;
|
||||
pub use run::*;
|
||||
mod reconcile;
|
||||
#[cfg(unix)]
|
||||
mod transaction;
|
||||
#[allow(unused_imports)]
|
||||
pub use reconcile::*;
|
||||
use reconcile::*;
|
||||
|
||||
@@ -103,12 +103,8 @@ pub struct ScriptedEngine {
|
||||
mod tests;
|
||||
|
||||
mod scripted_handle;
|
||||
#[allow(unused_imports)]
|
||||
pub use scripted_handle::*;
|
||||
use scripted_handle::*;
|
||||
mod backend_port;
|
||||
#[allow(unused_imports)]
|
||||
pub use backend_port::*;
|
||||
mod play;
|
||||
#[allow(unused_imports)]
|
||||
pub use play::*;
|
||||
use play::*;
|
||||
mod shared_ops;
|
||||
|
||||
@@ -123,18 +123,14 @@ struct QuoteBalance<'a> {
|
||||
mod tests;
|
||||
|
||||
mod notes;
|
||||
#[allow(unused_imports)]
|
||||
pub use notes::*;
|
||||
use notes::*;
|
||||
mod incremental;
|
||||
pub use incremental::*;
|
||||
mod parse_text;
|
||||
pub use parse_text::*;
|
||||
mod parse_call;
|
||||
#[allow(unused_imports)]
|
||||
pub use parse_call::*;
|
||||
use parse_call::*;
|
||||
mod parameter_value;
|
||||
#[allow(unused_imports)]
|
||||
pub use parameter_value::*;
|
||||
use parameter_value::*;
|
||||
mod find_parameter_end;
|
||||
#[allow(unused_imports)]
|
||||
pub use find_parameter_end::*;
|
||||
use find_parameter_end::*;
|
||||
|
||||
@@ -282,5 +282,4 @@ mod tests;
|
||||
mod trace_state;
|
||||
pub use trace_state::*;
|
||||
mod launch_interposers;
|
||||
#[allow(unused_imports)]
|
||||
pub use launch_interposers::*;
|
||||
pub(crate) use launch_interposers::*;
|
||||
|
||||
Reference in New Issue
Block a user