@@ -65,12 +65,6 @@ pub fn is_darwin() -> bool {
6565 target ( ) . contains ( "darwin" )
6666}
6767
68- /// Construct a path to a static library under `$TMPDIR` given the library name. This will return a
69- /// path with `$TMPDIR` joined with platform-and-compiler-specific library name.
70- pub fn static_lib ( name : & str ) -> PathBuf {
71- PathBuf :: from ( static_lib_name ( name) )
72- }
73-
7468pub fn python_command ( ) -> Command {
7569 let python_path = env_var ( "PYTHON" ) ;
7670 Command :: new ( python_path)
@@ -111,12 +105,6 @@ pub fn static_lib_name(name: &str) -> String {
111105 if is_msvc ( ) { format ! ( "{name}.lib" ) } else { format ! ( "lib{name}.a" ) }
112106}
113107
114- /// Construct a path to a dynamic library under `$TMPDIR` given the library name. This will return a
115- /// path with `$TMPDIR` joined with platform-and-compiler-specific library name.
116- pub fn dynamic_lib ( name : & str ) -> PathBuf {
117- PathBuf :: from ( dynamic_lib_name ( name) )
118- }
119-
120108/// Construct the dynamic library name based on the platform.
121109pub fn dynamic_lib_name ( name : & str ) -> String {
122110 // See tools.mk (irrelevant lines omitted):
@@ -154,14 +142,7 @@ pub fn dynamic_lib_extension() -> &'static str {
154142 }
155143}
156144
157- /// Construct a path to a rust library (rlib) under `$TMPDIR` given the library name. This will return a
158- /// path with `$TMPDIR` joined with the library name.
159- pub fn rust_lib ( name : & str ) -> PathBuf {
160- PathBuf :: from ( rust_lib_name ( name) )
161- }
162-
163- /// Generate the name a rust library (rlib) would have. If you want the complete path, use
164- /// [`rust_lib`] instead.
145+ /// Construct a rust library (rlib) name.
165146pub fn rust_lib_name ( name : & str ) -> String {
166147 format ! ( "lib{name}.rlib" )
167148}
0 commit comments