forked from realaravinth/libmedium
chore: update deps
This commit is contained in:
parent
b9fd2be304
commit
d4f73dd425
5 changed files with 482 additions and 358 deletions
816
Cargo.lock
generated
816
Cargo.lock
generated
File diff suppressed because it is too large
Load diff
|
@ -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
3
sailfish.toml
Normal file
|
@ -0,0 +1,3 @@
|
|||
delimiter= "."
|
||||
[optimizations]
|
||||
rm_whitespace= true
|
|
@ -1,3 +0,0 @@
|
|||
delimiter: "."
|
||||
optimization:
|
||||
rm_whitespace: true
|
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue