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;
|
mod routes;
|
||||||
pub use routes::*;
|
pub use routes::*;
|
||||||
mod admin_routes;
|
mod admin_routes;
|
||||||
#[allow(unused_imports)]
|
use admin_routes::*;
|
||||||
pub use admin_routes::*;
|
|
||||||
mod readiness;
|
mod readiness;
|
||||||
#[allow(unused_imports)]
|
use readiness::*;
|
||||||
pub use readiness::*;
|
|
||||||
mod metrics_document;
|
mod metrics_document;
|
||||||
pub use metrics_document::*;
|
pub use metrics_document::*;
|
||||||
|
|||||||
@@ -105,13 +105,10 @@ mod archive_file;
|
|||||||
mod archive_plan;
|
mod archive_plan;
|
||||||
pub use archive_entry_points::*;
|
pub use archive_entry_points::*;
|
||||||
mod archive_write_steps;
|
mod archive_write_steps;
|
||||||
#[allow(unused_imports)]
|
use archive_write_steps::*;
|
||||||
pub use archive_write_steps::*;
|
|
||||||
mod nested_layout;
|
mod nested_layout;
|
||||||
pub use nested_layout::*;
|
pub use nested_layout::*;
|
||||||
mod section_payload;
|
mod section_payload;
|
||||||
#[allow(unused_imports)]
|
use section_payload::*;
|
||||||
pub use section_payload::*;
|
|
||||||
mod directory_record;
|
mod directory_record;
|
||||||
#[allow(unused_imports)]
|
use directory_record::*;
|
||||||
pub use directory_record::*;
|
|
||||||
|
|||||||
@@ -146,17 +146,14 @@ pub struct Hub {
|
|||||||
mod tests;
|
mod tests;
|
||||||
|
|
||||||
mod mcp_settings_errors;
|
mod mcp_settings_errors;
|
||||||
#[allow(unused_imports)]
|
use mcp_settings_errors::*;
|
||||||
pub use mcp_settings_errors::*;
|
|
||||||
mod stdio_transport;
|
mod stdio_transport;
|
||||||
#[allow(unused_imports)]
|
#[allow(unused_imports)]
|
||||||
pub use stdio_transport::*;
|
pub use stdio_transport::*;
|
||||||
mod stdio_message_routing;
|
mod stdio_message_routing;
|
||||||
#[allow(unused_imports)]
|
use stdio_message_routing::*;
|
||||||
pub use stdio_message_routing::*;
|
|
||||||
mod http_transport;
|
mod http_transport;
|
||||||
#[allow(unused_imports)]
|
use http_transport::*;
|
||||||
pub use http_transport::*;
|
|
||||||
mod transport;
|
mod transport;
|
||||||
#[allow(unused_imports)]
|
#[allow(unused_imports)]
|
||||||
pub use transport::*;
|
pub use transport::*;
|
||||||
@@ -166,7 +163,6 @@ pub use server::*;
|
|||||||
mod tool_result_text;
|
mod tool_result_text;
|
||||||
pub use tool_result_text::*;
|
pub use tool_result_text::*;
|
||||||
mod hub;
|
mod hub;
|
||||||
#[allow(unused_imports)]
|
use hub::*;
|
||||||
pub use hub::*;
|
|
||||||
mod parse_config;
|
mod parse_config;
|
||||||
pub use parse_config::*;
|
pub use parse_config::*;
|
||||||
|
|||||||
@@ -34,5 +34,4 @@ pub use count_tokens::*;
|
|||||||
mod error_type;
|
mod error_type;
|
||||||
pub use error_type::*;
|
pub use error_type::*;
|
||||||
mod messages_stream;
|
mod messages_stream;
|
||||||
#[allow(unused_imports)]
|
use messages_stream::*;
|
||||||
pub use messages_stream::*;
|
|
||||||
|
|||||||
@@ -46,5 +46,4 @@ mod tests;
|
|||||||
mod manifest_fetch;
|
mod manifest_fetch;
|
||||||
pub use manifest_fetch::*;
|
pub use manifest_fetch::*;
|
||||||
mod file_download;
|
mod file_download;
|
||||||
#[allow(unused_imports)]
|
pub(crate) use file_download::*;
|
||||||
pub use file_download::*;
|
|
||||||
|
|||||||
@@ -70,21 +70,16 @@ pub struct Options {
|
|||||||
mod tests;
|
mod tests;
|
||||||
|
|
||||||
mod pack_rules;
|
mod pack_rules;
|
||||||
#[allow(unused_imports)]
|
use pack_rules::*;
|
||||||
pub use pack_rules::*;
|
|
||||||
mod expert_layout;
|
mod expert_layout;
|
||||||
#[allow(unused_imports)]
|
use expert_layout::*;
|
||||||
pub use expert_layout::*;
|
|
||||||
mod convert_tensor;
|
mod convert_tensor;
|
||||||
#[allow(unused_imports)]
|
use convert_tensor::*;
|
||||||
pub use convert_tensor::*;
|
|
||||||
mod dense_files;
|
mod dense_files;
|
||||||
#[allow(unused_imports)]
|
use dense_files::*;
|
||||||
pub use dense_files::*;
|
|
||||||
mod pack_publication;
|
mod pack_publication;
|
||||||
pub use pack_publication::*;
|
pub use pack_publication::*;
|
||||||
mod pack_outputs;
|
mod pack_outputs;
|
||||||
pub use pack_outputs::*;
|
pub use pack_outputs::*;
|
||||||
mod same_bytes;
|
mod same_bytes;
|
||||||
#[allow(unused_imports)]
|
use same_bytes::*;
|
||||||
pub use same_bytes::*;
|
|
||||||
|
|||||||
@@ -83,19 +83,15 @@ pub use preview_entry_points::*;
|
|||||||
mod prepare_sharded;
|
mod prepare_sharded;
|
||||||
pub use prepare_sharded::*;
|
pub use prepare_sharded::*;
|
||||||
mod streamed_sharded_prepare;
|
mod streamed_sharded_prepare;
|
||||||
#[allow(unused_imports)]
|
use streamed_sharded_prepare::*;
|
||||||
pub use streamed_sharded_prepare::*;
|
|
||||||
mod spool_raw_f32;
|
mod spool_raw_f32;
|
||||||
#[allow(unused_imports)]
|
use spool_raw_f32::*;
|
||||||
pub use spool_raw_f32::*;
|
|
||||||
mod prepare_single_file;
|
mod prepare_single_file;
|
||||||
#[allow(unused_imports)]
|
use prepare_single_file::*;
|
||||||
pub use prepare_single_file::*;
|
|
||||||
mod tensor_encoding;
|
mod tensor_encoding;
|
||||||
pub use tensor_encoding::*;
|
pub use tensor_encoding::*;
|
||||||
mod derived_verification;
|
mod derived_verification;
|
||||||
#[allow(unused_imports)]
|
use derived_verification::*;
|
||||||
pub use derived_verification::*;
|
|
||||||
mod preview_tensor_io;
|
mod preview_tensor_io;
|
||||||
use preview_tensor_io::*;
|
use preview_tensor_io::*;
|
||||||
mod sharded_encode;
|
mod sharded_encode;
|
||||||
|
|||||||
@@ -93,8 +93,7 @@ struct Tap {
|
|||||||
mod tests;
|
mod tests;
|
||||||
|
|
||||||
mod captured_text;
|
mod captured_text;
|
||||||
#[allow(unused_imports)]
|
use captured_text::*;
|
||||||
pub use captured_text::*;
|
|
||||||
mod record;
|
mod record;
|
||||||
#[allow(unused_imports)]
|
#[allow(unused_imports)]
|
||||||
pub use record::*;
|
pub use record::*;
|
||||||
|
|||||||
@@ -28,7 +28,6 @@ mod unix;
|
|||||||
mod tests;
|
mod tests;
|
||||||
|
|
||||||
mod command_line;
|
mod command_line;
|
||||||
#[allow(unused_imports)]
|
use command_line::*;
|
||||||
pub use command_line::*;
|
|
||||||
mod control;
|
mod control;
|
||||||
pub use control::*;
|
pub use control::*;
|
||||||
|
|||||||
@@ -188,12 +188,10 @@ mod storage {
|
|||||||
mod tests;
|
mod tests;
|
||||||
|
|
||||||
mod switch_profiles;
|
mod switch_profiles;
|
||||||
#[allow(unused_imports)]
|
use switch_profiles::*;
|
||||||
pub use switch_profiles::*;
|
|
||||||
mod run;
|
mod run;
|
||||||
pub use run::*;
|
pub use run::*;
|
||||||
mod reconcile;
|
mod reconcile;
|
||||||
#[cfg(unix)]
|
#[cfg(unix)]
|
||||||
mod transaction;
|
mod transaction;
|
||||||
#[allow(unused_imports)]
|
use reconcile::*;
|
||||||
pub use reconcile::*;
|
|
||||||
|
|||||||
@@ -103,12 +103,8 @@ pub struct ScriptedEngine {
|
|||||||
mod tests;
|
mod tests;
|
||||||
|
|
||||||
mod scripted_handle;
|
mod scripted_handle;
|
||||||
#[allow(unused_imports)]
|
use scripted_handle::*;
|
||||||
pub use scripted_handle::*;
|
|
||||||
mod backend_port;
|
mod backend_port;
|
||||||
#[allow(unused_imports)]
|
|
||||||
pub use backend_port::*;
|
|
||||||
mod play;
|
mod play;
|
||||||
#[allow(unused_imports)]
|
use play::*;
|
||||||
pub use play::*;
|
|
||||||
mod shared_ops;
|
mod shared_ops;
|
||||||
|
|||||||
@@ -123,18 +123,14 @@ struct QuoteBalance<'a> {
|
|||||||
mod tests;
|
mod tests;
|
||||||
|
|
||||||
mod notes;
|
mod notes;
|
||||||
#[allow(unused_imports)]
|
use notes::*;
|
||||||
pub use notes::*;
|
|
||||||
mod incremental;
|
mod incremental;
|
||||||
pub use incremental::*;
|
pub use incremental::*;
|
||||||
mod parse_text;
|
mod parse_text;
|
||||||
pub use parse_text::*;
|
pub use parse_text::*;
|
||||||
mod parse_call;
|
mod parse_call;
|
||||||
#[allow(unused_imports)]
|
use parse_call::*;
|
||||||
pub use parse_call::*;
|
|
||||||
mod parameter_value;
|
mod parameter_value;
|
||||||
#[allow(unused_imports)]
|
use parameter_value::*;
|
||||||
pub use parameter_value::*;
|
|
||||||
mod find_parameter_end;
|
mod find_parameter_end;
|
||||||
#[allow(unused_imports)]
|
use find_parameter_end::*;
|
||||||
pub use find_parameter_end::*;
|
|
||||||
|
|||||||
@@ -282,5 +282,4 @@ mod tests;
|
|||||||
mod trace_state;
|
mod trace_state;
|
||||||
pub use trace_state::*;
|
pub use trace_state::*;
|
||||||
mod launch_interposers;
|
mod launch_interposers;
|
||||||
#[allow(unused_imports)]
|
pub(crate) use launch_interposers::*;
|
||||||
pub use launch_interposers::*;
|
|
||||||
|
|||||||
Reference in New Issue
Block a user