[package]
edition = "2024"
name = "fframes_three_d"
version = "1.3.0"
authors = ["Dmitriy Kovalenko <dmtr.kovalenko@outlook.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "3D scenes for fframes: a three.js style scene graph, glTF and STL models, a CPU rasterizer and a wgpu renderer"
homepage = "https://fframes.studio"
readme = false
license = "MIT"
resolver = "2"
[features]
gpu = [
"dep:wgpu",
"dep:pollster",
"dep:bytemuck",
"fframes-media/wgpu",
]
[lib]
name = "fframes_three_d"
path = "src/lib.rs"
doctest = false
[[test]]
name = "gltf"
path = "tests/gltf.rs"
[[test]]
name = "gpu"
path = "tests/gpu.rs"
[[test]]
name = "gpu_images"
path = "tests/gpu_images.rs"
[[test]]
name = "render"
path = "tests/render.rs"
[[test]]
name = "shadow"
path = "tests/shadow.rs"
[dependencies.base64]
version = "0.22"
[dependencies.fframes-media]
version = "1.3.0"
[dependencies.glam]
version = "0.30"
[dependencies.gltf]
version = "1.4"
features = [
"utils",
"names",
"KHR_materials_emissive_strength",
"KHR_lights_punctual",
"KHR_materials_unlit",
]
default-features = false
[dependencies.image]
version = "0.25"
features = [
"png",
"jpeg",
"hdr",
"webp",
]
default-features = false
[dependencies.rayon]
version = "1.10"
[dependencies.ttf-parser]
version = "0.25.1"
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.bytemuck]
version = "1"
features = ["derive"]
optional = true
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.lru]
version = "0.18.5"
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.pollster]
version = "1"
optional = true
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.usvgr]
version = "0.50.2"
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.wgpu]
version = "30"
features = [
"std",
"parking_lot",
"wgsl",
"vulkan",
"metal",
"dx12",
]
optional = true
default-features = false
[target.'cfg(target_arch = "wasm32")'.dependencies.png]
version = "0.17"
[lints.clippy]
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_precision_loss = "allow"
cast_sign_loss = "allow"
enum_glob_use = "allow"
float_cmp = "allow"
inline_always = "allow"
many_single_char_names = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_inception = "allow"
must_use_candidate = "allow"
needless_pass_by_value = "allow"
option_map_unit_fn = "allow"
ref_option = "allow"
return_self_not_must_use = "allow"
similar_names = "allow"
single_match = "allow"
single_range_in_vec_init = "allow"
struct_excessive_bools = "allow"
struct_field_names = "allow"
too_many_lines = "allow"
trivially_copy_pass_by_ref = "allow"
unused_self = "allow"
wildcard_imports = "allow"
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = [
"cfg(wasm_bindgen_unstable_test_coverage)",
"cfg(fframes_docsrs)",
]