diff --git a/flake.lock b/flake.lock index 9bd928a..7f4d5b0 100644 --- a/flake.lock +++ b/flake.lock @@ -5,11 +5,11 @@ "systems": "systems" }, "locked": { - "lastModified": 1710146030, - "narHash": "sha256-SZ5L6eA7HJ/nmkzGG7/ISclqe6oZdOZTNoesiInkXPQ=", + "lastModified": 1731533236, + "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=", "owner": "numtide", "repo": "flake-utils", - "rev": "b1d9ab70662946ef0850d488da1c9019f3a9752a", + "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b", "type": "github" }, "original": { @@ -20,11 +20,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1726243404, - "narHash": "sha256-sjiGsMh+1cWXb53Tecsm4skyFNag33GPbVgCdfj3n9I=", + "lastModified": 1732758367, + "narHash": "sha256-RzaI1RO0UXqLjydtz3GAXSTzHkpb/lLD1JD8a0W4Wpo=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "345c263f2f53a3710abe117f28a5cb86d0ba4059", + "rev": "fa42b5a5f401aab8a32bd33c9a4de0738180dc59", "type": "github" }, "original": { @@ -48,11 +48,11 @@ ] }, "locked": { - "lastModified": 1726382494, - "narHash": "sha256-T7W+ohiXe1IY0yf/PpS4wQItZ0SyRO+/v8kqNpMXlI4=", + "lastModified": 1732802692, + "narHash": "sha256-kFrxb45qj52TT/OFUFyTdmvXkn/KXDUL0/DOtjHEQvs=", "owner": "oxalica", "repo": "rust-overlay", - "rev": "ff13821613ffe5dbfeb4fe353b1f4bf291d831db", + "rev": "34971069ec33755b2adf2481851f66d8ec9a6bfa", "type": "github" }, "original": { diff --git a/flake.nix b/flake.nix index f885584..53c80fa 100644 --- a/flake.nix +++ b/flake.nix @@ -7,7 +7,6 @@ rust-overlay.url = "github:oxalica/rust-overlay/stable"; rust-overlay.inputs.nixpkgs.follows = "nixpkgs"; - rust-overlay.inputs.flake-utils.follows = "flake-utils"; }; outputs = { self, nixpkgs, flake-utils, rust-overlay }: diff --git a/kls/Cargo.toml b/kls/Cargo.toml index 5d319c9..8864f79 100644 --- a/kls/Cargo.toml +++ b/kls/Cargo.toml @@ -18,20 +18,29 @@ bench = false [dependencies] kanata-parser = { path = "../kanata/parser", features = ["lsp", "cmd", "gui"]} +# The new Uri in 0.96.0 is unusable. +# issue: https://github.com/gluon-lang/lsp-types/issues/284 +lsp-types = "0.95.0" + +# https://github.com/rustwasm/wasm-pack/issues/1389 +# +# panicked at /rust/deps/dlmalloc-0.2.6/src/dlmalloc.rs:1198:13: +# assertion failed: psize <= size + max_overhead +# +wasm-bindgen = "0.2.97" # 0.2.97 still gives panic when not using wee_malloc +wee_alloc = "0.4.5" + console_error_panic_hook = "0.1.7" js-sys = "0.3.53" -lsp-types = "0.95.0" serde = { version = "^1.0.194", features = ["derive"] } -serde-wasm-bindgen = "0.6.3" -wasm-bindgen = "0.2.92" +serde-wasm-bindgen = "0.6.5" web-sys = { version = "0.3.64", features = ["console"] } -rustc-hash = "^1.1.0" +rustc-hash = "^2.1.0" anyhow = "^1.0.72" serde_json = "^1.0.104" -unicode-segmentation = "1.10.1" +unicode-segmentation = "^1.10.1" zduny-wasm-timer = "0.2.8" -wee_alloc = "0.4.5" -itertools = "0.12.1" +itertools = "0.13.0" [dev-dependencies] # wasm-bindgen-test = "0.3.39"