diff --git a/mix.exs b/mix.exs index 082b653..4240db0 100644 --- a/mix.exs +++ b/mix.exs @@ -48,7 +48,7 @@ defmodule Ketbin.MixProject do {:jason, "~> 1.2"}, {:plug_cowboy, "~> 2.5"}, {:cors_plug, "~> 3.0"}, - {:rustler, "~> 0.25"}, + {:rustler, "~> 0.27"}, {:html_sanitize_ex, "~> 1.4"}, {:hackney, "~> 1.17"}, {:swoosh, "~> 1.5"}, diff --git a/native/ketbin_utils_syntax/Cargo.lock b/native/ketbin_utils_syntax/Cargo.lock index a9ab4a5..6aecafb 100644 --- a/native/ketbin_utils_syntax/Cargo.lock +++ b/native/ketbin_utils_syntax/Cargo.lock @@ -8,6 +8,15 @@ version = "1.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f26201604c87b1e01bd3d98f8d5d9a8fcbb815e8cedb41ffccbeb4bf593a35fe" +[[package]] +name = "aho-corasick" +version = "0.7.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cc936419f96fa211c1b9166887b38e5e40b19958e5b895be7c1f93adec7071ac" +dependencies = [ + "memchr", +] + [[package]] name = "autocfg" version = "1.0.1" @@ -92,12 +101,9 @@ checksum = "ab5ef0d4909ef3724cc8cce6ccc8572c5c817592e9285f5464f8e86f8bd3726e" [[package]] name = "heck" -version = "0.3.3" +version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6d621efb26863f0e9924c6ac577e8275e5e6b77455db64ffa6c65c904e9e132c" -dependencies = [ - "unicode-segmentation", -] +checksum = "95505c38b4572b2d910cecb0281560f54b440a19336cbbcb27bf6ce6adc6f5a8" [[package]] name = "indexmap" @@ -156,6 +162,12 @@ version = "0.5.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7fb9b38af92608140b86b693604b9ffcc5824240a484d1ecd4795bacb2fe88f3" +[[package]] +name = "memchr" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2dffe52ecf27772e601905b7522cb4ef790d2cc203488bbd0e2fe85fcb74566d" + [[package]] name = "miniz_oxide" version = "0.4.4" @@ -245,6 +257,17 @@ dependencies = [ "proc-macro2", ] +[[package]] +name = "regex" +version = "1.5.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1a11647b6b25ff05a515cb92c365cec08801e83423a235b51e231e1808747286" +dependencies = [ + "aho-corasick", + "memchr", + "regex-syntax", +] + [[package]] name = "regex-syntax" version = "0.6.25" @@ -253,9 +276,9 @@ checksum = "f497285884f3fcff424ffc933e56d7cbca511def0c9831a7f9b5f6153e3cc89b" [[package]] name = "rustler" -version = "0.22.0" +version = "0.27.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b787d3b2a80007f41cd4c0c310cdeb3936192768159585f65ecc7e96faf97fc3" +checksum = "b7a4037063eab996ea56fada36d3cc982d501ed485b36a73eabdaec99b4acf6e" dependencies = [ "lazy_static", "rustler_codegen", @@ -264,9 +287,9 @@ dependencies = [ [[package]] name = "rustler_codegen" -version = "0.22.0" +version = "0.27.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b5a1f867002b6f0130f47abf215cac4405646db6f5d7b009b21c890980490aa4" +checksum = "b0dbdc98de074c324945ecc2e3ecefa47948ad8e6ed4ecf6f3424f1293a6188d" dependencies = [ "heck", "proc-macro2", @@ -276,10 +299,11 @@ dependencies = [ [[package]] name = "rustler_sys" -version = "2.1.1" +version = "2.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1cb382fde4f421c51555919e9920b058c0286f6bf59e53d02eb4d281eae6758b" +checksum = "3ff26a42e62d538f82913dd34f60105ecfdffbdb25abdc3c3580b0c622285332" dependencies = [ + "regex", "unreachable", ] @@ -365,12 +389,6 @@ dependencies = [ "yaml-rust", ] -[[package]] -name = "unicode-segmentation" -version = "1.8.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8895849a949e7845e06bd6dc1aa51731a103c42707010a5b591c0038fb73385b" - [[package]] name = "unicode-xid" version = "0.2.2" diff --git a/native/ketbin_utils_syntax/Cargo.toml b/native/ketbin_utils_syntax/Cargo.toml index a1d3102..fd16834 100644 --- a/native/ketbin_utils_syntax/Cargo.toml +++ b/native/ketbin_utils_syntax/Cargo.toml @@ -10,5 +10,5 @@ path = "src/lib.rs" crate-type = ["cdylib"] [dependencies] -rustler = "0.22.0" +rustler = "0.27.0" syntect = "4.6"