From e27b0a3013da6cb017850751280c4a3f314740aa Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sat, 20 Jun 2020 02:57:31 +0100 Subject: feat(cheddar): Add Sourcegraph-compatible highlighting server Sourcegraph uses a component called syntect_server to syntax-highlight source files. Since we already have custom syntaxes, overrides and configuration we might as well use them with Sourcegraph! This implements the syntect_server "protocol" (it's just a single endpoint) so that we can swap out the syntect_server component with cheddar. Note: There's a few clippy lints here, but they're being solved in a followup commit because I wanted to take care of all of them at once (not just the ones introduced in this change). Change-Id: Ib518a2fa1b9fee299fe599482403599583cac479 Reviewed-on: https://cl.tvl.fyi/c/depot/+/509 Reviewed-by: lukegb --- tools/cheddar/Cargo.toml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'tools/cheddar/Cargo.toml') diff --git a/tools/cheddar/Cargo.toml b/tools/cheddar/Cargo.toml index b7d9a775861d..66830e67d6f5 100644 --- a/tools/cheddar/Cargo.toml +++ b/tools/cheddar/Cargo.toml @@ -5,7 +5,13 @@ authors = ["Vincent Ambo "] edition = "2018" [dependencies] +clap = "2.33" comrak = "0.7" lazy_static = "1.4" +rouille = "3.0" syntect = "4.2.0" -clap = "2.33" +serde_json = "1.0" + +[dependencies.serde] +version = "1.0" +features = [ "derive" ] -- cgit 1.4.1