# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO # # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies # to registry (e.g., crates.io) dependencies. # # If you are reading this file be aware that the original Cargo.toml # will likely look very different (and much more reasonable). # See Cargo.toml.orig for the original contents. [package] edition = "2021" name = "lopdf" version = "0.34.0" authors = [ "Junfeng Liu ", "Emulator ", ] build = false autobins = false autoexamples = false autotests = false autobenches = false description = "A Rust library for PDF document manipulation." homepage = "https://github.com/J-F-Liu/lopdf" documentation = "https://docs.rs/crate/lopdf/" readme = "README.md" keywords = [ "pdf", "editing", "manipulation", "merge", ] categories = ["text-processing"] license = "MIT" repository = "https://github.com/J-F-Liu/lopdf.git" [lib] name = "lopdf" path = "src/lib.rs" [[example]] name = "add_barcode" path = "examples/add_barcode.rs" required-features = ["pom_parser"] [[example]] name = "create" path = "examples/create.rs" [[example]] name = "extract_text" path = "examples/extract_text.rs" required-features = ["serde"] [[example]] name = "extract_toc" path = "examples/extract_toc.rs" required-features = ["serde"] [[example]] name = "merge" path = "examples/merge.rs" [[example]] name = "print_annotations" path = "examples/print_annotations.rs" required-features = ["default"] [[example]] name = "rotate" path = "examples/rotate.rs" required-features = ["nom_parser"] [[test]] name = "annotation" path = "tests/annotation.rs" [[test]] name = "incremental_document" path = "tests/incremental_document.rs" [[test]] name = "modify" path = "tests/modify.rs" required-features = ["pom_parser"] [[test]] name = "unicode" path = "tests/unicode.rs" [[test]] name = "utils" path = "tests/utils.rs" [[bench]] name = "datetime" path = "benches/datetime.rs" [[bench]] name = "parse" path = "benches/parse.rs" [dependencies.chrono] version = "0.4" features = [ "std", "clock", ] optional = true default-features = false [dependencies.encoding_rs] version = "0.8.32" [dependencies.flate2] version = "1.0" [dependencies.image] version = "0.25" optional = true [dependencies.indexmap] version = "2.2.3" [dependencies.itoa] version = "1.0" [dependencies.log] version = "0.4" [dependencies.md-5] version = "0.10" [dependencies.nom] version = "7.1" optional = true [dependencies.pom] version = "3.2" optional = true [dependencies.rangemap] version = "1.5" [dependencies.rayon] version = "1.6" optional = true [dependencies.serde] version = "1.0" features = ["derive"] optional = true [dependencies.time] version = "0.3" features = [ "formatting", "parsing", ] [dependencies.tokio] version = "1" features = [ "fs", "io-util", ] optional = true [dependencies.weezl] version = "0.1" [dev-dependencies.clap] version = "4.0" features = ["derive"] [dev-dependencies.env_logger] version = "0.11" [dev-dependencies.serde_json] version = "1.0" [dev-dependencies.shellexpand] version = "3.0" [dev-dependencies.tempfile] version = "3.3" [features] async = [ "tokio/rt-multi-thread", "tokio/macros", ] chrono_time = ["chrono"] default = [ "chrono_time", "nom_parser", "rayon", ] embed_image = ["image"] nom_parser = ["nom"] pom_parser = ["pom"] serde = ["dep:serde"] [badges.travis-ci] repository = "J-F-Liu/lopdf"