summaryrefslogtreecommitdiff
path: root/subplot-build
diff options
context:
space:
mode:
Diffstat (limited to 'subplot-build')
-rw-r--r--subplot-build/Cargo.toml7
-rw-r--r--subplot-build/src/lib.rs7
2 files changed, 9 insertions, 5 deletions
diff --git a/subplot-build/Cargo.toml b/subplot-build/Cargo.toml
index a732db3..66a0627 100644
--- a/subplot-build/Cargo.toml
+++ b/subplot-build/Cargo.toml
@@ -1,19 +1,20 @@
[package]
name = "subplot-build"
-version = "0.6.0"
+version = "0.9.0"
authors = [
"Lars Wirzenius <liw@liw.fi>",
"Daniel Silverstone <dsilvers@digital-scurf.org>",
]
-edition = "2018"
+edition = "2021"
license = "MIT-0"
description = '''A library for using Subplot code generation from another project's
`build.rs` module.'''
homepage = "https://subplot.tech/"
repository = "https://gitlab.com/subplot/subplot"
+rust-version = "1.70"
[dependencies]
-subplot = { version = "0.6.0", path = ".." }
+subplot = { version = "0.9.0", path = ".." }
tracing = "0.1"
tempfile = "3.1.0"
diff --git a/subplot-build/src/lib.rs b/subplot-build/src/lib.rs
index 7f194c5..db47623 100644
--- a/subplot-build/src/lib.rs
+++ b/subplot-build/src/lib.rs
@@ -7,7 +7,8 @@
use std::env::var_os;
use std::fmt::Debug;
use std::path::{Path, PathBuf};
-use subplot::{get_basedir_from, SubplotError};
+use subplot::get_basedir_from;
+pub use subplot::SubplotError;
use tracing::{event, instrument, span, Level};
/// Generate code for one document, inside `build.rs`.
@@ -54,7 +55,9 @@ where
// re-running.
let base_path = get_basedir_from(filename);
let meta = output.doc.meta();
- buildrs_deps(&base_path, Some(meta.markdown_filename()));
+ for filename in meta.markdown_filenames() {
+ buildrs_deps(&base_path, Some(filename.as_path()));
+ }
buildrs_deps(&base_path, meta.bindings_filenames());
let docimpl = output
.doc