Cargo Features
[dependencies]
greentic-types = { version = "0.4.49", default-features = false, features = ["std", "serde", "time", "uuid", "schemars", "schema", "otel-keys", "json-compat", "telemetry-autoinit"] }
- default = otel-keys, serde, std, time
-
These default features are set whenever
greentic-typesis added withoutsomewhere in the dependency tree.default-features = false - std default schema? telemetry-autoinit?
-
blake3:
Enables std::io traits, including impl Write for Hasher, impl Read and Seek for OutputReader, and the Hasher::update_reader method. This feature is enabled by default. (Previously this also controlled runtime CPU feature detection on x86, but now we use the no-std-compatible
cpufeaturescrate for that.) Also enables thestdfeature of theconstant_time_eqdependency, which toggles a runtime feature check on 64-bit ARM targets.Affects
flow_resolve::sidecar_path_for_flow,flow_resolve::validate_flow_resolve,flow_resolve_summary::resolve_summary_path_for_flow,flow_resolve_summary::validate_flow_resolve_summary,greentic-types::cbor,flow_resolve::read_flow_resolve,flow_resolve::write_flow_resolve,flow_resolve_summary::read_flow_resolve_summary,flow_resolve_summary::write_flow_resolve_summary,greentic-types::schema,greentic-types::write_all_schemas,describe::schema_hash… - serde default schemars?
-
Enables serde, serde_bytes, and serde_with
Affects
component_v0_5_0_to_v0_6_0::adapt_component_qa_spec_json,component_manifests::encode_component_manifest_index_v1_to_cbor_bytes,component_manifests::decode_component_manifest_index_v1_from_cbor_bytes,component_sources::encode_component_sources_v1_to_cbor_bytes,component_sources::decode_component_sources_v1_from_cbor_bytes,flow_resolve::read_flow_resolve,flow_resolve::write_flow_resolve,flow_resolve_summary::read_flow_resolve_summary,flow_resolve_summary::write_flow_resolve_summary,describe::schema_hash… - time default
-
Enables time
Affects
provider_install::ProviderInstallRecord.created_at,provider_install::ProviderInstallRecord.updated_at,run::RunResult,supply_chain::BuildStatus.started_at_utc,supply_chain::BuildStatus.finished_at_utc,supply_chain::ScanResult.started_at_utc,supply_chain::ScanResult.finished_at_utc,span_context::SpanContext.start,span_context::SpanContext.end… - uuid
-
Enables uuid
- schemars schema? = serde
-
Enables schemars
Affects
greentic-types::schema… - schema = schemars, std
-
Affects
greentic-types::write_all_schemas…Required by the export-schemas binary
- otel-keys default
- json-compat
- telemetry-autoinit = std
-
Enables greentic-telemetry, greentic-types-macros, opentelemetry-otlp, tokio, tracing, and tracing-subscriber
Affects
telemetry::install_telemetry,telemetry::set_current_tenant_ctx…