1 #![allow(dead_code)] 2 #![cfg(feature = "raw_os_str")] 3 4 use std::mem; 5 6 use os_str_bytes::RawOsStr; 7 8 #[path = "common.rs"] 9 mod common; 10 use 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))] 15 pub(crate) const RAW_WTF8_STRING: &RawOsStr = 16 unsafe { mem::transmute(WTF8_STRING) }; 17