[package]
edition = "2024"
rust-version = "1.88"
name = "brepkit-render"
version = "3.2.21"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Offscreen GPU renderer for brepkit B-Rep solids"
homepage = "https://github.com/andymai/brepkit"
readme = "README.md"
keywords = [
"cad",
"brep",
"geometry",
"solid-modeling",
"nurbs",
]
categories = [
"graphics",
"mathematics",
"science",
]
license = "AGPL-3.0-only"
repository = "https://github.com/andymai/brepkit"
[features]
default = []
window = [
"dep:winit",
"dep:log",
]
[lib]
name = "brepkit_render"
path = "src/lib.rs"
[[example]]
name = "viewer"
path = "examples/viewer.rs"
required-features = ["window"]
[[test]]
name = "compute_mesh_lod"
path = "tests/compute_mesh_lod.rs"
[[test]]
name = "compute_mesh_render"
path = "tests/compute_mesh_render.rs"
[[test]]
name = "offscreen_render"
path = "tests/offscreen_render.rs"
[dependencies.brepkit-math]
version = "3.2.21"
[dependencies.brepkit-operations]
version = "3.2.21"
[dependencies.brepkit-topology]
version = "3.2.21"
[dependencies.bytemuck]
version = "1"
features = ["derive"]
[dependencies.image]
version = "0.25"
features = ["png"]
default-features = false
[dependencies.log]
version = "0.4"
optional = true
[dependencies.pollster]
version = "1.0"
[dependencies.thiserror]
version = "2"
[dependencies.wgpu]
version = "30"
[dependencies.winit]
version = "0.30"
optional = true
[lints.clippy]
bool_to_int_with_if = "allow"
branches_sharing_code = "allow"
cast_lossless = "allow"
cast_possible_truncation = "allow"
cast_precision_loss = "allow"
cast_sign_loss = "allow"
dbg_macro = "deny"
derive_partial_eq_without_eq = "allow"
doc_markdown = "allow"
expect_used = "warn"
if_same_then_else = "allow"
imprecise_flops = "allow"
iter_over_hash_type = "allow"
manual_let_else = "allow"
manual_slice_fill = "allow"
many_single_char_names = "allow"
map_unwrap_or = "allow"
match_same_arms = "allow"
missing_const_for_fn = "allow"
module_name_repetitions = "allow"
needless_pass_by_value = "allow"
needless_range_loop = "allow"
option_if_let_else = "allow"
panic = "deny"
print_stderr = "deny"
print_stdout = "deny"
redundant_else = "allow"
similar_names = "allow"
suboptimal_flops = "allow"
suspicious_operation_groupings = "allow"
todo = "warn"
too_many_lines = "allow"
tuple_array_conversions = "allow"
uninlined_format_args = "allow"
unwrap_used = "deny"
used_underscore_binding = "allow"
[lints.clippy.all]
level = "deny"
priority = -1
[lints.clippy.nursery]
level = "warn"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
missing_docs = "warn"
unsafe_code = "deny"