hayro-syntax 0.6.0

A low-level crate for reading PDF files.
Documentation
# 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 = "2024"
name = "hayro-syntax"
version = "0.6.0"
authors = ["Laurenz Stampfl <laurenz.stampfl@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A low-level crate for reading PDF files."
readme = "README.md"
license = "Apache-2.0 OR MIT"
repository = "https://github.com/LaurenzV/hayro"
resolver = "2"

[features]
default = [
    "std",
    "images",
]
images = [
    "dep:zune-jpeg",
    "dep:hayro-ccitt",
    "dep:hayro-jbig2",
    "dep:hayro-jpeg2000",
]
logging = [
    "dep:log",
    "hayro-jpeg2000?/logging",
]
std = [
    "hayro-jbig2?/std",
    "hayro-jpeg2000?/std",
    "dep:rustc-hash",
    "zune-jpeg?/std",
]
unsafe = [
    "std",
    "dep:flate2",
    "dep:memchr",
    "hayro-jbig2?/simd",
    "hayro-jpeg2000?/simd",
    "zune-jpeg?/x86",
    "zune-jpeg?/neon",
]

[lib]
name = "hayro_syntax"
path = "src/lib.rs"

[[example]]
name = "iterate"
path = "examples/iterate.rs"

[dependencies.flate2]
version = "1"
features = ["zlib-rs"]
optional = true
default-features = false

[dependencies.hayro-ccitt]
version = "0.3.0"
optional = true
default-features = false

[dependencies.hayro-jbig2]
version = "0.3.0"
optional = true
default-features = false

[dependencies.hayro-jpeg2000]
version = "0.3.5"
optional = true
default-features = false

[dependencies.log]
version = "0.4"
optional = true

[dependencies.memchr]
version = "2.8.0"
features = ["alloc"]
optional = true
default-features = false

[dependencies.rustc-hash]
version = "2"
optional = true

[dependencies.smallvec]
version = "1"

[dependencies.zune-jpeg]
version = "0.5"
optional = true
default-features = false

[dev-dependencies.aes]
version = "0.8.4"

[dev-dependencies.cbc]
version = "0.1.2"

[dev-dependencies.md5]
version = "0.8"

[dev-dependencies.sha2]
version = "0.10"

[lints.clippy]
collection_is_never_read = "warn"
dbg_macro = "warn"
debug_assert_with_mut_call = "warn"
default_trait_access = "warn"
doc_markdown = "warn"
fn_to_numeric_cast_any = "warn"
infinite_loop = "warn"
large_stack_arrays = "warn"
mismatching_type_param_order = "warn"
negative_feature_names = "warn"
redundant_feature_names = "warn"
same_functions_in_if_condition = "warn"
semicolon_if_nothing_returned = "warn"
todo = "warn"
too_many_arguments = "allow"
unseparated_literal_suffix = "warn"
use_self = "warn"
wildcard_dependencies = "warn"

[lints.rust]
elided_lifetimes_in_paths = "warn"
keyword_idents_2024 = "forbid"
missing_docs = "warn"
non_ascii_idents = "forbid"
non_local_definitions = "forbid"
trivial_numeric_casts = "warn"
unnameable_types = "warn"
unreachable_pub = "warn"
unsafe_op_in_unsafe_fn = "forbid"
unused_import_braces = "warn"
unused_lifetimes = "warn"
unused_macro_rules = "warn"
unused_qualifications = "warn"