forked from StudioInfinity/dyna3
Previously, dyna3 used storage keys to refer to elements, necessitating passing around element containers to various functions so that they could access the relevant elements. These storage keys have been replaced with reference-counted pointers, used for tasks like these: - Specifying the subjects of regulators. - Collecting the regulators each element is subject to - Handling selection. - Creating interface components. Also, systematizes the handling of serial numbers for entities, through a Serial trait. And updates to rust 1.86 and institutes explicit checking of the rust version. Co-authored-by: Aaron Fenyes <aaron.fenyes@fareycircles.ooo> Reviewed-on: StudioInfinity/dyna3#84 Co-authored-by: Vectornaut <vectornaut@nobody@nowhere.net> Co-committed-by: Vectornaut <vectornaut@nobody@nowhere.net>
71 lines
1.5 KiB
TOML
71 lines
1.5 KiB
TOML
[package]
|
|
name = "dyna3"
|
|
version = "0.1.0"
|
|
authors = ["Aaron Fenyes", "Glen Whitney"]
|
|
edition = "2021"
|
|
rust-version = "1.86"
|
|
|
|
[features]
|
|
default = ["console_error_panic_hook"]
|
|
dev = []
|
|
|
|
[dependencies]
|
|
itertools = "0.13.0"
|
|
js-sys = "0.3.70"
|
|
lazy_static = "1.5.0"
|
|
nalgebra = "0.33.0"
|
|
readonly = "0.2.12"
|
|
sycamore = "0.9.0-beta.3"
|
|
|
|
# The `console_error_panic_hook` crate provides better debugging of panics by
|
|
# logging them with `console.error`. This is great for development, but requires
|
|
# all the `std::fmt` and `std::panicking` infrastructure, so isn't great for
|
|
# code size when deploying.
|
|
console_error_panic_hook = { version = "0.1.7", optional = true }
|
|
|
|
[dependencies.web-sys]
|
|
version = "0.3.69"
|
|
features = [
|
|
'DomRect',
|
|
'HtmlCanvasElement',
|
|
'HtmlInputElement',
|
|
'Performance',
|
|
'WebGl2RenderingContext',
|
|
'WebGlBuffer',
|
|
'WebGlProgram',
|
|
'WebGlShader',
|
|
'WebGlUniformLocation',
|
|
'WebGlVertexArrayObject'
|
|
]
|
|
|
|
# the self-dependency specifies features to use for tests and examples
|
|
#
|
|
# https://github.com/rust-lang/cargo/issues/2911#issuecomment-1483256987
|
|
#
|
|
[dev-dependencies]
|
|
dyna3 = { path = ".", default-features = false, features = ["dev"] }
|
|
wasm-bindgen-test = "0.3.34"
|
|
|
|
[profile.release]
|
|
opt-level = "s" # optimize for small code size
|
|
debug = true # include debug symbols
|
|
|
|
[[example]]
|
|
name = "irisawa-hexlet"
|
|
test = true
|
|
harness = false
|
|
|
|
[[example]]
|
|
name = "kaleidocycle"
|
|
test = true
|
|
harness = false
|
|
|
|
[[example]]
|
|
name = "point-on-sphere"
|
|
test = true
|
|
harness = false
|
|
|
|
[[example]]
|
|
name = "three-spheres"
|
|
test = true
|
|
harness = false
|