Files
nushell/crates/nu-path/Cargo.toml
Ian Manske 7ea4895513 Use ref-cast crate to remove some unsafe (#14897)
# Description

In a few places, `nu-path` uses `unsafe` to do reference casts. This PR
adds the [`ref-cast`](https://crates.io/crates/ref-cast) crate to do
reference casts in a "safe" manner.
2025-01-26 12:43:45 -08:00

26 lines
572 B
TOML

[package]
authors = ["The Nushell Project Developers"]
description = "Path handling library for Nushell"
repository = "https://github.com/nushell/nushell/tree/main/crates/nu-path"
edition = "2021"
license = "MIT"
name = "nu-path"
version = "0.101.1"
exclude = ["/fuzz"]
[lib]
bench = false
[dependencies]
dirs = { workspace = true }
ref-cast = "1.0.23"
[target.'cfg(windows)'.dependencies]
omnipath = { workspace = true }
[target.'cfg(all(unix, not(target_os = "macos"), not(target_os = "android")))'.dependencies]
pwd = { workspace = true }
[lints]
workspace = true