Skip to content

Commit

Permalink
more Cargo.toml fields and msrv CI job
Browse files Browse the repository at this point in the history
  • Loading branch information
max-heller committed Nov 23, 2023
1 parent 3092309 commit 7e75c66
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,3 +88,10 @@ jobs:
- uses: Swatinem/rust-cache@v2
- name: Run rustfmt
run: cargo fmt --check

msrv:
runs-on: ubuntu-latest
container: foresterre/cargo-msrv:latest
steps:
- name: Verify MSRV
run: cargo msrv --output-format minimal verify
7 changes: 7 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
[package]
name = "mdbook-pandoc"
description = "A mdbook backend that outsources most of the rendering process to pandoc."
version = "0.1.0"
rust-version = "1.70.0"
edition = "2021"
authors = ["Max Heller <max.a.heller@gmail.com>"]
license = "MIT OR Apache-2.0"
keywords = ["mdbook", "pandoc", "pdf", "latex", "book"]
documentation = "https://docs.rs/mdbook-pandoc"
repository = "https://github.com/max-heller/mdbook-pandoc"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

Expand Down
2 changes: 1 addition & 1 deletion src/render.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ pub struct PandocRenderer<'a> {
}

impl<'a> PandocRenderer<'a> {
pub fn new(profile: PandocProfile, root: &'a Path, destination: Cow<'a, Path>) -> Self {
pub(crate) fn new(profile: PandocProfile, root: &'a Path, destination: Cow<'a, Path>) -> Self {
Self {
pandoc: Command::new("pandoc"),
profile,
Expand Down

0 comments on commit 7e75c66

Please sign in to comment.