pub fn link_file(
path_json_entry: &PathsEntry,
destination_relative_path: PathBuf,
package_dir: &Path,
target_dir: &Prefix,
target_prefix: &str,
allow_symbolic_links: bool,
allow_hard_links: bool,
allow_ref_links: bool,
target_platform: Platform,
apple_codesign_behavior: AppleCodeSignBehavior,
) -> Result<LinkedFile, LinkFileError>Expand description
Installs a single file from a package_dir to the the target_dir. Replaces any
prefix_placeholder in the file with the prefix.
relative_path is the path of the file in the package_dir (and the target_dir).
Note that usually the target_prefix is equal to target_dir but it might differ. See
crate::install::InstallOptions::target_prefix for more information.