Skip to content

Commit

Permalink
Merge pull request trishume#300 from forkeith/html-assets-dependency
Browse files Browse the repository at this point in the history
remove dependency on assets for html feature - just use it for tests
  • Loading branch information
trishume authored Aug 2, 2020
2 parents f444f60 + abfb32c commit a461eec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ metadata = ["parsing"]
# The `assets` feature enables inclusion of the default theme and syntax packages.
# For `assets` to do anything, it requires one of `dump-load-rs` or `dump-load` to be set.
assets = []
html = ["parsing", "assets"]
html = ["parsing"]
yaml-load = ["yaml-rust", "parsing"]
default-onig = ["parsing", "assets", "html", "yaml-load", "dump-load", "dump-create", "regex-onig"]
# In order to switch to the fancy-regex engine, disable default features then add the default-fancy feature
Expand Down
1 change: 1 addition & 0 deletions src/html.rs
Original file line number Diff line number Diff line change
Expand Up @@ -440,6 +440,7 @@ pub fn start_highlighted_html_snippet(t: &Theme) -> (String, Color) {
c.b), c)
}

#[cfg(all(feature = "assets", any(feature = "dump-load", feature = "dump-load-rs")))]
#[cfg(test)]
mod tests {
use super::*;
Expand Down

0 comments on commit a461eec

Please sign in to comment.