Skip to content

Commit

Permalink
chore(deps): Bump bitmask-enum from 2.2.3 to 2.2.4 (#20528)
Browse files Browse the repository at this point in the history
* chore(deps): Bump bitmask-enum from 2.2.3 to 2.2.4

Bumps [bitmask-enum](https://github.com/Lukas3674/rust-bitmask-enum) from 2.2.3 to 2.2.4.
- [Commits](https://github.com/Lukas3674/rust-bitmask-enum/commits)

---
updated-dependencies:
- dependency-name: bitmask-enum
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* deprecated function

Signed-off-by: Jesse Szwedko <jesse.szwedko@datadoghq.com>

* remove call to deprecated function

Signed-off-by: Jesse Szwedko <jesse.szwedko@datadoghq.com>

* rustfmt

Signed-off-by: Jesse Szwedko <jesse.szwedko@datadoghq.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Jesse Szwedko <jesse.szwedko@datadoghq.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jesse Szwedko <jesse.szwedko@datadoghq.com>
  • Loading branch information
dependabot[bot] and jszwedko committed May 23, 2024
1 parent b5ec6ae commit 72d1373
Show file tree
Hide file tree
Showing 22 changed files with 92 additions and 74 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/codecs/src/decoding/format/native.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ impl NativeDeserializerConfig {

/// Return the type of event build by this deserializer.
pub fn output_type(&self) -> DataType {
DataType::all()
DataType::all_bits()
}

/// The schema produced by the deserializer.
Expand Down
2 changes: 1 addition & 1 deletion lib/codecs/src/decoding/format/native_json.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ impl NativeJsonDeserializerConfig {

/// Return the type of event build by this deserializer.
pub fn output_type(&self) -> DataType {
DataType::all()
DataType::all_bits()
}

/// The schema produced by the deserializer.
Expand Down
2 changes: 1 addition & 1 deletion lib/codecs/src/encoding/format/json.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ impl JsonSerializerConfig {

/// The data type of events that are accepted by `JsonSerializer`.
pub fn input_type(&self) -> DataType {
DataType::all()
DataType::all_bits()
}

/// The schema required by the serializer.
Expand Down
2 changes: 1 addition & 1 deletion lib/codecs/src/encoding/format/native.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ impl NativeSerializerConfig {

/// The data type of events that are accepted by `NativeSerializer`.
pub fn input_type(&self) -> DataType {
DataType::all()
DataType::all_bits()
}

/// The schema required by the serializer.
Expand Down
2 changes: 1 addition & 1 deletion lib/codecs/src/encoding/format/native_json.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ impl NativeJsonSerializerConfig {

/// The data type of events that are accepted by `NativeJsonSerializer`.
pub fn input_type(&self) -> DataType {
DataType::all()
DataType::all_bits()
}

/// The schema required by the serializer.
Expand Down
2 changes: 1 addition & 1 deletion lib/vector-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ publish = false
[dependencies]
async-graphql = { version = "7.0.5", default-features = false, features = ["playground" ], optional = true }
async-trait = { version = "0.1", default-features = false }
bitmask-enum = { version = "2.2.3", default-features = false }
bitmask-enum = { version = "2.2.4", default-features = false }
bytes = { version = "1.6.0", default-features = false, features = ["serde"] }
chrono.workspace = true
crossbeam-utils = { version = "0.8.20", default-features = false }
Expand Down
2 changes: 1 addition & 1 deletion lib/vector-core/src/config/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ impl Input {

pub fn all() -> Self {
Self {
ty: DataType::all(),
ty: DataType::all_bits(),
log_schema_requirement: schema::Requirement::empty(),
}
}
Expand Down
43 changes: 26 additions & 17 deletions src/config/graph.rs
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ mod test {
graph.add_source("metric_source", DataType::Metric);
graph.add_sink(
"any_sink",
DataType::all(),
DataType::all_bits(),
vec!["log_source", "metric_source"],
);

Expand All @@ -533,16 +533,16 @@ mod test {
#[test]
fn allows_any_into_log_or_metric() {
let mut graph = Graph::default();
graph.add_source("any_source", DataType::all());
graph.add_source("any_source", DataType::all_bits());
graph.add_transform(
"log_to_any",
DataType::Log,
DataType::all(),
DataType::all_bits(),
vec!["any_source"],
);
graph.add_transform(
"any_to_log",
DataType::all(),
DataType::all_bits(),
DataType::Log,
vec!["any_source"],
);
Expand Down Expand Up @@ -579,19 +579,19 @@ mod test {
);
graph.add_transform(
"any_to_any",
DataType::all(),
DataType::all(),
DataType::all_bits(),
DataType::all_bits(),
vec!["log_to_log", "metric_to_metric"],
);
graph.add_transform(
"any_to_log",
DataType::all(),
DataType::all_bits(),
DataType::Log,
vec!["any_to_any"],
);
graph.add_transform(
"any_to_metric",
DataType::all(),
DataType::all_bits(),
DataType::Metric,
vec!["any_to_any"],
);
Expand Down Expand Up @@ -639,26 +639,32 @@ mod test {
graph.nodes.insert(
ComponentKey::from("foo.bar"),
Node::Source {
outputs: vec![SourceOutput::new_logs(DataType::all(), Definition::any())],
outputs: vec![SourceOutput::new_logs(
DataType::all_bits(),
Definition::any(),
)],
},
);
graph.nodes.insert(
ComponentKey::from("foo.bar"),
Node::Source {
outputs: vec![SourceOutput::new_logs(DataType::all(), Definition::any())],
outputs: vec![SourceOutput::new_logs(
DataType::all_bits(),
Definition::any(),
)],
},
);
graph.nodes.insert(
ComponentKey::from("foo"),
Node::Transform {
in_ty: DataType::all(),
in_ty: DataType::all_bits(),
outputs: vec![
TransformOutput::new(
DataType::all(),
DataType::all_bits(),
[("test".into(), Definition::default_legacy_namespace())].into(),
),
TransformOutput::new(
DataType::all(),
DataType::all_bits(),
[("test".into(), Definition::default_legacy_namespace())].into(),
)
.with_port("bar"),
Expand All @@ -670,20 +676,23 @@ mod test {
graph.nodes.insert(
ComponentKey::from("baz.errors"),
Node::Source {
outputs: vec![SourceOutput::new_logs(DataType::all(), Definition::any())],
outputs: vec![SourceOutput::new_logs(
DataType::all_bits(),
Definition::any(),
)],
},
);
graph.nodes.insert(
ComponentKey::from("baz"),
Node::Transform {
in_ty: DataType::all(),
in_ty: DataType::all_bits(),
outputs: vec![
TransformOutput::new(
DataType::all(),
DataType::all_bits(),
[("test".into(), Definition::default_legacy_namespace())].into(),
),
TransformOutput::new(
DataType::all(),
DataType::all_bits(),
[("test".into(), Definition::default_legacy_namespace())].into(),
)
.with_port("errors"),
Expand Down
4 changes: 2 additions & 2 deletions src/config/unit_test/unit_test_components.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ impl SourceConfig for UnitTestSourceConfig {

fn outputs(&self, _global_log_namespace: LogNamespace) -> Vec<SourceOutput> {
vec![SourceOutput::new_logs(
DataType::all(),
DataType::all_bits(),
schema::Definition::default_legacy_namespace(),
)]
}
Expand Down Expand Up @@ -104,7 +104,7 @@ impl SourceConfig for UnitTestStreamSourceConfig {

fn outputs(&self, _global_log_namespace: LogNamespace) -> Vec<SourceOutput> {
vec![SourceOutput::new_logs(
DataType::all(),
DataType::all_bits(),
schema::Definition::default_legacy_namespace(),
)]
}
Expand Down
2 changes: 1 addition & 1 deletion src/sources/datadog_agent/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ impl SourceConfig for DatadogAgentConfig {
output.push(SourceOutput::new_traces().with_port(TRACES))
}
} else {
output.push(SourceOutput::new_logs(DataType::all(), definition))
output.push(SourceOutput::new_logs(DataType::all_bits(), definition))
}
output
}
Expand Down
2 changes: 1 addition & 1 deletion src/sources/datadog_agent/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1590,7 +1590,7 @@ fn test_config_outputs_with_disabled_data_types() {
assert_eq!(outputs.contains(&DataType::Trace), !disable_traces);
assert_eq!(outputs.contains(&DataType::Metric), !disable_metrics);
} else {
assert!(outputs.contains(&DataType::all()));
assert!(outputs.contains(&DataType::all_bits()));
assert!(outputs.len() == 1);
}
}
Expand Down
5 changes: 4 additions & 1 deletion src/sources/vector/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,10 @@ impl SourceConfig for VectorConfig {
.schema_definition(log_namespace)
.with_standard_vector_source_metadata();

vec![SourceOutput::new_logs(DataType::all(), schema_definition)]
vec![SourceOutput::new_logs(
DataType::all_bits(),
schema_definition,
)]
}

fn resources(&self) -> Vec<Resource> {
Expand Down
2 changes: 1 addition & 1 deletion src/test_util/mock/sources/backpressure.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ impl SourceConfig for BackpressureSourceConfig {

fn outputs(&self, _global_log_namespace: LogNamespace) -> Vec<SourceOutput> {
vec![SourceOutput::new_logs(
DataType::all(),
DataType::all_bits(),
Definition::default_legacy_namespace(),
)]
}
Expand Down
8 changes: 4 additions & 4 deletions src/test_util/mock/sources/basic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ impl Default for BasicSourceConfig {
Self {
receiver: Arc::new(Mutex::new(Some(receiver))),
event_counter: None,
data_type: Some(DataType::all()),
data_type: Some(DataType::all_bits()),
force_shutdown: false,
data: None,
}
Expand All @@ -59,7 +59,7 @@ impl BasicSourceConfig {
Self {
receiver: Arc::new(Mutex::new(Some(receiver))),
event_counter: None,
data_type: Some(DataType::all()),
data_type: Some(DataType::all_bits()),
force_shutdown: false,
data: None,
}
Expand All @@ -69,7 +69,7 @@ impl BasicSourceConfig {
Self {
receiver: Arc::new(Mutex::new(Some(receiver))),
event_counter: None,
data_type: Some(DataType::all()),
data_type: Some(DataType::all_bits()),
force_shutdown: false,
data: Some(data.into()),
}
Expand All @@ -82,7 +82,7 @@ impl BasicSourceConfig {
Self {
receiver: Arc::new(Mutex::new(Some(receiver))),
event_counter: Some(event_counter),
data_type: Some(DataType::all()),
data_type: Some(DataType::all_bits()),
force_shutdown: false,
data: None,
}
Expand Down
2 changes: 1 addition & 1 deletion src/test_util/mock/transforms/basic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ impl TransformConfig for BasicTransformConfig {
_: LogNamespace,
) -> Vec<TransformOutput> {
vec![TransformOutput::new(
DataType::all(),
DataType::all_bits(),
definitions
.iter()
.map(|(output, definition)| (output.clone(), definition.clone()))
Expand Down
2 changes: 1 addition & 1 deletion src/test_util/mock/transforms/error_definitions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ impl TransformConfig for ErrorDefinitionTransformConfig {
_: LogNamespace,
) -> Vec<TransformOutput> {
vec![TransformOutput::new(
DataType::all(),
DataType::all_bits(),
definitions
.iter()
.map(|(output, definition)| {
Expand Down
2 changes: 1 addition & 1 deletion src/test_util/mock/transforms/noop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ impl TransformConfig for NoopTransformConfig {
_: LogNamespace,
) -> Vec<TransformOutput> {
vec![TransformOutput::new(
DataType::all(),
DataType::all_bits(),
definitions
.iter()
.map(|(output, definition)| (output.clone(), definition.clone()))
Expand Down
Loading

0 comments on commit 72d1373

Please sign in to comment.