lib3mf-core 0.2.0

Parse and validate 3MF files for manufacturing workflows - production-ready with streaming parser and comprehensive validation
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 = "lib3mf-core"
version = "0.2.0"
authors = ["Steve Scargall"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Parse and validate 3MF files for manufacturing workflows - production-ready with streaming parser and comprehensive validation"
homepage = "https://sscargal.github.io/lib3mf-rs/"
readme = "README.md"
keywords = [
    "3mf",
    "3d-printing",
    "manufacturing",
    "cad",
    "mesh",
]
categories = [
    "parser-implementations",
    "encoding",
]
license = "BSD-2-Clause"
repository = "https://github.com/sscargal/lib3mf-rs"
resolver = "2"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
async = ["dep:tokio"]
crypto = [
    "dep:aes-gcm",
    "dep:rsa",
    "dep:sha1",
    "dep:sha2",
    "dep:x509-parser",
    "dep:rand",
    "dep:base64",
]
default = []
full = [
    "crypto",
    "parallel",
    "png-validation",
]
parallel = ["dep:rayon"]
png-validation = ["dep:png"]

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[[test]]
name = "beamlattice_test"
path = "tests/beamlattice_test.rs"

[[test]]
name = "boolean_tests"
path = "tests/boolean_tests.rs"

[[test]]
name = "conformance"
path = "tests/conformance.rs"

[[test]]
name = "context_test"
path = "tests/context_test.rs"

[[test]]
name = "crypto_test"
path = "tests/crypto_test.rs"

[[test]]
name = "displacement_roundtrip"
path = "tests/displacement_roundtrip.rs"

[[test]]
name = "encryption_test"
path = "tests/encryption_test.rs"

[[test]]
name = "error_scenarios"
path = "tests/error_scenarios.rs"

[[test]]
name = "extension_integration"
path = "tests/extension_integration.rs"

[[test]]
name = "keys_test"
path = "tests/keys_test.rs"

[[test]]
name = "materials_test"
path = "tests/materials_test.rs"

[[test]]
name = "multipart_test"
path = "tests/multipart_test.rs"

[[test]]
name = "object_type_tests"
path = "tests/object_type_tests.rs"

[[test]]
name = "package_writer_test"
path = "tests/package_writer_test.rs"

[[test]]
name = "parse_benchy"
path = "tests/parse_benchy.rs"

[[test]]
name = "production_test"
path = "tests/production_test.rs"

[[test]]
name = "proptests"
path = "tests/proptests.rs"

[[test]]
name = "read_benchy"
path = "tests/read_benchy.rs"

[[test]]
name = "repair_test"
path = "tests/repair_test.rs"

[[test]]
name = "roundtrip_benchy"
path = "tests/roundtrip_benchy.rs"

[[test]]
name = "secure_content_test"
path = "tests/secure_content_test.rs"

[[test]]
name = "slice_test"
path = "tests/slice_test.rs"

[[test]]
name = "stats_benchy"
path = "tests/stats_benchy.rs"

[[test]]
name = "streaming_test"
path = "tests/streaming_test.rs"

[[test]]
name = "validation_test"
path = "tests/validation_test.rs"

[[test]]
name = "verification_test"
path = "tests/verification_test.rs"

[[test]]
name = "volumetric_test"
path = "tests/volumetric_test.rs"

[[bench]]
name = "core_bench"
path = "benches/core_bench.rs"
harness = false

[dependencies.aes-gcm]
version = "0.10.3"
optional = true

[dependencies.anyhow]
version = "1.0"

[dependencies.base64]
version = "0.22.1"
optional = true

[dependencies.byteorder]
version = "1.5"

[dependencies.glam]
version = "0.31.0"
features = ["serde"]

[dependencies.lexical-core]
version = "1.0.6"

[dependencies.png]
version = "0.17"
optional = true

[dependencies.quick-xml]
version = "0.37.0"
features = ["serialize"]

[dependencies.rand]
version = "0.8"
optional = true

[dependencies.rayon]
version = "1.10"
optional = true

[dependencies.rsa]
version = "0.9.10"
features = ["sha2"]
optional = true

[dependencies.serde]
version = "1.0"
features = ["derive"]

[dependencies.sha1]
version = "0.10"
optional = true

[dependencies.sha2]
version = "0.10"
optional = true

[dependencies.thiserror]
version = "2.0.18"

[dependencies.tokio]
version = "1.49.0"
features = ["full"]
optional = true

[dependencies.uuid]
version = "1.20.0"
features = [
    "v4",
    "serde",
    "js",
]

[dependencies.x509-parser]
version = "0.16"
optional = true

[dependencies.zip]
version = "2.2.0"
features = ["deflate"]
default-features = false

[dev-dependencies.criterion]
version = "0.5"

[dev-dependencies.proptest]
version = "1.6.0"