Skip to content

Commit 548b57a

Browse files
committed
Merge branch 'main' into igor/rc/di-refactor-claude
2 parents 4dbfab4 + 58b86d5 commit 548b57a

47 files changed

Lines changed: 409 additions & 75 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ README.md @DataDog/libdatadog
6666
repository.datadog.yml @DataDog/apm-common-components-core
6767
rustfmt.toml @DataDog/libdatadog-core
6868
scripts/check_cargo_metadata.sh @DataDog/libdatadog-core
69+
scripts/check_crypto_providers.sh @DataDog/libdatadog-core
6970
scripts/commits-since-release.sh @DataDog/libdatadog-core
7071
scripts/create-release.sh @DataDog/apm-common-components-core
7172
scripts/crates-to-package.sh @DataDog/libdatadog-core
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: 'Check crypto providers'
2+
on:
3+
pull_request:
4+
push:
5+
branches:
6+
- main
7+
- mq-working-branch-*
8+
env:
9+
rust_version: "1.84.1"
10+
CARGO_TERM_COLOR: always
11+
CARGO_INCREMENTAL: 0
12+
jobs:
13+
check-crypto-providers:
14+
name: "ring + aws-lc-rs are not both pulled into any workspace crate"
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout sources
18+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # 4.2.2
19+
- name: Install ${{ env.rust_version }} toolchain
20+
run: rustup set profile minimal && rustup install ${{ env.rust_version }} && rustup default ${{ env.rust_version }}
21+
- name: Cache [rust]
22+
uses: Swatinem/rust-cache@f13886b937689c021905a6b90929199931d60db1 # 2.8.1
23+
with:
24+
cache-targets: true # cache build artifacts
25+
cache-bin: true # cache the ~/.cargo/bin directory
26+
- name: Run crypto provider check
27+
run: ./scripts/check_crypto_providers.sh

Cargo.lock

Lines changed: 10 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

LICENSE-3rdparty.csv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,7 @@ ref-cast,https://github.com/dtolnay/ref-cast,MIT OR Apache-2.0,David Tolnay <dto
335335
ref-cast-impl,https://github.com/dtolnay/ref-cast,MIT OR Apache-2.0,David Tolnay <dtolnay@gmail.com>
336336
regex,https://github.com/rust-lang/regex,MIT OR Apache-2.0,"The Rust Project Developers, Andrew Gallant <jamslam@gmail.com>"
337337
regex-automata,https://github.com/rust-lang/regex/tree/master/regex-automata,MIT OR Apache-2.0,"The Rust Project Developers, Andrew Gallant <jamslam@gmail.com>"
338+
regex-lite,https://github.com/rust-lang/regex,MIT OR Apache-2.0,"The Rust Project Developers, Andrew Gallant <jamslam@gmail.com>"
338339
regex-syntax,https://github.com/rust-lang/regex/tree/master/regex-syntax,MIT OR Apache-2.0,"The Rust Project Developers, Andrew Gallant <jamslam@gmail.com>"
339340
reqwest,https://github.com/seanmonstar/reqwest,MIT OR Apache-2.0,Sean McArthur <sean@seanmonstar.com>
340341
resolv-conf,https://github.com/hickory-dns/resolv-conf,MIT OR Apache-2.0,The resolv-conf Authors

bin_tests/Cargo.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,13 @@ errno = "0.3"
2525
nix = { version = "0.29", features = ["signal", "socket"] }
2626
hex = "0.4"
2727
os_info = "3.14.0"
28-
regex = "1.0"
2928

3029
[dev-dependencies]
3130
serial_test = "3.2"
3231

32+
[features]
33+
regex-lite = ["libdd-common/regex-lite"]
34+
3335
[lib]
3436
bench = false
3537

bin_tests/tests/crashtracker_bin_test.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -738,7 +738,7 @@ fn test_panic_hook_mode(mode: &str, expected_category: &str, expected_panic_mess
738738

739739
// Check for location format (file:line:column) - always present in Debug builds
740740
// Location should end with pattern like " (path/file.rs:123:45)"
741-
let location_regex = regex::Regex::new(r" \(.+?:\d+:\d+\)$").unwrap();
741+
let location_regex = libdd_common::regex_engine::Regex::new(r" \(.+?:\d+:\d+\)$").unwrap();
742742
assert!(
743743
location_regex.is_match(message),
744744
"Expected panic message to end with location ' (file:line:column)', got: {}",

builder/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ library-config = []
2929
log = []
3030
ddsketch = []
3131
ffe = []
32+
regex-lite = ["libdd-common/regex-lite"]
3233

3334
[lib]
3435
bench = false
@@ -44,7 +45,7 @@ tar = "0.4.45"
4445
tools = { path = "../tools" }
4546
toml = "0.8.19"
4647
serde = "1.0.209"
47-
regex = "1.10"
48+
libdd-common = { path = "../libdd-common", default-features = false }
4849

4950
[[bin]]
5051
name = "release"

builder/src/utils.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// SPDX-License-Identifier: Apache-2.0
33

44
use anyhow::{anyhow, Result};
5-
use regex::Regex;
5+
use libdd_common::regex_engine::{Captures, Regex};
66
use std::fs::{self, OpenOptions};
77
use std::io::Write;
88
use std::path::{Path, PathBuf};
@@ -37,7 +37,7 @@ pub(crate) fn adjust_extern_symbols(
3737
let re = Regex::new(r#"(?m)^(\s*)extern\s+(.+;)$"#).unwrap();
3838

3939
// Replace function using captures
40-
let new_content = re.replace_all(&content, |caps: &regex::Captures| {
40+
let new_content = re.replace_all(&content, |caps: &Captures| {
4141
let full_match = caps.get(0).unwrap().as_str();
4242
let indent = &caps[1];
4343
let declaration = &caps[2];

datadog-ffe/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ chrono = { version = "0.4.38", default-features = false, features = ["now", "ser
1919
derive_more = { version = "2.0.0", default-features = false, features = ["from", "into"] }
2020
log = { version = "0.4.21", default-features = false, features = ["kv", "kv_serde"] }
2121
md5 = { version = "0.7.0", default-features = false }
22-
regex = "1.10.4"
22+
libdd-common = { version = "4.0.0", path = "../libdd-common", default-features = false, features = ["require-regex-full"] }
2323
semver = "1.0"
2424
serde-bool = { version = "0.1.3", default-features = false }
2525
serde_with = { version = "3.11.0", default-features = false, features = ["base64", "hex", "macros"] }

datadog-ffe/src/rules_based/ufc/models.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
use std::{collections::HashMap, sync::Arc};
55

6-
use regex::Regex;
6+
use libdd_common::regex_engine::Regex;
77
use serde::{Deserialize, Serialize};
88

99
use crate::rules_based::{EvaluationError, FlagType, Str, Timestamp};

0 commit comments

Comments
 (0)