pub fn get_crate_name() -> Option<String>Expand description
§Get the name of the crate that uses your library
Let’s say you’re writing the library foo and need the name of the crate that uses foo. With
this function, you can get the name of the crate that uses foo.
Will return None if std::env::current_exe() errors or if conversion to String from std::ffi::OsStr fails.