Skip to content

Commit

Permalink
Update cargo-metadata to 0.18 (#355)
Browse files Browse the repository at this point in the history
  • Loading branch information
msrd0 authored Sep 19, 2023
1 parent a058a9b commit 69a3354
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ anyhow = "1.0"
ariadne = "0.3"
base64 = "0.21"
blake3 = "1.4"
cargo_metadata = "0.15.4"
cargo_metadata = "0.18"
clap = { version = "4", features = ["derive", "wrap_help"] }
either = "1.9"
itertools = "0.11"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# cargo-doc2readme ![License: Apache-2.0](https://img.shields.io/badge/license-Apache--2.0-blue) [![cargo-doc2readme on crates.io](https://img.shields.io/crates/v/cargo-doc2readme)](https://crates.io/crates/cargo-doc2readme) [![Source Code Repository](https://img.shields.io/badge/Code-On%20GitHub-blue?logo=GitHub)](https://github.com/msrd0/cargo-doc2readme) ![Rust Version: ^1.61.0](https://img.shields.io/badge/rustc-%5E1.61.0-orange.svg)
# cargo-doc2readme ![License: Apache-2.0](https://img.shields.io/badge/license-Apache--2.0-blue) [![cargo-doc2readme on crates.io](https://img.shields.io/crates/v/cargo-doc2readme)](https://crates.io/crates/cargo-doc2readme) [![Source Code Repository](https://img.shields.io/badge/Code-On%20GitHub-blue?logo=GitHub)](https://github.com/msrd0/cargo-doc2readme) ![Rust Version: 1.61.0](https://img.shields.io/badge/rustc-1.61.0-orange.svg)

`cargo doc2readme` is a cargo subcommand to create a readme file to display on [GitHub][__link0] or [crates.io][__link1], containing the rustdoc comments from your code.

Expand Down
2 changes: 1 addition & 1 deletion src/input.rs
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ pub struct InputFile {
/// The license field (if specified).
pub license: Option<String>,
/// The rust_version field (if specified).
pub rust_version: Option<VersionReq>,
pub rust_version: Option<Version>,
/// The unmodified rustdoc string
pub rustdoc: String,
/// The crate-level dependencies, mapping the valid identifier in rust code to the (possibly
Expand Down
4 changes: 2 additions & 2 deletions src/output.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use log::debug;
use pulldown_cmark::{
Alignment, BrokenLink, CodeBlockKind, CowStr, Event, LinkType, Options, Parser, Tag
};
use semver::VersionReq;
use semver::Version;
use serde::Serialize;
use std::{
collections::{BTreeMap, VecDeque},
Expand Down Expand Up @@ -382,7 +382,7 @@ struct TemplateContext<'a> {
repository_host: Option<String>,

license: Option<&'a str>,
rust_version: Option<&'a VersionReq>,
rust_version: Option<&'a Version>,

readme: String,
links: String
Expand Down

0 comments on commit 69a3354

Please sign in to comment.