Add run-make-support::rust_lib_name
This commit is contained in:
parent
de1d0e0da9
commit
301d7229f7
2 changed files with 10 additions and 4 deletions
|
|
@ -135,7 +135,13 @@ pub fn dynamic_lib_name(name: &str) -> String {
|
|||
/// Construct a path to a rust library (rlib) under `$TMPDIR` given the library name. This will return a
|
||||
/// path with `$TMPDIR` joined with the library name.
|
||||
pub fn rust_lib(name: &str) -> PathBuf {
|
||||
tmp_dir().join(format!("lib{name}.rlib"))
|
||||
tmp_dir().join(rust_lib_name(name))
|
||||
}
|
||||
|
||||
/// Generate the name a rust library (rlib) would have. If you want the complete path, use
|
||||
/// [`rust_lib`] instead.
|
||||
pub fn rust_lib_name(name: &str) -> String {
|
||||
format!("lib{name}.rlib")
|
||||
}
|
||||
|
||||
/// Construct the binary name based on platform.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue