@@ -65,12 +65,6 @@ pub fn is_darwin() -> bool {
65
65
target ( ) . contains ( "darwin" )
66
66
}
67
67
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
-
74
68
pub fn python_command ( ) -> Command {
75
69
let python_path = env_var ( "PYTHON" ) ;
76
70
Command :: new ( python_path)
@@ -111,12 +105,6 @@ pub fn static_lib_name(name: &str) -> String {
111
105
if is_msvc ( ) { format ! ( "{name}.lib" ) } else { format ! ( "lib{name}.a" ) }
112
106
}
113
107
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
-
120
108
/// Construct the dynamic library name based on the platform.
121
109
pub fn dynamic_lib_name ( name : & str ) -> String {
122
110
// See tools.mk (irrelevant lines omitted):
@@ -154,14 +142,7 @@ pub fn dynamic_lib_extension() -> &'static str {
154
142
}
155
143
}
156
144
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.
165
146
pub fn rust_lib_name ( name : & str ) -> String {
166
147
format ! ( "lib{name}.rlib" )
167
148
}
0 commit comments