Skip to main content

object_filename

Function object_filename 

Source
pub fn object_filename(crate_name: &str) -> String
Expand description

Object filename rustc emits for --emit=obj --crate-type=rlib: <crate>.o with hyphens converted to underscores. (Notably no lib prefix and no extension other than .o — cdylib’s lib<crate>.dylib rules don’t apply here.)