[package]
name = "BREP_render"
version = "0.30.0"
edition = "2021"
license-file = "LICENSE.md"
repository = "https://github.com/mmiscool/next.BREP.io_RUST_BREP_KERNEL"
homepage = "https://next.brep.io"
readme = "README.md"
keywords = ["cad", "brep", "b-rep", "wgpu", "renderer"]
categories = ["graphics", "rendering", "wasm"]
include = [
"src/**",
"/Cargo.toml",
"/LICENSE.md",
"/README.md",
"!src/**/tests/**",
"!**/tests.rs",
"!**/*_tests.rs",
"!**/test_support.rs",
"!**/testdata/**",
]
description = "Rendering engine of the next.BREP.io Rust B-rep CAD kernel: kernel-fed scene store + wgpu renderer (headless artifact, desktop window, and wasm canvas shells)."
[lib]
name = "brep_render"
crate-type = ["cdylib", "rlib"]
[dependencies]
ttf-parser = "0.25"
epaint_default_fonts = "0.35"
brep_plugins = { package = "BREP_plugins", version = "0.23.0", path = "../BREP_plugins" }
BREP_ecad_core = { version = "0.9.1", path = "../BREP_ecad_core" }
brep_kernel = { package = "BREP_kernel", version = "0.31.0", path = "../BREP_kernel", default-features = false }
brep_cam = { package = "BREP_cam", version = "0.21.0", path = "../BREP_cam", features = ["kernel"] }
brep_instructions = { package = "BREP_instructions", version = "0.4.1", path = "../BREP_instructions" }
brep_simulation = { package = "BREP_simulation", version = "0.1.4", path = "../BREP_simulation" }
brep-reconstruction = { package = "BREP_reconstruction", version = "0.28.0", path = "../BREP_reconstruction" }
brep-gizmos = { package = "BREP_gizmos", version = "0.2.7", path = "../BREP_gizmos" }
wgpu = { version = "29", features = ["webgl"] }
bytemuck = { version = "1", features = ["derive"] }
png = "0.18"
base64 = "0.22"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
brep_kernel = { package = "BREP_kernel", version = "0.31.0", path = "../BREP_kernel", features = ["parallel"] }
brep_cam = { package = "BREP_cam", version = "0.21.0", path = "../BREP_cam", features = ["kernel", "parallel"] }
winit = { version = "0.30.13", optional = true }
[target.'cfg(target_arch = "wasm32")'.dependencies]
uuid = { version = "1", features = ["js"] }
wasm-bindgen = "0.2"
wasm-bindgen-futures = "0.4"
js-sys = "0.3"
web-sys = { version = "0.3", features = [
"HtmlCanvasElement",
"Window",
"Document",
] }
[features]
default = []
desktop = ["dep:winit"]
[[bin]]
name = "brep-render-artifact"
path = "src/bin/artifact.rs"
[[bin]]
name = "brep-render-desktop"
path = "src/bin/desktop.rs"
required-features = ["desktop"]
[profile.release]
opt-level = 3