[package]
edition = "2021"
rust-version = "1.76"
name = "modelio-rs"
version = "0.2.1"
authors = ["Per Johansson <per@doom.fish>"]
build = "build.rs"
include = [
"src/**/*",
"swift-bridge/Package.swift",
"swift-bridge/Sources/**/*",
"examples/**/*",
"tests/**/*",
"build.rs",
"Cargo.toml",
"README.md",
"LICENSE-*",
"CHANGELOG.md",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Safe Rust bindings for Apple's ModelIO framework — assets, meshes, materials, lights, cameras, voxels, textures, and animation on macOS"
homepage = "https://github.com/doom-fish/modelio-rs"
readme = "README.md"
keywords = [
"modelio",
"3d",
"mesh",
"macos",
"apple",
]
categories = [
"api-bindings",
"graphics",
"multimedia::images",
"os::macos-apis",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/doom-fish/modelio-rs"
[package.metadata.docs.rs]
all-features = true
default-target = "aarch64-apple-darwin"
targets = [
"aarch64-apple-darwin",
"x86_64-apple-darwin",
]
rustdoc-args = [
"--cfg",
"docsrs",
]
[badges.maintenance]
status = "actively-developed"
[lib]
name = "modelio"
crate-type = ["lib"]
path = "src/lib.rs"
[[example]]
name = "01_primitive_smoke"
path = "examples/01_primitive_smoke.rs"
[[example]]
name = "02_asset_basics"
path = "examples/02_asset_basics.rs"
[[example]]
name = "03_material_properties"
path = "examples/03_material_properties.rs"
[[example]]
name = "04_light_defaults"
path = "examples/04_light_defaults.rs"
[[example]]
name = "05_physically_plausible_light"
path = "examples/05_physically_plausible_light.rs"
[[example]]
name = "06_camera_controls"
path = "examples/06_camera_controls.rs"
[[example]]
name = "07_object_hierarchy"
path = "examples/07_object_hierarchy.rs"
[[example]]
name = "08_voxel_array_boolean"
path = "examples/08_voxel_array_boolean.rs"
[[example]]
name = "09_texture_checkerboard"
path = "examples/09_texture_checkerboard.rs"
[[example]]
name = "10_animation_bind_component"
path = "examples/10_animation_bind_component.rs"
[[example]]
name = "11_animated_value_types"
path = "examples/11_animated_value_types.rs"
[[example]]
name = "12_submesh_material"
path = "examples/12_submesh_material.rs"
[[example]]
name = "13_vertex_attribute_descriptor"
path = "examples/13_vertex_attribute_descriptor.rs"
[[example]]
name = "14_skeleton_basics"
path = "examples/14_skeleton_basics.rs"
[[example]]
name = "15_transform_stack_basics"
path = "examples/15_transform_stack_basics.rs"
[[example]]
name = "16_mesh_buffer_allocator"
path = "examples/16_mesh_buffer_allocator.rs"
[[example]]
name = "17_asset_resolver_light_probe"
path = "examples/17_asset_resolver_light_probe.rs"
[[test]]
name = "animated_value_types_tests"
path = "tests/animated_value_types_tests.rs"
[[test]]
name = "animation_tests"
path = "tests/animation_tests.rs"
[[test]]
name = "api_coverage"
path = "tests/api_coverage.rs"
[[test]]
name = "asset_resolver_tests"
path = "tests/asset_resolver_tests.rs"
[[test]]
name = "asset_tests"
path = "tests/asset_tests.rs"
[[test]]
name = "camera_tests"
path = "tests/camera_tests.rs"
[[test]]
name = "light_probe_tests"
path = "tests/light_probe_tests.rs"
[[test]]
name = "light_tests"
path = "tests/light_tests.rs"
[[test]]
name = "material_tests"
path = "tests/material_tests.rs"
[[test]]
name = "mesh_buffer_tests"
path = "tests/mesh_buffer_tests.rs"
[[test]]
name = "mesh_tests"
path = "tests/mesh_tests.rs"
[[test]]
name = "object_tests"
path = "tests/object_tests.rs"
[[test]]
name = "physically_plausible_light_tests"
path = "tests/physically_plausible_light_tests.rs"
[[test]]
name = "skeleton_tests"
path = "tests/skeleton_tests.rs"
[[test]]
name = "submesh_tests"
path = "tests/submesh_tests.rs"
[[test]]
name = "texture_subclass_tests"
path = "tests/texture_subclass_tests.rs"
[[test]]
name = "texture_tests"
path = "tests/texture_tests.rs"
[[test]]
name = "transform_tests"
path = "tests/transform_tests.rs"
[[test]]
name = "vertex_attribute_tests"
path = "tests/vertex_attribute_tests.rs"
[[test]]
name = "voxel_array_tests"
path = "tests/voxel_array_tests.rs"
[dependencies.libc]
version = "0.2"
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1"
[dev-dependencies.regex-lite]
version = "0.1"
[lints.clippy.cargo]
level = "warn"
priority = -1
[lints.clippy.nursery]
level = "warn"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
[profile.release]
debug = 2
strip = "none"