mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-02 19:39:17 +00:00
2e14b32ccd
* chore: Add copyright and license headers This commit adds the Apache 2.0 license and a copyright notice to the header of all source files. This ensures that the licensing and copyright information is clearly stated within the codebase. * cargo fmt * fix * fmt * fix clippy
75 lines
3.1 KiB
TOML
75 lines
3.1 KiB
TOML
# Copyright 2024 RustFS Team
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
[package]
|
|
name = "rustfs-obs"
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
repository.workspace = true
|
|
rust-version.workspace = true
|
|
version.workspace = true
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[features]
|
|
default = ["file"]
|
|
file = []
|
|
gpu = ["dep:nvml-wrapper"]
|
|
webhook = ["dep:reqwest"]
|
|
kafka = ["dep:rdkafka"]
|
|
|
|
[dependencies]
|
|
rustfs-config = { workspace = true, features = ["constants"] }
|
|
async-trait = { workspace = true }
|
|
chrono = { workspace = true }
|
|
flexi_logger = { workspace = true, features = ["trc", "kv"] }
|
|
lazy_static = { workspace = true }
|
|
nu-ansi-term = { workspace = true }
|
|
nvml-wrapper = { workspace = true, optional = true }
|
|
opentelemetry = { workspace = true }
|
|
opentelemetry-appender-tracing = { workspace = true, features = ["experimental_use_tracing_span_context", "experimental_metadata_attributes"] }
|
|
opentelemetry_sdk = { workspace = true, features = ["rt-tokio"] }
|
|
opentelemetry-stdout = { workspace = true }
|
|
opentelemetry-otlp = { workspace = true, features = ["grpc-tonic", "gzip-tonic", "trace", "metrics", "logs", "internal-logs"] }
|
|
opentelemetry-semantic-conventions = { workspace = true, features = ["semconv_experimental"] }
|
|
rustfs-utils = { workspace = true, features = ["ip"] }
|
|
serde = { workspace = true }
|
|
smallvec = { workspace = true, features = ["serde"] }
|
|
tracing = { workspace = true, features = ["std", "attributes"] }
|
|
tracing-core = { workspace = true }
|
|
tracing-error = { workspace = true }
|
|
tracing-opentelemetry = { workspace = true }
|
|
tracing-subscriber = { workspace = true, features = ["registry", "std", "fmt", "env-filter", "tracing-log", "time", "local-time", "json"] }
|
|
tokio = { workspace = true, features = ["sync", "fs", "rt-multi-thread", "rt", "time", "macros"] }
|
|
reqwest = { workspace = true, optional = true }
|
|
serde_json = { workspace = true }
|
|
sysinfo = { workspace = true }
|
|
thiserror = { workspace = true }
|
|
|
|
# Only enable kafka features and related dependencies on Linux
|
|
[target.'cfg(target_os = "linux")'.dependencies]
|
|
rdkafka = { workspace = true, features = ["tokio"], optional = true }
|
|
|
|
|
|
[dev-dependencies]
|
|
chrono = { workspace = true }
|
|
opentelemetry = { workspace = true }
|
|
opentelemetry_sdk = { workspace = true, features = ["rt-tokio"] }
|
|
opentelemetry-stdout = { workspace = true }
|
|
opentelemetry-otlp = { workspace = true, features = ["grpc-tonic"] }
|
|
opentelemetry-semantic-conventions = { workspace = true, features = ["semconv_experimental"] }
|
|
tokio = { workspace = true, features = ["full"] }
|
|
tracing = { workspace = true, features = ["std", "attributes"] }
|
|
tracing-subscriber = { workspace = true, features = ["registry", "std", "fmt"] } |