Skip to content
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
1 change: 0 additions & 1 deletion .github/workflows/bazel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ jobs:
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
TWINE_USERNAME: ${{ secrets.TWINE_USERNAME }}
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SE_AVOID_STATS: true
steps:
- name: Checkout source tree
uses: actions/checkout@v4
Expand Down
4 changes: 4 additions & 0 deletions rust/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@ rust_library(
["src/**/*.rs"],
exclude = ["main.rs"],
),
crate_features = select({
"//common:stamp": [],
"//conditions:default": ["avoid_stats"],
}),
edition = "2024",
visibility = ["//rust:__subpackages__"],
deps = all_crate_deps(normal = True),
Expand Down
2 changes: 1 addition & 1 deletion rust/Cargo.Bazel.lock
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"checksum": "1516a316c77bba8f4f92ef0a103d79cb6171808128005d89cbe82ad22f081370",
"checksum": "15fc6f823e5b945ffdb6b09e450dca4b33a09988993f28301823b8da05d689fc",
"crates": {
"addr2line 0.25.1": {
"name": "addr2line",
Expand Down
3 changes: 3 additions & 0 deletions rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ fs_extra = "1.3.0"
[target.'cfg(windows)'.dependencies]
winapi = { version = "0.3.9", features = ["winver", "winnt", "sysinfoapi"] }

[features]
avoid_stats = []

[dev-dependencies]
assert_cmd = "2.0.17"
is_executable = "1.0.5"
Expand Down
2 changes: 1 addition & 1 deletion rust/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ impl ManagerConfig {
avoid_browser_download: BooleanKey("avoid-browser-download", false).get_value(),
language_binding: StringKey(vec!["language-binding"], "").get_value(),
selenium_version: StringKey(vec!["selenium-version"], "").get_value(),
avoid_stats: BooleanKey("avoid-stats", false).get_value(),
avoid_stats: BooleanKey("avoid-stats", cfg!(feature = "avoid_stats")).get_value(),
skip_driver_in_path: BooleanKey("skip-driver-in-path", false).get_value(),
skip_browser_in_path: BooleanKey("skip-browser-in-path", false).get_value(),
}
Expand Down