mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-13 08:36:54 +00:00
dd7da015e3
* init rustfs config * improve code for rustfs-config crate * add * improve code for comment * fix: modify rustfs-config crate name * add default fn * improve error logger * fix: modify docker config yaml * improve code for config * feat: restrict kafka feature to Linux only - Add target-specific feature configuration in Cargo.toml for obs and event-notifier crates - Implement conditional compilation for kafka feature only on Linux systems - Add appropriate error handling for non-Linux platforms - Ensure backward compatibility with existing code * refactor(ci): optimize build workflow for better efficiency - Integrate GUI build steps into main build-rustfs job - Add conditional GUI build execution based on tag releases - Simplify workflow by removing redundant build-rustfs-gui job - Copy binary directly to embedded-rustfs directory without downloading artifacts - Update merge job dependency to only rely on build-rustfs - Improve cross-platform compatibility for Windows binary naming (.exe) - Streamline artifact uploading and OSS publishing process - Maintain consistent conditional logic for release operations * refactor(ci): optimize build workflow for better efficiency - Integrate GUI build steps into main build-rustfs job - Add conditional GUI build execution based on tag releases - Simplify workflow by removing redundant build-rustfs-gui job - Copy binary directly to embedded-rustfs directory without downloading artifacts - Update merge job dependency to only rely on build-rustfs - Improve cross-platform compatibility for Windows binary naming (.exe) - Streamline artifact uploading and OSS publishing process - Maintain consistent conditional logic for release operations * fix(ci): add repo-token to setup-protoc action for authentication - Add GITHUB_TOKEN parameter to arduino/setup-protoc@v3 action - Ensure proper authentication for Protoc installation in CI workflow - Maintain consistent setup across different CI environments * modify config * improve readme.md * remove env config relation * add allow(dead_code)
59 lines
2.4 KiB
TOML
59 lines
2.4 KiB
TOML
[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 }
|
|
async-trait = { workspace = true }
|
|
chrono = { workspace = true }
|
|
config = { workspace = true }
|
|
local-ip-address = { 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"] }
|
|
opentelemetry-semantic-conventions = { workspace = true, features = ["semconv_experimental"] }
|
|
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, default-features = false }
|
|
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"] } |