Skip to content

Commit

Permalink
Extract the runner module into its own crate
Browse files Browse the repository at this point in the history
This commit extracts the utiility runner module, used in the integration
tests into its own private crate.
The main motivation for this change is to enable sharing this
functionality between integration tests and the upcoming `javy-fuzz`
crate.

Additionally, this change promotes some dependencies to the
workspace level, namely:

- `tempfile`
- `uuid`
  • Loading branch information
saulecabrera committed Jun 29, 2024
1 parent 93df556 commit bd3e6b3
Show file tree
Hide file tree
Showing 6 changed files with 277 additions and 95 deletions.
13 changes: 13 additions & 0 deletions Cargo.lock

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

3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ members = [
"crates/cli",
"crates/javy-test-macros",
"crates/javy-config",
"crates/runner",
]
resolver = "2"

Expand All @@ -27,6 +28,8 @@ once_cell = "1.19"
bitflags = "2.5.0"
javy-config = { path = "crates/javy-config" }
javy = { path = "crates/javy", version = "3.0.0" }
tempfile = "3.10.1"
uuid = { version = "1.8", features = ["v4"] }

[profile.release]
lto = true
Expand Down
5 changes: 3 additions & 2 deletions crates/cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,18 @@ swc_core = { version = "0.92.8", features = [
wit-parser = "0.209.1"
convert_case = "0.6.0"
wasm-opt = "0.116.1"
tempfile = "3.10.1"
tempfile = { workspace = true }
clap = { version = "4.5.7", features = ["derive"] }

[dev-dependencies]
serde_json = "1.0"
uuid = { version = "1.8", features = ["v4"] }
lazy_static = "1.4"
serde = { version = "1.0", default-features = false, features = ["derive"] }
criterion = "0.5"
num-format = "0.4.4"
wasmparser = "0.209.1"
javy-runner = { path = "../runner/" }
uuid = { workspace = true }

[build-dependencies]
anyhow = "1.0.86"
Expand Down
Loading

0 comments on commit bd3e6b3

Please sign in to comment.