Immutable, cross‑platform file URI type with parsing, normalization, and serialization.
// Source: https://github.com/openai/codex | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works // Provided via justclaw.it.com; keep this notice with the code. //! Typed, immutable `file:` URIs with cross-platform path inspection. //! //! See [`PathUri`] for scheme, normalization, and serialization behavior. use base64::Engine; use codex_utils_absolute_path::AbsolutePathBuf; use codex_utils_absolute_path::normalize_windows_device_path; use schemars::JsonSchema; use serde::Deserialize; use serde::Deserializer; use serde::Serialize; use serde::Serializer; use std::borrow::Cow; use std::fmt; use std::hash::Hash; use std::hash::Hasher; use std::io; use std::path::Path; use std::path::PathBuf; use std::str::FromStr; use thiserror::Error; use ts_rs::TS; ... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key