Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
16 commits
Select commit Hold shift + click to select a range
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
4 changes: 2 additions & 2 deletions .github/workflows/rs_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ jobs:
run: cargo clippy --workspace --all-targets --features default
- working-directory: bottlecap
run: cargo clippy --workspace --all-targets --no-default-features --features fips
# No other job compiles the test-mode feature: it gates test-only
# constructors that are absent from default and fips builds.
# The test-mode feature gates the bottlecap-test-mode binary via
# required-features, so no other job compiles it.
- working-directory: bottlecap
run: cargo clippy --workspace --all-targets --features default,test-mode

Expand Down
4 changes: 2 additions & 2 deletions .gitlab/templates/pipeline.yaml.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ cargo clippy:
# We need to do these separately because the fips feature is incompatible with the default feature.
- cargo clippy --workspace --features default
- cargo clippy --workspace --no-default-features --features fips
# No other job compiles the test-mode feature: it gates test-only
# constructors that are absent from default and fips builds.
# The test-mode feature gates the bottlecap-test-mode binary via
# required-features, so no other job compiles it.
- cargo clippy --workspace --features default,test-mode

{{ range $flavor := (ds "flavors").flavors }}
Expand Down
10 changes: 8 additions & 2 deletions bottlecap/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,10 @@ flate2 = { version = "1.1", default-features = false, features = ["rust_backend"
[[bin]]
name = "bottlecap"

[[bin]]
name = "bottlecap-test-mode"
required-features = ["test-mode"]

[profile.dev]
debug = true # same as debuginfo=2 and no stripping
strip = false
Expand Down Expand Up @@ -178,8 +182,10 @@ fips = [
# `InvocationProcessorHandle::noop()`) to callers that need to drive the
# trace-processing surface without Lambda lifecycle state.
# Not enabled in `default` or `fips`, so the items it gates do not appear
# in production builds.
test-mode = []
# in production builds. `tokio/signal` is pulled in here rather than in the
# base dependency so the shipped extension does not carry the signal driver
# for a binary only the test-mode build produces.
test-mode = ["tokio/signal"]

[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(coverage,coverage_nightly)'] }
Loading
Loading