Update serde dependency in Cargo.toml for memofs

- Moved the `serde` dependency under the macOS-specific target configuration to ensure proper conditional inclusion based on the operating system.
- This change enhances the clarity of dependency management and maintains compatibility across different platforms.
This commit is contained in:
Joe 2026-02-06 18:28:31 -06:00
parent 8abb16e4a5
commit 0a4496a6c9

View file

@ -19,13 +19,13 @@ crossbeam-channel = "0.5.15"
fs-err = "3" fs-err = "3"
log = "0.4" log = "0.4"
notify-debouncer-full = "0.7" notify-debouncer-full = "0.7"
serde = { version = "1.0.228", features = ["derive"] }
[target.'cfg(target_os = "macos")'.dependencies] [target.'cfg(target_os = "macos")'.dependencies]
notify = { version = "8.2", features = ["macos_kqueue"] } notify = { version = "8.2", features = ["macos_kqueue"] }
[target.'cfg(not(target_os = "macos"))'.dependencies] [target.'cfg(not(target_os = "macos"))'.dependencies]
notify = "8.2" notify = "8.2"
serde = { version = "1.0.228", features = ["derive"] }
[dev-dependencies] [dev-dependencies]
tempfile = "3.24.0" tempfile = "3.24.0"