mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-12 08:52:32 +00:00
* craft-pdf: the standard security handler from PdfCraft (`crypt`) Adds the `crypt` feature: PdfCraft's pdfcraft-crypt crate (revision 2b65ab000bfe0997dec5fbed2769d3da3799355b) as craft_pdf::crypt, with its unit, integration and property tests. The code is unchanged; doc comments and test imports name the new module. It decrypts and encrypts strings and streams for revisions 2 to 6 and creates encryption dictionaries. The reader keeps its own decryptor. * craft-pdf: the crypt unit tests build for wasm The property test in src/crypt/tests.rs needs proptest, which is a dev-dependency of the non-wasm targets only. It is now compiled for those targets only; the other unit tests still build for wasm.
8 lines
243 B
Rust
8 lines
243 B
Rust
//! Tests of the `crypt` feature, linked into one test binary. Not built for the web: proptest
|
|
//! does not build there.
|
|
#![cfg(all(feature = "crypt", not(target_arch = "wasm32")))]
|
|
|
|
mod permissions_revision;
|
|
mod proptests;
|
|
mod qpdf_literals;
|