[package]
edition = "2024"
rust-version = "1.93"
name = "scena"
version = "1.0.2"
authors = ["Johannes Pettersson <johannes_salomon@hotmail.com>"]
build = false
include = [
"src/**",
"tests/**",
"examples/**",
"docs/**",
"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 = []
controls = []
controls-web = ["controls"]
controls-winit = ["controls"]
default = []
icc = ["dep:lcms2"]
inspection = []
ktx2 = [
"dep:ktx2",
"dep:basisu_c_sys",
]
meshopt = ["dep:meshopt"]
obj = []
[lib]
name = "scena"
crate-type = [
"rlib",
"cdylib",
]
path = "src/lib.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 = "beginner_diagnostics"
path = "examples/beginner_diagnostics.rs"
[[example]]
name = "browser_canvas"
path = "examples/browser_canvas.rs"
[[example]]
name = "camera_framing"
path = "examples/camera_framing.rs"
[[example]]
name = "connect_objects"
path = "examples/connect_objects.rs"
[[example]]
name = "coordinate_connector_repair"
path = "examples/coordinate_connector_repair.rs"
[[example]]
name = "coordinate_units"
path = "examples/coordinate_units.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 = "headless_ci"
path = "examples/headless_ci.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 = "scene_inspection"
path = "examples/scene_inspection.rs"
required-features = ["inspection"]
[[example]]
name = "static_batching"
path = "examples/static_batching.rs"
[[test]]
name = "examples_visual_proof"
path = "tests/examples_visual_proof.rs"
[[test]]
name = "first_render_api"
path = "tests/first_render_api.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"
[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.glam]
version = "0.32"
features = [
"std",
"scalar-math",
]
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.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_json]
version = "1"
[dependencies.slotmap]
version = "1.0"
[dependencies.wgpu]
version = "29.0.3"
features = ["webgl"]
[dev-dependencies.pollster]
version = "0.4.0"
[dev-dependencies.sha2]
version = "0.11"
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.pollster]
version = "0.4.0"
[target.'cfg(target_arch = "wasm32")'.dependencies.js-sys]
version = "0.3.98"
[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 = [
"CanvasRenderingContext2d",
"Document",
"Element",
"HtmlCanvasElement",
"HtmlElement",
"ImageData",
"Response",
"WebGl2RenderingContext",
"WebGlBuffer",
"WebGlProgram",
"WebGlShader",
"WebGlTexture",
"console",
"Window",
]
[target.'cfg(target_arch = "wasm32")'.dev-dependencies.wasm-bindgen-test]
version = "0.3.71"