feat: upgrade faster and better cursor effects
This commit is contained in:
parent
b75e506639
commit
2010438475
2 changed files with 272 additions and 234 deletions
|
|
@ -11,7 +11,7 @@ crate-type = ["cdylib", "rlib"]
|
|||
default = ["console_error_panic_hook"]
|
||||
|
||||
[dependencies]
|
||||
wasm-bindgen = "0.2.84"
|
||||
wasm-bindgen = "0.2"
|
||||
js-sys = "0.3"
|
||||
web-sys = { version = "0.3", features = [
|
||||
"console",
|
||||
|
|
@ -21,16 +21,12 @@ web-sys = { version = "0.3", features = [
|
|||
"Window",
|
||||
"MouseEvent",
|
||||
"Element",
|
||||
"HtmlElement",
|
||||
"EventTarget",
|
||||
"Performance",
|
||||
"DomRect",
|
||||
"CssStyleDeclaration",
|
||||
"TouchEvent",
|
||||
"Touch",
|
||||
"TouchList",
|
||||
"OffscreenCanvas",
|
||||
"OffscreenCanvasRenderingContext2d",
|
||||
"ImageData",
|
||||
] }
|
||||
|
||||
|
|
@ -38,12 +34,12 @@ web-sys = { version = "0.3", features = [
|
|||
# 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 }
|
||||
console_error_panic_hook = { version = "0.1", optional = true }
|
||||
|
||||
[dev-dependencies]
|
||||
wasm-bindgen-test = "0.3.34"
|
||||
wasm-bindgen-test = "0.3"
|
||||
|
||||
[profile.release]
|
||||
# Tell `rustc` to optimize for small code size.
|
||||
opt-level = "z"
|
||||
opt-level = 3
|
||||
lto = true
|
||||
codegen-units = 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue