Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Elide test (and doctest) steps where not required #480

Merged
merged 1 commit into from
Aug 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions bin/propolis-cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ version = "0.1.0"
license = "MPL-2.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
anyhow.workspace = true
clap = { workspace = true, features = ["derive"] }
Expand Down
5 changes: 3 additions & 2 deletions bin/propolis-server/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,17 @@ version = "0.1.0"
license = "MPL-2.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[lib]
name = "propolis_server"
path = "src/lib/lib.rs"
doctest = false

[[bin]]
name = "propolis-server"
path = "src/main.rs"
doc = false
doctest = false
test = false

[dependencies]
atty.workspace = true
Expand Down
2 changes: 2 additions & 0 deletions bin/propolis-standalone/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ edition = "2021"
[[bin]]
name = "propolis-standalone"
path = "src/main.rs"
test = false
doctest = false

[dependencies]
anyhow.workspace = true
Expand Down
6 changes: 6 additions & 0 deletions bin/propolis-utils/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,18 @@ edition = "2021"

[[bin]]
name = "savex"
test = false
doctest = false

[[bin]]
name = "cpuid-gen"
test = false
doctest = false

[[bin]]
name = "rsrvrctl"
test = false
doctest = false

[dependencies]
anyhow.workspace = true
Expand Down
3 changes: 2 additions & 1 deletion crates/bhyve-api/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ version = "0.0.0"
license = "MPL-2.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[lib]
doctest = false

[dependencies]
libc.workspace = true
Expand Down
4 changes: 3 additions & 1 deletion crates/bhyve-api/sys/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ version = "0.0.0"
license = "MPL-2.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[lib]
test = false
doctest = false

[dependencies]
libc.workspace = true
Expand Down
4 changes: 3 additions & 1 deletion crates/dladm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ version = "0.0.0"
license = "MPL-2.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[lib]
test = false
doctest = false

[dependencies]
libc.workspace = true
Expand Down
4 changes: 3 additions & 1 deletion crates/propolis-server-config/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ version = "0.0.0"
license = "MPL-2.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[lib]
test = false
doctest = false

[dependencies]
serde.workspace = true
Expand Down
4 changes: 4 additions & 0 deletions crates/propolis-standalone-config/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ version = "0.0.0"
license = "MPL-2.0"
edition = "2021"

[lib]
test = false
doctest = false

[dependencies]
num_enum.workspace = true
serde.workspace = true
Expand Down
4 changes: 3 additions & 1 deletion crates/propolis-types/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ version = "0.0.0"
license = "MPL-2.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[lib]
test = false
doctest = false

[dependencies]
schemars = { workspace = true, features = [ "uuid1" ] }
Expand Down
3 changes: 2 additions & 1 deletion crates/viona-api/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ version = "0.0.0"
license = "MPL-2.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[lib]
doctest = false

[dependencies]
libc.workspace = true
Expand Down
4 changes: 3 additions & 1 deletion crates/viona-api/sys/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ version = "0.0.0"
license = "MPL-2.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[lib]
test = false
doctest = false

[dependencies]
libc = "0.2"
5 changes: 3 additions & 2 deletions lib/propolis-client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ name = "propolis-client"
version = "0.1.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[lib]
doctest = false
pfmooney marked this conversation as resolved.
Show resolved Hide resolved

[dependencies]
propolis_types.workspace = true
Expand All @@ -25,7 +26,7 @@ tokio-tungstenite = { workspace = true, optional = true }
crucible-client-types.workspace = true

[dev-dependencies]
tokio = { workspace = true, features = ["test-util"] }
tokio = { workspace = true, features = ["test-util", "macros"] }

[features]
default = []
Expand Down
2 changes: 0 additions & 2 deletions lib/propolis/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ version = "0.1.0"
license = "MPL-2.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
libc.workspace = true
bitflags.workspace = true
Expand Down
5 changes: 5 additions & 0 deletions packaging/propolis-package/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ name = "propolis-package"
version = "0.1.0"
edition = "2021"

[[bin]]
name = "propolis-package"
test = false
doctest = false

[dependencies]
anyhow.workspace = true
indicatif.workspace = true
Expand Down
3 changes: 2 additions & 1 deletion phd-tests/framework/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ version = "0.1.0"
license = "MPL-2.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[lib]
doctest = false

[dependencies]
anyhow.workspace = true
Expand Down
5 changes: 5 additions & 0 deletions phd-tests/runner/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ version = "0.1.0"
license = "MPL-2.0"
edition = "2021"

[[bin]]
name = "phd-runner"
test = false
doctest = false

[dependencies]
anyhow.workspace = true
backtrace.workspace = true
Expand Down
4 changes: 3 additions & 1 deletion phd-tests/testcase/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ name = "phd-testcase"
version = "0.1.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[lib]
test = false
doctest = false

[dependencies]
inventory.workspace = true
Expand Down
8 changes: 4 additions & 4 deletions phd-tests/testcase_macro/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ name = "phd-testcase-macros"
version = "0.1.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[lib]
proc_macro = true
test = false
doctest = false

[dependencies]
proc-macro2.workspace = true
quote.workspace = true
syn = { workspace = true, features = ["full"] }

[lib]
proc_macro = true
4 changes: 3 additions & 1 deletion phd-tests/tests/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ name = "phd-tests"
version = "0.1.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[lib]
test = false
doctest = false

[dependencies]
http.workspace = true
Expand Down
5 changes: 5 additions & 0 deletions xtask/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ name = "xtask"
version = "0.0.0"
edition = "2021"

[[bin]]
name = "xtask"
test = false
doctest = false

[dependencies]
anyhow.workspace = true
clap = { workspace = true, features = ["derive"] }
Expand Down
Loading