polysmelt 0.2.0

Pure-Rust 3D asset interchange: glTF/GLB reading and writing, meshopt compression, and readers for common mesh formats
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"
rust-version = "1.88"
name = "polysmelt"
version = "0.2.0"
build = false
include = [
    "/src",
    "/examples",
    "/README.md",
    "/LICENSE",
    "/Cargo.toml",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Pure-Rust 3D asset interchange: glTF/GLB reading and writing, meshopt compression, and readers for common mesh formats"
readme = "README.md"
keywords = [
    "gltf",
    "glb",
    "meshopt",
    "3d",
    "mesh",
]
categories = [
    "graphics",
    "game-development",
    "parser-implementations",
    "encoding",
]
license = "MIT-0"
repository = "https://github.com/Azazel-Labs/polysmelt"

[package.metadata.docs.rs]
all-features = true

[features]
3ds = []
3mf = [
    "dep:zip",
    "dep:quick-xml",
]
default = [
    "minimal",
    "fbx",
    "3mf",
    "usd",
    "draco",
]
draco = [
    "gltf",
    "dep:draco-core",
]
fbx = [
    "dep:fbxcel",
    "dep:base64",
]
fs = []
gltf = []
minimal = [
    "fs",
    "stl",
    "ply",
    "vox",
    "obj",
    "3ds",
    "gltf",
]
obj = []
ply = []
stl = []
usd = [
    "dep:openusd",
    "dep:openusd-schemas",
    "dep:zip",
]
vox = []

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

[[example]]
name = "meshopt"
path = "examples/meshopt.rs"
required-features = ["fs"]

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

[dependencies.bytemuck]
version = "1"

[dependencies.draco-core]
version = "2.3"
features = [
    "decoder",
    "edgebreaker_valence_decode",
    "legacy_bitstream_decode",
]
optional = true
default-features = false

[dependencies.fbxcel]
version = "0.9"
features = [
    "tree",
    "writer",
]
optional = true

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

[dependencies.openusd-schemas]
version = "0.8"
features = [
    "geom",
    "shade",
]
optional = true

[dependencies.quick-xml]
version = "0.41"
optional = true

[dependencies.serde_json]
version = "1"

[dependencies.thiserror]
version = "2"

[dependencies.zip]
version = "9"
features = ["deflate"]
optional = true
default-features = false

[dev-dependencies.gltf]
version = "1.4"
features = ["extras"]
default-features = false

[dev-dependencies.image]
version = "0.25"
features = ["png"]
default-features = false

[dev-dependencies.tempfile]
version = "3"

[lints.clippy]
chunks_exact_to_as_chunks = "allow"
float_cmp_const = "warn"
imprecise_flops = "warn"
lossy_float_literal = "warn"
many_single_char_names = "allow"
similar_names = "allow"
too_many_lines = "allow"

[lints.clippy.pedantic]
level = "warn"
priority = -1

[lints.rust]
unsafe_code = "forbid"