Skip to content

Commit

Permalink
Merge pull request #37 from ErichDonGubler/split-crate
Browse files Browse the repository at this point in the history
Split into a workspace of `whippit` library and `moz-webgpu-cts` binary
  • Loading branch information
ErichDonGubler authored Oct 27, 2023
2 parents 9415558 + 7f1949d commit a3982bc
Show file tree
Hide file tree
Showing 13 changed files with 81 additions and 38 deletions.
35 changes: 23 additions & 12 deletions Cargo.lock

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

34 changes: 8 additions & 26 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,35 +1,17 @@
[package]
name = "whippit"
description = "Tools and a library to work with Web Platform Tests data"
version = "0.2.1"
edition = "2021"
repository = "https://github.com/ErichDonGubler/whippit"
license = "MIT or Apache-2.0"
publish = false
[workspace]
members = [
"moz-webgpu-cts",
"whippit",
]
resolver = "2"

[features]
default = ["unstructured-properties"]
unstructured-properties = []

[dependencies]
[workspace.dependencies]
chumsky = { version = "1.0.0-alpha.6", features = ["label", "pratt"] }
clap = { version = "4.4.2", features = ["derive"] }
env_logger = "0.10.0"
format = "0.2.4"
indexmap = "2.0.0"
joinery = "3.1.0"
lets_find_up = "0.0.3"
insta = "1.33.0"
log = "0.4.20"
miette = { version = "5.10.0", features = ["fancy"] }
natord = "1.0.9"
path-dsl = "0.6.1"
regex = "1.9.5"
strum = { version = "0.25.0", features = ["derive"] }
thiserror = "1.0.49"
wax = "0.6.0"

[dev-dependencies]
insta = "1.33.0"

# The profile that 'cargo dist' will build with
[profile.dist]
Expand Down
29 changes: 29 additions & 0 deletions moz-webgpu-cts/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
[package]
name = "moz-webgpu-cts"
description = "Tools to work with Web Platform Tests metadata for WebGPU CTS in Firefox"
version = "0.2.1"
edition = "2021"
repository = "https://github.com/ErichDonGubler/moz-webgpu-cts"
license = "MIT or Apache-2.0"
publish = false

[dependencies]
chumsky = { workspace = true }
clap = { version = "4.4.2", features = ["derive"] }
env_logger = "0.10.0"
format = { workspace = true }
indexmap = { workspace = true }
joinery = "3.1.0"
lets_find_up = "0.0.3"
log = { workspace = true }
miette = { version = "5.10.0", features = ["fancy"] }
natord = "1.0.9"
path-dsl = "0.6.1"
regex = "1.9.5"
strum = { version = "0.25.0", features = ["derive"] }
thiserror = "1.0.49"
wax = "0.6.0"
whippit = { version = "0.2.1", path = "../whippit", default-features = false }

[dev-dependencies]
insta = { workspace = true }
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ use whippit::{
};

#[derive(Debug, Parser)]
#[command(about, version)]
struct Cli {
#[clap(long)]
gecko_checkout: Option<PathBuf>,
Expand Down
File renamed without changes.
File renamed without changes.
20 changes: 20 additions & 0 deletions whippit/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[package]
name = "whippit"
description = "Parsers for Web Platform Tests reports and metadata"
version = "0.2.1"
edition = "2021"
repository = "https://github.com/ErichDonGubler/whippit"
license = "MIT or Apache-2.0"
publish = false

[features]
default = ["unstructured-properties"]
unstructured-properties = []

[dependencies]
chumsky = { workspace = true }
format = { workspace = true }
indexmap = { workspace = true }

[dev-dependencies]
insta = { workspace = true }
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit a3982bc

Please sign in to comment.