path-slash breaking changes

cargo

5 curated breaking changes across major versions of path-slash. Use this as a migration checklist before bumping dependencies.

5
changes
Breaking changes by transition
  • v0.1.5 \u2192 v0.2.0breaking

    `Path::to_slash(&self) -> Option<String>`

  • v0.1.5 \u2192 v0.2.0breaking

    `Path::to_slash_lossy(&self) -> String`

  • v0.1.5 \u2192 v0.2.0breaking

    `Path::to_slash(&self) -> Option<Cow<'_, Path>>`

  • v0.1.5 \u2192 v0.2.0breaking

    `Path::to_slash_lossy(&self) -> Cow<'_, Path>`

  • v0.1.5 \u2192 v0.2.0breaking

    **BREAKING:** Fix inconsistency on Windows and on Unix-like OS in terms of trailing slash in path. Now a trailing slash in path is always preserved. (#10) ```rust // 0.1 #[cfg(target_os = "windows")] assert_eq!(Path::new(r"\a\b\").to_slash_lossy(), "/a/b"); // Trailing slash is removed #[cfg(not(target_os = "windows"))] assert_eq!(Path::new("/a/b/").to_slash_lossy(), "/a/b/"); // Trailing slash is preserved // 0.2 #[cfg(target_os = "windows")] assert_eq!(Path::new(r"\a\b\").to_slash_lossy(), "/a

API access

Get this data programmatically \u2014 free, no authentication.

curl https://depscope.dev/api/breaking/cargo/path-slash