# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO # # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies # to registry (e.g., crates.io) dependencies. # # If you are reading this file be aware that the original Cargo.toml # will likely look very different (and much more reasonable). # See Cargo.toml.orig for the original contents. [package] edition = "2021" name = "three-d" version = "0.18.0" authors = ["Asger Nyman Christiansen "] build = false exclude = [ "/examples", ".gitignore", "/web", ] autobins = false autoexamples = false autotests = false autobenches = false description = "2D/3D renderer - makes it simple to draw stuff across platforms (including web)" readme = "README.md" keywords = [ "3d", "gamedev", "webassembly", "opengl", "webgl", ] categories = [ "graphics", "rendering", "visualization", "wasm", "web-programming", ] license = "MIT" repository = "https://github.com/asny/three-d" [package.metadata.docs.rs] all-features = true rustdoc-args = [ "--cfg", "docsrs", ] targets = [ "x86_64-apple-darwin", "x86_64-unknown-linux-gnu", "x86_64-pc-windows-msvc", "wasm32-unknown-unknown", ] [lib] name = "three_d" path = "src/lib.rs" [dependencies.cgmath] version = "0.18" [dependencies.egui] version = "0.29" optional = true [dependencies.egui_glow] version = "0.29" optional = true [dependencies.getrandom] version = "0.2" features = ["js"] optional = true [dependencies.glow] version = "0.14" [dependencies.lyon] version = "1" optional = true [dependencies.open-enum] version = "0.5" [dependencies.swash] version = "0.1" optional = true [dependencies.thiserror] version = "2" [dependencies.three-d-asset] version = "0.9" [dependencies.winit] version = "0.28" optional = true [dev-dependencies.noise] version = "0.6" default-features = false [dev-dependencies.rand] version = "0.7" [dev-dependencies.three-d-asset] version = "0.9" features = [ "hdr", "gltf", "obj", "vol", "pcd", "png", "jpeg", "http", "data-url", ] [dev-dependencies.winit] version = "0.28" [features] default = ["window"] egui-gui = [ "egui_glow", "egui", "getrandom", ] headless = ["glutin_029"] text = [ "swash", "lyon", ] window = [ "glutin", "winit", "raw-window-handle", "wasm-bindgen", "serde", "serde-wasm-bindgen", "web-sys", ] [target.'cfg(not(target_arch = "wasm32"))'.dependencies.glutin] version = "0.30" optional = true [target.'cfg(not(target_arch = "wasm32"))'.dependencies.glutin_029] version = "0.29" optional = true package = "glutin" [target.'cfg(not(target_arch = "wasm32"))'.dependencies.image] version = "0.25" features = ["png"] optional = true default-features = false [target.'cfg(not(target_arch = "wasm32"))'.dependencies.raw-window-handle] version = "0.5" optional = true [target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.tokio] version = "1" features = [ "macros", "rt-multi-thread", ] [target.'cfg(target_arch = "wasm32")'.dependencies.instant] version = "0.1.11" [target.'cfg(target_arch = "wasm32")'.dependencies.serde] version = "1" features = ["derive"] optional = true [target.'cfg(target_arch = "wasm32")'.dependencies.serde-wasm-bindgen] version = "0.6" optional = true [target.'cfg(target_arch = "wasm32")'.dependencies.wasm-bindgen] version = "0.2" optional = true [target.'cfg(target_arch = "wasm32")'.dependencies.web-sys] version = "0.3" features = [ "Document", "HtmlCollection", "HtmlCanvasElement", "Window", ] optional = true