Skip to content

Commit

Permalink
feat(rust): add syntax highlighting for command's fenced code blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
YorickdeJong authored and adrianbenavides committed Mar 6, 2024
1 parent 13366e7 commit ec093ef
Show file tree
Hide file tree
Showing 4 changed files with 273 additions and 79 deletions.
152 changes: 134 additions & 18 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion implementations/rust/ockam/ockam_command/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ dockerfile = "../../../../tools/cross/Cross.Dockerfile.armv7"
# `../ockam`) and the `ockam` binary (in `./src/bin/ockam.rs`). I won't
# enumerate them here, but an example: `rustdoc` will try to place the docs for
# both of these in the same path, without realizing it, which may result in one
# overwriting the other)
# overwriting the other
#
# Anyway a result, we disable them for the binary crate, which is just a single
# file (`src/bin/ockam.rs`) which contains a single function call into
Expand Down Expand Up @@ -87,6 +87,7 @@ opentelemetry = { version = "0.21.0", features = ["metrics", "trace"] }
opentelemetry-otlp = { version = "0.14.0", features = ["metrics", "tls", "logs", "trace"], default-features = false }
pem-rfc7468 = { version = "0.7.0", features = ["std"] }
r3bl_rs_utils_core = "0.9.12"
r3bl_ansi_color = "0.6.9"
r3bl_tui = "0.5.2"
r3bl_tuify = "0.1.25"
rand = "0.8"
Expand All @@ -103,6 +104,7 @@ serde_yaml = "0.9"
shellexpand = { version = "3.1.0", default-features = false, features = ["base-0"] }
strip-ansi-escapes = "0.2.0"
syntect = { version = "5.2.0", default-features = false, features = ["default-syntaxes", "regex-onig"] }
termbg = "0"
thiserror = "1"
time = { version = "0.3", default-features = false, features = ["std", "local-offset"] }
tiny_http = "0.12.0"
Expand Down
Loading

0 comments on commit ec093ef

Please sign in to comment.