diff --git a/crates/install-wheel-rs/src/lib.rs b/crates/install-wheel-rs/src/lib.rs index bef993c8e..80e3390c3 100644 --- a/crates/install-wheel-rs/src/lib.rs +++ b/crates/install-wheel-rs/src/lib.rs @@ -19,8 +19,7 @@ pub use record::RecordEntry; pub use script::Script; pub use uninstall::{uninstall_wheel, Uninstall}; pub use wheel::{ - get_script_launcher, install_wheel, parse_key_value_file, read_record_file, relative_to, - SHEBANG_PYTHON, + install_wheel, parse_key_value_file, read_record_file, relative_to, SHEBANG_PYTHON, }; mod install_location; diff --git a/crates/install-wheel-rs/src/wheel.rs b/crates/install-wheel-rs/src/wheel.rs index 28063004a..45ab68326 100644 --- a/crates/install-wheel-rs/src/wheel.rs +++ b/crates/install-wheel-rs/src/wheel.rs @@ -50,7 +50,7 @@ const LAUNCHER_X86_64_CONSOLE: &[u8] = &[]; /// Wrapper script template function /// /// -pub fn get_script_launcher(module: &str, import_name: &str, shebang: &str) -> String { +fn get_script_launcher(module: &str, import_name: &str, shebang: &str) -> String { format!( r##"{shebang} # -*- coding: utf-8 -*- @@ -129,10 +129,7 @@ fn parse_scripts( /// /// which in turn got it from std /// -pub(crate) fn copy_and_hash( - reader: &mut impl Read, - writer: &mut impl Write, -) -> io::Result<(u64, String)> { +fn copy_and_hash(reader: &mut impl Read, writer: &mut impl Write) -> io::Result<(u64, String)> { // TODO: Do we need to support anything besides sha256? let mut hasher = Sha256::new(); // Same buf size as std. Note that this number is important for performance @@ -276,7 +273,7 @@ fn unpack_wheel_files( Ok(extracted_paths) } -pub(crate) fn get_shebang(location: &InstallLocation>) -> String { +fn get_shebang(location: &InstallLocation>) -> String { let path = location.python().to_string_lossy().to_string(); let path = if cfg!(windows) { // https://stackoverflow.com/a/50323079 @@ -405,7 +402,7 @@ pub(crate) fn write_script_entrypoints( Ok(()) } -pub(crate) fn bin_rel() -> PathBuf { +fn bin_rel() -> PathBuf { if cfg!(windows) { // windows doesn't have the python part, only Lib/site-packages Path::new("..").join("..").join("Scripts")