fix(domain): the core builds with no feature again: restore_copy (worker import path) behind pdf-read, the layout test sink behind pdf-write; rust-check lints and builds the core alone (the workspace run unified the wasm crate's features and hid it)
This commit is contained in:
1 parent
9965d7f0a0
commit
a17ae45ed1
3 files changed
+7
No files matched your search
@@ -98,11 +98,13 @@ pub fn latin1_bytes(text: &str) -> Vec<u8> {
|
||||
|
||||
/// An [`ImageSink`] for the layout oracles: keeps every PNG given, sized from its header,
|
||||
/// so the O1 `pngSha256` per embed index can be checked without a PDF writer.
|
||||
#[cfg(feature = "pdf-write")]
|
||||
#[derive(Default)]
|
||||
pub struct PngKeeper {
|
||||
pub pngs: Vec<Vec<u8>>,
|
||||
}
|
||||
|
||||
#[cfg(feature = "pdf-write")]
|
||||
impl faunosteo_core::pdf::write::layout::ImageSink for PngKeeper {
|
||||
fn embed(&mut self, png: &[u8]) -> Option<faunosteo_core::pdf::write::layout::Image> {
|
||||
let (width, height) = faunosteo_core::pdf::write::layout::png::dimensions(png)?;
|
||||
|
||||
Reference in new issue
Block a user