1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-20 22:34:46 -05:00
denoland-deno/tests/util/server/Cargo.toml

65 lines
1.6 KiB
TOML
Raw Normal View History

# Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
2020-09-21 08:26:41 -04:00
[package]
name = "test_server"
version = "0.1.0"
2022-11-22 15:07:35 -05:00
authors.workspace = true
edition.workspace = true
license.workspace = true
publish = false
2022-11-22 15:07:35 -05:00
repository.workspace = true
[[bin]]
name = "test_server"
path = "src/test_server.rs"
[dependencies]
2022-11-22 15:07:35 -05:00
anyhow.workspace = true
2022-05-05 06:41:59 -04:00
async-stream = "0.3.3"
2022-11-22 15:07:35 -05:00
base64.workspace = true
bytes.workspace = true
console_static_text.workspace = true
deno_unsync = "0"
denokv_proto.workspace = true
faster-hex.workspace = true
fastwebsockets.workspace = true
flate2 = { workspace = true, features = ["default"] }
2022-11-22 15:07:35 -05:00
futures.workspace = true
glob.workspace = true
h2.workspace = true
http.workspace = true
http-body-util.workspace = true
hyper.workspace = true
hyper-util.workspace = true
jsonc-parser.workspace = true
lazy-regex.workspace = true
libc.workspace = true
lsp-types.workspace = true
monch.workspace = true
nix = { workspace = true, features = ["fs", "term", "signal"] }
2022-11-22 15:07:35 -05:00
once_cell.workspace = true
os_pipe.workspace = true
parking_lot.workspace = true
pretty_assertions.workspace = true
prost.workspace = true
2022-11-22 15:07:35 -05:00
regex.workspace = true
reqwest.workspace = true
rustls-pemfile.workspace = true
rustls-tokio-stream.workspace = true
semver = "=1.0.14"
2022-11-22 15:07:35 -05:00
serde.workspace = true
serde_json.workspace = true
sha2.workspace = true
2022-11-22 15:07:35 -05:00
tar.workspace = true
tempfile.workspace = true
termcolor.workspace = true
2022-11-22 15:07:35 -05:00
tokio.workspace = true
url.workspace = true
refactor: split integration tests from CLI (part 1) (#22308) This PR separates integration tests from CLI tests into a new project named `cli_tests`. This is a prerequisite for an integration test runner that can work with either the CLI binary in the current project, or one that is built ahead of time. ## Background Rust does not have the concept of artifact dependencies yet (https://github.com/rust-lang/cargo/issues/9096). Because of this, the only way we can ensure a binary is built before running associated tests is by hanging tests off the crate with the binary itself. Unfortunately this means that to run those tests, you _must_ build the binary and in the case of the deno executable that might be a 10 minute wait in release mode. ## Implementation To allow for tests to run with and without the requirement that the binary is up-to-date, we split the integration tests into a project of their own. As these tests would not require the binary to build itself before being run as-is, we add a stub integration `[[test]]` target in the `cli` project that invokes these tests using `cargo test`. The stub test runner we add has `harness = false` so that we can get access to a `main` function. This `main` function's sole job is to `execvp` the command `cargo test -p deno_cli`, effectively "calling" another cargo target. This ensures that the deno executable is always correctly rebuilt before running the stub test runner from `cli`, and gets us closer to be able to run the entire integration test suite on arbitrary deno executables (and therefore split the build into multiple phases). The new `cli_tests` project lives within `cli` to avoid a large PR. In later PRs, the test data will be split from the `cli` project. As there are a few thousand files, it'll be better to do this as a completely separate PR to avoid noise.
2024-02-09 15:33:05 -05:00
win32job = "2"
2020-08-18 16:29:32 -04:00
[target.'cfg(windows)'.dependencies]
2022-11-22 15:07:35 -05:00
winapi = { workspace = true, features = ["consoleapi", "synchapi", "handleapi", "namedpipeapi", "winbase", "winerror"] }
[build-dependencies]
prost-build.workspace = true