Skip to content

Commit

Permalink
color: Split most of the color parsing to a separate crate.
Browse files Browse the repository at this point in the history
  • Loading branch information
emilio committed Sep 11, 2023
1 parent eecbe57 commit 3caa260
Show file tree
Hide file tree
Showing 8 changed files with 1,790 additions and 1,654 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,14 @@ jobs:
run: cargo build
working-directory: macros

- name: Color build
run: cargo build
working-directory: color

- name: Color test
run: cargo test
working-directory: color

- name: Cargo miri test
if: "matrix.toolchain == 'nightly'"
run: cargo miri test --features skip_long_tests ${{ matrix.features }}
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ dummy_match_byte = []
skip_long_tests = []

[workspace]
members = [".", "./macros"]
members = [".", "./macros", "./color"]
20 changes: 20 additions & 0 deletions color/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[package]
name = "cssparser-color"
version = "0.1.0"
authors = ["Emilio Cobos Álvarez <emilio@crisal.io>"]
description = "Color implementation based on cssparser"
documentation = "https://docs.rs/cssparser-color/"
repository = "https://github.com/servo/rust-cssparser"
license = "MPL-2.0"
edition = "2021"

[lib]
path = "lib.rs"

[dependencies]
cssparser = { path = ".." }

[dev-dependencies]
serde_json = "1.0"
difference = "2.0"
encoding_rs = "0.8"
Loading

0 comments on commit 3caa260

Please sign in to comment.