You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a direct dependency on config v0.13 in my project, so I have a transient dependency on yaml-rust v0.4.5.
I am using cargo deny check advisories to check for any advisories (including unmaintained advisories) in my CI. Since yaml-rust is unmaintained, that step in the CI fails.
I want to replace the transient dependency on yaml-rust with yaml-rust2 v0.7.0
After adding yaml-rust = { version = "0.6", package = "yaml-rust2" } to my Cargo.toml and running cargo update, I don't get any errors, but when I look at the dependency tree, I see yaml-rust v0.4.5 still.
My CI also still fails with the following error, which means the transient dependency wasn't updated to yaml-rust2:
error[unmaintained]: yaml-rust is unmaintained.
┌─ /home/runner/work/zero2prod/zero2prod/Cargo.lock:248:1
│
248 │ yaml-rust 0.4.5 registry+https://github.com/rust-lang/crates.io-index
│ --------------------------------------------------------------------- unmaintained advisory detected
│
= ID: RUSTSEC-2024-0320
= Advisory: https://rustsec.org/advisories/RUSTSEC-2024-0320
= The maintainer seems [unreachable](https://github.com/chyh1990/yaml-rust/issues/197).
Many issues and pull requests have been submitted over the years
without any [response](https://github.com/chyh1990/yaml-rust/issues/160).
## Alternatives
Consider switching to the actively maintained `yaml-rust2` fork of the original project:
- [yaml-rust2](https://github.com/Ethiraric/yaml-rust2)
- [yaml-rust2 @ crates.io](https://crates.io/crates/yaml-rust2))
= Announcement: https://github.com/rustsec/advisory-db/issues/1921
= Solution: No safe upgrade is available!
= yaml-rust v0.4.5
└── config v0.13.4
└── zero2prod v0.1.0
advisories FAILED
Am I doing something wrong?
My Cargo.toml is:
[package]
name = "zero2prod"
version = "0.1.0"
edition = "2021"
[lib]
path = "src/lib.rs"
[[bin]]
path = "src/main.rs"
name = "zero2prod"
[dependencies]
actix-web = "4"
tokio = { version = "1", features = ["macros", "rt-multi-thread"] }
config = { version = "0.13", default-features = false, features = ["yaml"] }
yaml-rust = { version = "0.6", package = "yaml-rust2" }
serde = { version = "1", features = ["derive"] }
[dependencies.sqlx]
version = "0.7"
default-features = false
features = [
"runtime-tokio-rustls",
"macros",
"postgres",
"uuid",
"chrono",
"migrate",
]
[dev-dependencies]
reqwest = "0.11"
The text was updated successfully, but these errors were encountered:
The latest config still has the yaml-rust dependency as the fix was only recently merged. Kindly ask the config-rs maintainers to publish a new version.
= Solution: No safe upgrade is available!
= yaml-rust v0.4.5
└── config v0.13.4
In reply to: chyh1990#192 (comment)
I have a direct dependency on
config
v0.13 in my project, so I have a transient dependency onyaml-rust
v0.4.5.I am using
cargo deny check advisories
to check for any advisories (including unmaintained advisories) in my CI. Sinceyaml-rust
is unmaintained, that step in the CI fails.I want to replace the transient dependency on
yaml-rust
withyaml-rust2
v0.7.0After adding
yaml-rust = { version = "0.6", package = "yaml-rust2" }
to my Cargo.toml and runningcargo update
, I don't get any errors, but when I look at the dependency tree, I seeyaml-rust
v0.4.5 still.My CI also still fails with the following error, which means the transient dependency wasn't updated to
yaml-rust2
:Am I doing something wrong?
My Cargo.toml is:
The text was updated successfully, but these errors were encountered: