https://github.com/taiki-e/dependabot-config
Structured access to the Dependabot configuration file.
https://github.com/taiki-e/dependabot-config
dependabot rust
Last synced: 12 months ago
JSON representation
Structured access to the Dependabot configuration file.
- Host: GitHub
- URL: https://github.com/taiki-e/dependabot-config
- Owner: taiki-e
- License: apache-2.0
- Created: 2021-04-08T18:22:31.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2024-04-23T15:53:25.000Z (about 2 years ago)
- Last Synced: 2024-05-01T23:58:15.926Z (about 2 years ago)
- Topics: dependabot, rust
- Language: Rust
- Homepage: https://docs.rs/dependabot-config
- Size: 261 KB
- Stars: 2
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE-APACHE
Awesome Lists containing this project
README
# dependabot-config
[](https://crates.io/crates/dependabot-config)
[](https://docs.rs/dependabot-config)
[](#license)
[](https://www.rust-lang.org)
[](https://github.com/taiki-e/dependabot-config/actions)
Structured access to the [Dependabot] configuration file.
## Usage
Add this to your `Cargo.toml`:
```toml
[dependencies]
dependabot-config = "0.3"
```
## Examples
```rust
use std::fs;
use dependabot_config::v2::Dependabot;
let s = fs::read_to_string(".github/dependabot.yml").unwrap();
let dependabot: Dependabot = s.parse().unwrap();
for update in dependabot.updates {
println!("{}", update.package_ecosystem);
}
```
[dependabot]: https://docs.github.com/en/code-security/supply-chain-security/about-dependabot-version-updates
## License
Licensed under either of [Apache License, Version 2.0](LICENSE-APACHE) or
[MIT license](LICENSE-MIT) 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.