Skip to content

Commit b013122

Browse files
chore: upgrade workspace rust edition to 2024 (#96)
* upgrade rust edition to 2024 for workspace * apply formatting
1 parent 1bff528 commit b013122

23 files changed

Lines changed: 464 additions & 280 deletions

File tree

Cargo.lock

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

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ members = [
88
]
99

1010
[workspace.package]
11-
edition = "2021"
11+
edition = "2024"
1212
license = "Apache-2.0"
1313
homepage = "https://github.com/DataDog/serverless-components"
1414
repository = "https://github.com/DataDog/serverless-components"

crates/datadog-agent-config/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "datadog-agent-config"
33
version = "0.1.0"
4-
edition = "2024"
4+
edition.workspace = true
55
license.workspace = true
66

77
[lib]

crates/datadog-serverless-compat/src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
use std::{env, sync::Arc};
1111
use tokio::{
1212
sync::Mutex as TokioMutex,
13-
time::{interval, Duration},
13+
time::{Duration, interval},
1414
};
1515
use tracing::{debug, error, info};
1616
use tracing_subscriber::EnvFilter;
@@ -36,7 +36,7 @@ use dogstatsd::{
3636
util::parse_metric_namespace,
3737
};
3838

39-
use dogstatsd::metric::{SortedTags, EMPTY_TAGS};
39+
use dogstatsd::metric::{EMPTY_TAGS, SortedTags};
4040
use tokio_util::sync::CancellationToken;
4141

4242
const DOGSTATSD_FLUSH_INTERVAL: u64 = 10;

crates/datadog-trace-agent/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ bytes = "1.10.1"
3838
rmp-serde = "1.1.1"
3939
serial_test = "2.0.0"
4040
duplicate = "0.4.1"
41+
temp-env = "0.3.6"
4142
tempfile = "3.3.0"
4243
libdd-trace-utils = { git = "https://github.com/DataDog/libdatadog", rev = "d52ee90209cb12a28bdda0114535c1a985a29d95", features = [
4344
"test-utils",

0 commit comments

Comments
 (0)