# Serde Path Serializer This crate provides a `Path` serializer for Serde. ## Usage Add this to your `Cargo.toml`: ```bash cargo add serde_path_serializer ``` ```toml [dependencies] serde_path_serializer = "0.1" ``` ## Example ```rust use serde_path_serializer::serialize_path; let path = std::path::Path::new("foo/bar/baz"); let serialized = serialize_path(&path); assert_eq!(serialized, "foo/bar/baz"); ``` or ```rust use serde_path_serializer::serialize_path; use serde::Serialize; #[derive(Serialize)] struct MyStruct { #[serde(serialize_with = "serialize_path")] data: Vec, } ```