Skip to main content

Module output

Module output 

Source
Expand description

Related to out filenames of compilation (e.g. binaries).

Re-exportsยง

use std::path::Path; ๐Ÿ”’
use rustc_span::Span; ๐Ÿ”’
use rustc_span::Symbol; ๐Ÿ”’
use rustc_structures::CrateType; ๐Ÿ”’
use crate::Session; ๐Ÿ”’
use crate::config::OutFileName; ๐Ÿ”’
use crate::config::OutputFilenames; ๐Ÿ”’
use crate::config::OutputType; ๐Ÿ”’
use crate::diagnostics::CrateNameEmpty; ๐Ÿ”’
use crate::diagnostics::FileIsNotWriteable; ๐Ÿ”’
use crate::diagnostics::InvalidCharacterInCrateName; ๐Ÿ”’
use crate::diagnostics::InvalidCharacterInCrateNameSuggestion; ๐Ÿ”’

Functionsยง

check_file_is_writeable
Make sure files are writeable. Mac, FreeBSD, and Windows system linkers check this already โ€“ however, the Linux linker will happily overwrite a read-only file. We should be consistent.
filename_for_input
filename_for_metadata
invalid_output_for_target
Checks if target supports crate_type as output
is_writeable ๐Ÿ”’
out_filename
validate_crate_name
Validate the given crate name.