#config-file #dependabot #serialization #serde

dependabot-config

Structured access to the Dependabot configuration

9 releases

0.3.4 Apr 13, 2024
0.3.3 Oct 18, 2023
0.3.2 Aug 12, 2023
0.3.1 Jul 3, 2023
0.2.0 Apr 17, 2021

#1 in #dependabot

Download history 1/week @ 2024-02-13 16/week @ 2024-02-20 6/week @ 2024-02-27 1/week @ 2024-03-12 4/week @ 2024-03-26 14/week @ 2024-04-02 153/week @ 2024-04-09 11/week @ 2024-04-16

164 downloads per month
Used in dependabot-generator

Apache-2.0 OR MIT

80KB
1.5K SLoC

dependabot-config

crates.io docs.rs license rust version github actions

Structured access to the Dependabot configuration file.

Usage

Add this to your Cargo.toml:

[dependencies]
dependabot-config = "0.3"

Compiler support: requires rustc 1.64+

Examples

use std::fs;

use dependabot_config::v2::Dependabot;

let s = fs::read_to_string(".github/dependabot.yml")?;
let dependabot: Dependabot = s.parse()?;
for update in dependabot.updates {
    println!("{}", update.package_ecosystem);
}

License

Licensed under either of Apache License, Version 2.0 or MIT license at your option.

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~2–2.7MB
~58K SLoC