Skip to content

Commit b4522c6

Browse files
authored
color: Split most of the color parsing to a separate crate. (#363)
1 parent eecbe57 commit b4522c6

File tree

8 files changed

+1790
-1654
lines changed

8 files changed

+1790
-1654
lines changed

.github/workflows/main.yml

+8
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,14 @@ jobs:
5151
run: cargo build
5252
working-directory: macros
5353

54+
- name: Color build
55+
run: cargo build
56+
working-directory: color
57+
58+
- name: Color test
59+
run: cargo test
60+
working-directory: color
61+
5462
- name: Cargo miri test
5563
if: "matrix.toolchain == 'nightly'"
5664
run: cargo miri test --features skip_long_tests ${{ matrix.features }}

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,4 @@ dummy_match_byte = []
3434
skip_long_tests = []
3535

3636
[workspace]
37-
members = [".", "./macros"]
37+
members = [".", "./macros", "./color"]

color/Cargo.toml

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
[package]
2+
name = "cssparser-color"
3+
version = "0.1.0"
4+
authors = ["Emilio Cobos Álvarez <emilio@crisal.io>"]
5+
description = "Color implementation based on cssparser"
6+
documentation = "https://docs.rs/cssparser-color/"
7+
repository = "https://github.com/servo/rust-cssparser"
8+
license = "MPL-2.0"
9+
edition = "2021"
10+
11+
[lib]
12+
path = "lib.rs"
13+
14+
[dependencies]
15+
cssparser = { path = ".." }
16+
17+
[dev-dependencies]
18+
serde_json = "1.0"
19+
difference = "2.0"
20+
encoding_rs = "0.8"

0 commit comments

Comments
 (0)