chore: update deps

This commit is contained in:
Aravinth Manivannan 2023-02-19 19:52:14 +05:30
parent b9fd2be304
commit d4f73dd425
Signed by untrusted user: realaravinth
GPG key ID: AD9F0F08E855ED88
5 changed files with 482 additions and 358 deletions

816
Cargo.lock generated

File diff suppressed because it is too large Load diff

View file

@ -15,7 +15,7 @@ actix-http = "3.0.4"
actix-rt = "2"
actix-web = "4.0.1"
bincode = "1.3.3"
chrono = "0.4.19"
chrono = "0.4.23"
config = "0.11"
derive_more = "0.99"
futures = "0.3.17"
@ -23,16 +23,16 @@ lazy_static = "1.4"
log = "0.4"
num_cpus = "1.13"
pretty_env_logger = "0.4"
sailfish = "0.3.2"
sailfish = "0.6.0"
serde = "1"
serde_json = "1"
sled = "0.34.7"
syntect = "4.6.0"
syntect = "5.0.0"
url = "2.2"
[dependencies.graphql_client]
features = ["reqwest"]
version = "0.11.0"
version = "0.12.0"
[dependencies.actix-web-codegen-const-routes]
git = "https://github.com/realaravinth/actix-web-codegen-const-routes"

3
sailfish.toml Normal file
View file

@ -0,0 +1,3 @@
delimiter= "."
[optimizations]
rm_whitespace= true

View file

@ -1,3 +0,0 @@
delimiter: "."
optimization:
rm_whitespace: true

View file

@ -54,10 +54,12 @@ impl<'a> SourcegraphQuery<'a> {
);
// highlighted_html_for_string(&q.code, syntax_set, syntax_def, theme),
let html = SYNTAX_SET.with(|ss| {
let html = SYNTAX_SET
.with(|ss| {
let language = self.determine_language(ss);
highlighted_html_for_string(self.code, ss, language, theme)
});
})
.unwrap();
let total_lines = html.lines().count();
for (line_num, line) in html.lines().enumerate() {
if !line.trim().is_empty() {