1#![allow(dead_code)]
2#![cfg(feature = "raw_os_str")]
3
4use std::mem;
5
6use os_str_bytes::RawOsStr;
7
8#[path = "common.rs"]
9mod common;
10use common::WTF8_STRING;
11
12// SAFETY: This string is valid in WTF-8. This implementation detail can only
13// be assumed by this crate.
14#[cfg(any(unix, windows))]
15pub(crate) const RAW_WTF8_STRING: &RawOsStr =
16    unsafe { mem::transmute(WTF8_STRING) };
17