Files
monorepo/patches/rusqlite_migrations.patch
Savanni D'Gerinel edee93777c
Some checks failed
Monorepo build / build-flake (push) Has been cancelled
Build the visions server, with a patch to rusqlite_migrations
2026-01-23 15:17:03 -05:00

52 lines
1.6 KiB
Diff
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
[workspace]
members = [
diff --git build.rs build.rs
index 1a1b32d..542fc75 100644
--- build.rs
+++ build.rs
@@ -23,31 +23,5 @@ use std::{
};
fn main() -> Result<(), Box<dyn Error>> {
- let readme_path = env::var("CARGO_PKG_README")?;
- println!("cargo:rerun-if-changed={readme_path}");
-
- let out_dir = env::var("OUT_DIR")?;
- let readme_for_rustdoc = File::create(format!("{out_dir}/readme_for_rustdoc.md"))?;
- let mut out = BufWriter::new(readme_for_rustdoc);
-
- let readme = read_to_string(readme_path)?;
- readme
- .lines()
- .skip_while(|line| line != &"<!-- rustdoc start -->")
- .skip(1) // Discard the pattern line
- .filter(|line| *line != "</div>") // Known unclosed div because we don’t start from the top
- .try_fold(0, |lines_written, line| -> Result<usize, io::Error> {
- writeln!(out, "{line}")?;
- Ok(lines_written + 1)
- })
- .map(|lines_written| {
- println!("Wrote {lines_written} lines from the README to the rustdoc.");
- assert!(
- lines_written > 70,
- "the size of the documentation produced from the README.md file is suspiciously small"
- );
- })
- ?;
-
Ok(())
}
diff --git src/lib.rs src/lib.rs
index c53d25e..977f80e 100644
--- src/lib.rs
+++ src/lib.rs
@@ -15,8 +15,6 @@
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![allow(clippy::test_attr_in_doctest)]
-// The doc is extracted from the README.md file at build time
-#![doc = include_str!(concat!(env!("OUT_DIR"), "/readme_for_rustdoc.md"))]
use std::borrow::Cow;
use std::fmt::Display;