[package]
edition = "2024"
rust-version = "1.93"
name = "scena"
version = "1.7.2"
authors = ["Johannes Pettersson <johannes_salomon@hotmail.com>"]
build = false
include = [
"/src/**",
"/tests/*.rs",
"/tests/browser/**",
"/tests/assets/stable-contracts/**",
"/tests/assets/environment/neutral-studio.fixture.txt",
"/tests/assets/environment/generated/**",
"/tests/assets/environment/polyhaven/**",
"!/tests/assets/environment/polyhaven/*.prefilter.bin",
"/examples/**",
"!/examples/furuta_render.rs",
"/docs/**/*.md",
"/docs/assets/**/*.png",
"/docs/assets/**/*.jpg",
"/docs/assets/easy-scene-showcase/**/*.gif",
"/README.md",
"/CHANGELOG.md",
"/LICENSE-*",
"/Cargo.toml",
"/Cargo.lock",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A Rust-native scene-graph renderer with typed scene state, glTF assets, and explicit prepare/render lifecycles."
documentation = "https://docs.rs/scena"
readme = "README.md"
keywords = [
"renderer",
"scene-graph",
"gltf",
"webgpu",
"wasm",
]
categories = [
"graphics",
"rendering",
"wasm",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/johannesPettersson80/scena"
[package.metadata.docs.rs]
all-features = true
targets = [
"x86_64-unknown-linux-gnu",
"wasm32-unknown-unknown",
]
[features]
browser-probe = ["viewer-element"]
controls = []
controls-web = ["controls"]
controls-winit = ["controls"]
default = []
demo-page = [
"web-sys/Blob",
"web-sys/Url",
]
hot-reload = ["dep:notify-debouncer-full"]
icc = ["dep:lcms2"]
inspection = []
khronos-samples = []
ktx2 = [
"dep:ktx2",
"dep:basisu_c_sys",
]
meshopt = ["dep:meshopt"]
obj = []
production-assets = [
"ktx2",
"meshopt",
]
proof-harness = ["demo-page"]
scene-host = ["inspection"]
viewer-element = []
[lib]
name = "scena"
crate-type = [
"rlib",
"cdylib",
]
path = "src/lib.rs"
[[bin]]
name = "scena"
path = "src/bin/scena.rs"
[[bin]]
name = "scena-convert"
path = "src/bin/scena-convert.rs"
[[example]]
name = "anchor_alignment"
path = "examples/anchor_alignment.rs"
[[example]]
name = "animation"
path = "examples/animation.rs"
[[example]]
name = "application_builder_lab"
path = "examples/application_builder_lab.rs"
required-features = ["scene-host"]
[[example]]
name = "assembly_connector_browser"
path = "examples/assembly_connector_browser.rs"
[[example]]
name = "asset_catalog_picker"
path = "examples/asset_catalog_picker.rs"
required-features = ["scene-host"]
[[example]]
name = "beginner_diagnostics"
path = "examples/beginner_diagnostics.rs"
[[example]]
name = "browser_canvas"
path = "examples/browser_canvas.rs"
[[example]]
name = "cad_inspection_viewer"
path = "examples/cad_inspection_viewer.rs"
[[example]]
name = "camera_framing"
path = "examples/camera_framing.rs"
[[example]]
name = "connect_objects"
path = "examples/connect_objects.rs"
[[example]]
name = "connector_auto_framing"
path = "examples/connector_auto_framing.rs"
[[example]]
name = "connector_snap_hero"
path = "examples/connector_snap_hero.rs"
[[example]]
name = "coordinate_connector_repair"
path = "examples/coordinate_connector_repair.rs"
[[example]]
name = "coordinate_units"
path = "examples/coordinate_units.rs"
[[example]]
name = "easy_model_viewer"
path = "examples/easy_model_viewer.rs"
[[example]]
name = "easy_scene_showcase"
path = "examples/easy_scene_showcase.rs"
[[example]]
name = "first_visible_render"
path = "examples/first_visible_render.rs"
[[example]]
name = "glb_model_viewer"
path = "examples/glb_model_viewer.rs"
[[example]]
name = "guided_exploded_view"
path = "examples/guided_exploded_view.rs"
[[example]]
name = "headless_ci"
path = "examples/headless_ci.rs"
[[example]]
name = "headless_documentation_renderer"
path = "examples/headless_documentation_renderer.rs"
[[example]]
name = "imported_anchor_connection"
path = "examples/imported_anchor_connection.rs"
[[example]]
name = "industrial_connector_assembly"
path = "examples/industrial_connector_assembly.rs"
[[example]]
name = "industrial_static_scene"
path = "examples/industrial_static_scene.rs"
[[example]]
name = "instancing"
path = "examples/instancing.rs"
[[example]]
name = "labels_helpers"
path = "examples/labels_helpers.rs"
[[example]]
name = "layers_visibility"
path = "examples/layers_visibility.rs"
[[example]]
name = "mate_two_parts"
path = "examples/mate_two_parts.rs"
[[example]]
name = "native_window"
path = "examples/native_window.rs"
[[example]]
name = "orbit_controls"
path = "examples/orbit_controls.rs"
[[example]]
name = "orbit_controls_browser_adapter"
path = "examples/orbit_controls_browser_adapter.rs"
[[example]]
name = "orbit_controls_native_adapter"
path = "examples/orbit_controls_native_adapter.rs"
[[example]]
name = "picking_selection_hover"
path = "examples/picking_selection_hover.rs"
[[example]]
name = "primitive_shapes"
path = "examples/primitive_shapes.rs"
[[example]]
name = "product_configurator"
path = "examples/product_configurator.rs"
required-features = ["scene-host"]
[[example]]
name = "scene_host_contracts"
path = "examples/scene_host_contracts.rs"
required-features = ["scene-host"]
[[example]]
name = "scene_host_release_1_7"
path = "examples/scene_host_release_1_7.rs"
required-features = ["scene-host"]
[[example]]
name = "scene_inspection"
path = "examples/scene_inspection.rs"
required-features = ["inspection"]
[[example]]
name = "simple_scene_editor_gizmo"
path = "examples/simple_scene_editor_gizmo.rs"
[[example]]
name = "static_batching"
path = "examples/static_batching.rs"
[[example]]
name = "transform_escape_hatch"
path = "examples/transform_escape_hatch.rs"
[[example]]
name = "viewer_profiles"
path = "examples/viewer_profiles.rs"
[[test]]
name = "appearance_introspection_contracts"
path = "tests/appearance_introspection_contracts.rs"
[[test]]
name = "asset_catalog_contracts"
path = "tests/asset_catalog_contracts.rs"
[[test]]
name = "asset_catalog_preview"
path = "tests/asset_catalog_preview.rs"
[[test]]
name = "asset_doctor_contracts"
path = "tests/asset_doctor_contracts.rs"
[[test]]
name = "callouts"
path = "tests/callouts.rs"
[[test]]
name = "camera_bookmarks"
path = "tests/camera_bookmarks.rs"
[[test]]
name = "camera_control_kit"
path = "tests/camera_control_kit.rs"
[[test]]
name = "capture_contracts"
path = "tests/capture_contracts.rs"
[[test]]
name = "connector_browser_contracts"
path = "tests/connector_browser_contracts.rs"
[[test]]
name = "connector_material_audit"
path = "tests/connector_material_audit.rs"
[[test]]
name = "contact_grounding"
path = "tests/contact_grounding.rs"
[[test]]
name = "dynamic_transform_parity"
path = "tests/dynamic_transform_parity.rs"
[[test]]
name = "easy_scene_setup_framing"
path = "tests/easy_scene_setup_framing.rs"
[[test]]
name = "examples_visual_proof"
path = "tests/examples_visual_proof.rs"
[[test]]
name = "exploded_view"
path = "tests/exploded_view.rs"
[[test]]
name = "first_render_api"
path = "tests/first_render_api.rs"
[[test]]
name = "framing_views"
path = "tests/framing_views.rs"
[[test]]
name = "geometry_generated_uvs"
path = "tests/geometry_generated_uvs.rs"
[[test]]
name = "inspection_tools"
path = "tests/inspection_tools.rs"
[[test]]
name = "label_text"
path = "tests/label_text.rs"
[[test]]
name = "m0_foundation"
path = "tests/m0_foundation.rs"
[[test]]
name = "m1_browser_rendered_output"
path = "tests/m1_browser_rendered_output.rs"
[[test]]
name = "m1_geometry_materials"
path = "tests/m1_geometry_materials.rs"
[[test]]
name = "m1_visual_proof"
path = "tests/m1_visual_proof.rs"
[[test]]
name = "m2_lighting_depth_clipping"
path = "tests/m2_lighting_depth_clipping.rs"
[[test]]
name = "m2_visual_proof"
path = "tests/m2_visual_proof.rs"
[[test]]
name = "m3a_app_features"
path = "tests/m3a_app_features.rs"
[[test]]
name = "m3a_browser_rendered_output"
path = "tests/m3a_browser_rendered_output.rs"
[[test]]
name = "m3a_visual_proof"
path = "tests/m3a_visual_proof.rs"
[[test]]
name = "m3b_browser_rendered_output"
path = "tests/m3b_browser_rendered_output.rs"
[[test]]
name = "m3b_gltf_animation"
path = "tests/m3b_gltf_animation.rs"
[[test]]
name = "m3b_visual_proof"
path = "tests/m3b_visual_proof.rs"
[[test]]
name = "m4_performance_platform"
path = "tests/m4_performance_platform.rs"
[[test]]
name = "m5_release"
path = "tests/m5_release.rs"
[[test]]
name = "m6_browser_renderer_parity"
path = "tests/m6_browser_renderer_parity.rs"
[[test]]
name = "m7_interactive_viewer"
path = "tests/m7_interactive_viewer.rs"
[[test]]
name = "m7_threejs_ergonomics"
path = "tests/m7_threejs_ergonomics.rs"
[[test]]
name = "m7_visual_proof"
path = "tests/m7_visual_proof.rs"
[[test]]
name = "m8_assets_materials_ecosystem"
path = "tests/m8_assets_materials_ecosystem.rs"
[[test]]
name = "m8_compressed_asset_release_proof"
path = "tests/m8_compressed_asset_release_proof.rs"
[[test]]
name = "m8_hdr_rle"
path = "tests/m8_hdr_rle.rs"
[[test]]
name = "m8_material_variants_runtime"
path = "tests/m8_material_variants_runtime.rs"
[[test]]
name = "m8_real_asset_proof"
path = "tests/m8_real_asset_proof.rs"
[[test]]
name = "m8_stale_handle_proof"
path = "tests/m8_stale_handle_proof.rs"
[[test]]
name = "m8_visual_proof"
path = "tests/m8_visual_proof.rs"
[[test]]
name = "m9_platform_release"
path = "tests/m9_platform_release.rs"
[[test]]
name = "material_variant_helpers"
path = "tests/material_variant_helpers.rs"
[[test]]
name = "measurement_overlays"
path = "tests/measurement_overlays.rs"
[[test]]
name = "measurement_visual_proof"
path = "tests/measurement_visual_proof.rs"
[[test]]
name = "pbr_brdf_parity"
path = "tests/pbr_brdf_parity.rs"
[[test]]
name = "phase4_native_primitives"
path = "tests/phase4_native_primitives.rs"
[[test]]
name = "placeholder_regression"
path = "tests/placeholder_regression.rs"
[[test]]
name = "presentation_timeline"
path = "tests/presentation_timeline.rs"
[[test]]
name = "product_configurator_helpers"
path = "tests/product_configurator_helpers.rs"
[[test]]
name = "production_asset_profile"
path = "tests/production_asset_profile.rs"
[[test]]
name = "reference_image_regression_api"
path = "tests/reference_image_regression_api.rs"
[[test]]
name = "render_introspection_contracts"
path = "tests/render_introspection_contracts.rs"
[[test]]
name = "round_a_easy_use"
path = "tests/round_a_easy_use.rs"
[[test]]
name = "round_b_background_presets"
path = "tests/round_b_background_presets.rs"
[[test]]
name = "round_b_light_presets"
path = "tests/round_b_light_presets.rs"
[[test]]
name = "round_b_material_presets"
path = "tests/round_b_material_presets.rs"
[[test]]
name = "round_b_orbit_controls_presets"
path = "tests/round_b_orbit_controls_presets.rs"
[[test]]
name = "round_c_animation_playback"
path = "tests/round_c_animation_playback.rs"
[[test]]
name = "round_c_auto_exposure_presets"
path = "tests/round_c_auto_exposure_presets.rs"
[[test]]
name = "round_c_environment_presets"
path = "tests/round_c_environment_presets.rs"
[[test]]
name = "round_c_khronos_samples"
path = "tests/round_c_khronos_samples.rs"
[[test]]
name = "round_d_asset_hot_reload"
path = "tests/round_d_asset_hot_reload.rs"
[[test]]
name = "round_d_connector_axial_gap"
path = "tests/round_d_connector_axial_gap.rs"
[[test]]
name = "round_d_orbit_zoom_limits"
path = "tests/round_d_orbit_zoom_limits.rs"
[[test]]
name = "round_d_viewer_capture_png"
path = "tests/round_d_viewer_capture_png.rs"
[[test]]
name = "round_d_viewer_pointer_callbacks"
path = "tests/round_d_viewer_pointer_callbacks.rs"
[[test]]
name = "round_d_viewer_url_state"
path = "tests/round_d_viewer_url_state.rs"
[[test]]
name = "round_e_material_contract"
path = "tests/round_e_material_contract.rs"
[[test]]
name = "round_e_material_showcase"
path = "tests/round_e_material_showcase.rs"
[[test]]
name = "round_e_source_backed_material_presets"
path = "tests/round_e_source_backed_material_presets.rs"
[[test]]
name = "scena_cli_agent"
path = "tests/scena_cli_agent.rs"
[[test]]
name = "scena_cli_agent_templates"
path = "tests/scena_cli_agent_templates.rs"
[[test]]
name = "scena_cli_browser_proof"
path = "tests/scena_cli_browser_proof.rs"
[[test]]
name = "scena_cli_help"
path = "tests/scena_cli_help.rs"
[[test]]
name = "scena_cli_interaction"
path = "tests/scena_cli_interaction.rs"
[[test]]
name = "scena_cli_recipe"
path = "tests/scena_cli_recipe.rs"
[[test]]
name = "scena_cli_schema"
path = "tests/scena_cli_schema.rs"
[[test]]
name = "scena_viewer_element"
path = "tests/scena_viewer_element.rs"
[[test]]
name = "scene_host"
path = "tests/scene_host.rs"
[[test]]
name = "scene_placement_contracts"
path = "tests/scene_placement_contracts.rs"
[[test]]
name = "scene_recipe_contracts"
path = "tests/scene_recipe_contracts.rs"
[[test]]
name = "stable_contracts"
path = "tests/stable_contracts.rs"
[[test]]
name = "transform_gizmo"
path = "tests/transform_gizmo.rs"
[[test]]
name = "transmission_parity"
path = "tests/transmission_parity.rs"
[[test]]
name = "trust_platform_repro"
path = "tests/trust_platform_repro.rs"
[[test]]
name = "visibility_diagnosis_contracts"
path = "tests/visibility_diagnosis_contracts.rs"
[[test]]
name = "visual_repair_contracts"
path = "tests/visual_repair_contracts.rs"
[dependencies.base64]
version = "0.22"
[dependencies.basisu_c_sys]
version = "0.7.1"
features = [
"encoder",
"extra",
]
optional = true
[dependencies.bevy_mikktspace]
version = "1"
features = ["std"]
default-features = false
[dependencies.bytemuck]
version = "1"
features = ["derive"]
[dependencies.fontdue]
version = "0.9"
[dependencies.glam]
version = "0.32"
features = [
"std",
"scalar-math",
"serde",
]
default-features = false
[dependencies.gltf]
version = "1.4"
features = [
"utils",
"names",
"extras",
"extensions",
"image",
"import",
"KHR_lights_punctual",
"KHR_materials_unlit",
"KHR_materials_emissive_strength",
"KHR_texture_transform",
"KHR_materials_variants",
]
default-features = false
[dependencies.image]
version = "0.25"
features = [
"png",
"jpeg",
]
default-features = false
[dependencies.ktx2]
version = "0.5.0"
optional = true
[dependencies.lcms2]
version = "6.1.1"
optional = true
[dependencies.meshopt]
version = "0.6.2"
optional = true
[dependencies.notify-debouncer-full]
version = "0.7.0"
optional = true
[dependencies.palette]
version = "0.7.6"
features = ["std"]
default-features = false
[dependencies.png]
version = "0.18"
[dependencies.radiant]
version = "0.3"
[dependencies.raw-window-handle]
version = "0.6.2"
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1"
[dependencies.sha2]
version = "0.11"
[dependencies.slotmap]
version = "1.0"
[dependencies.urlencoding]
version = "2"
[dependencies.wgpu]
version = "29.0.3"
features = ["webgl"]
[dev-dependencies.pollster]
version = "0.4.0"
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.pollster]
version = "0.4.0"
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.rayon]
version = "1.11"
[target.'cfg(target_arch = "wasm32")'.dependencies.js-sys]
version = "0.3.98"
[target.'cfg(target_arch = "wasm32")'.dependencies.pollster]
version = "0.4.0"
[target.'cfg(target_arch = "wasm32")'.dependencies.wasm-bindgen]
version = "0.2.121"
[target.'cfg(target_arch = "wasm32")'.dependencies.wasm-bindgen-futures]
version = "0.4.71"
[target.'cfg(target_arch = "wasm32")'.dependencies.web-sys]
version = "0.3.98"
features = [
"Blob",
"CanvasRenderingContext2d",
"Document",
"Element",
"HtmlCanvasElement",
"HtmlElement",
"ImageBitmap",
"ImageBitmapOptions",
"ImageData",
"Response",
"console",
"Window",
]
[target.'cfg(target_arch = "wasm32")'.dev-dependencies.wasm-bindgen-test]
version = "0.3.71"
[profile.perf-test]
panic = "unwind"
inherits = "release"
strip = "debuginfo"
[profile.release]
lto = true
codegen-units = 1
panic = "abort"
strip = "debuginfo"