mirror of
https://github.com/deuxfleurs-org/garage.git
synced 2026-07-26 07:58:14 +00:00
chore: add taplo.toml and resave Cargo.toml
Signed-off-by: Gwen Lg <me@gwenlg.fr>
This commit is contained in:
+3
-3
@@ -95,7 +95,7 @@ fjall = "2.4"
|
|||||||
async-compression = { version = "0.4", features = ["tokio", "zstd"] }
|
async-compression = { version = "0.4", features = ["tokio", "zstd"] }
|
||||||
zstd = { version = "0.13", default-features = false }
|
zstd = { version = "0.13", default-features = false }
|
||||||
|
|
||||||
quick-xml = { version = "0.26", features = [ "serialize" ] }
|
quick-xml = { version = "0.26", features = ["serialize"] }
|
||||||
rmp-serde = "1.1.2"
|
rmp-serde = "1.1.2"
|
||||||
serde = { version = "1.0", default-features = false, features = ["derive", "rc"] }
|
serde = { version = "1.0", default-features = false, features = ["derive", "rc"] }
|
||||||
serde_bytes = "0.11"
|
serde_bytes = "0.11"
|
||||||
@@ -115,7 +115,7 @@ httpdate = "1.0"
|
|||||||
http-range = "0.1"
|
http-range = "0.1"
|
||||||
http-body-util = "0.1"
|
http-body-util = "0.1"
|
||||||
hyper = { version = "1.0", default-features = false }
|
hyper = { version = "1.0", default-features = false }
|
||||||
hyper-util = { version = "0.1", features = [ "full" ] }
|
hyper-util = { version = "0.1", features = ["full"] }
|
||||||
multer = "3.0"
|
multer = "3.0"
|
||||||
percent-encoding = "2.2"
|
percent-encoding = "2.2"
|
||||||
roxmltree = "0.19"
|
roxmltree = "0.19"
|
||||||
@@ -127,7 +127,7 @@ tokio = { version = "1.0", default-features = false, features = ["rt", "rt-multi
|
|||||||
tokio-util = { version = "0.7", features = ["compat", "io"] }
|
tokio-util = { version = "0.7", features = ["compat", "io"] }
|
||||||
tokio-stream = { version = "0.1", features = ["net"] }
|
tokio-stream = { version = "0.1", features = ["net"] }
|
||||||
|
|
||||||
opentelemetry = { version = "0.17", features = [ "rt-tokio", "metrics", "trace" ] }
|
opentelemetry = { version = "0.17", features = ["rt-tokio", "metrics", "trace"] }
|
||||||
opentelemetry-prometheus = "0.10"
|
opentelemetry-prometheus = "0.10"
|
||||||
opentelemetry-otlp = "0.10"
|
opentelemetry-otlp = "0.10"
|
||||||
opentelemetry-contrib = "0.9"
|
opentelemetry-contrib = "0.9"
|
||||||
|
|||||||
@@ -46,5 +46,5 @@ opentelemetry-prometheus = { workspace = true, optional = true }
|
|||||||
prometheus = { workspace = true, optional = true }
|
prometheus = { workspace = true, optional = true }
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
metrics = [ "opentelemetry-prometheus", "prometheus" ]
|
metrics = ["opentelemetry-prometheus", "prometheus"]
|
||||||
k2v = [ "garage_model/k2v" ]
|
k2v = ["garage_model/k2v"]
|
||||||
|
|||||||
@@ -14,9 +14,9 @@ path = "lib.rs"
|
|||||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
garage_model = { workspace = true, features = [ "k2v" ] }
|
garage_model = { workspace = true, features = ["k2v"] }
|
||||||
garage_table.workspace = true
|
garage_table.workspace = true
|
||||||
garage_util = { workspace = true, features = [ "k2v" ] }
|
garage_util = { workspace = true, features = ["k2v"] }
|
||||||
garage_api_common.workspace = true
|
garage_api_common.workspace = true
|
||||||
|
|
||||||
base64.workspace = true
|
base64.workspace = true
|
||||||
|
|||||||
@@ -39,4 +39,4 @@ tokio.workspace = true
|
|||||||
tokio-util.workspace = true
|
tokio-util.workspace = true
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
system-libs = [ "zstd/pkg-config" ]
|
system-libs = ["zstd/pkg-config"]
|
||||||
|
|||||||
+5
-5
@@ -28,8 +28,8 @@ parking_lot = { workspace = true, optional = true }
|
|||||||
mktemp.workspace = true
|
mktemp.workspace = true
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = [ "lmdb", "sqlite" ]
|
default = ["lmdb", "sqlite"]
|
||||||
bundled-libs = [ "rusqlite?/bundled" ]
|
bundled-libs = ["rusqlite?/bundled"]
|
||||||
lmdb = [ "heed" ]
|
lmdb = ["heed"]
|
||||||
fjall = [ "dep:fjall", "dep:parking_lot" ]
|
fjall = ["dep:fjall", "dep:parking_lot"]
|
||||||
sqlite = [ "rusqlite", "r2d2", "r2d2_sqlite" ]
|
sqlite = ["rusqlite", "r2d2", "r2d2_sqlite"]
|
||||||
|
|||||||
+17
-13
@@ -86,32 +86,36 @@ k2v-client.workspace = true
|
|||||||
|
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = [ "bundled-libs", "metrics", "lmdb", "sqlite", "k2v" ]
|
default = ["bundled-libs", "metrics", "lmdb", "sqlite", "k2v"]
|
||||||
|
|
||||||
k2v = [ "garage_util/k2v", "garage_api_k2v", "garage_api_admin/k2v" ]
|
k2v = ["garage_util/k2v", "garage_api_k2v", "garage_api_admin/k2v"]
|
||||||
|
|
||||||
# Database engines
|
# Database engines
|
||||||
lmdb = [ "garage_model/lmdb" ]
|
lmdb = ["garage_model/lmdb"]
|
||||||
sqlite = [ "garage_model/sqlite" ]
|
sqlite = ["garage_model/sqlite"]
|
||||||
fjall = [ "garage_model/fjall" ]
|
fjall = ["garage_model/fjall"]
|
||||||
|
|
||||||
# Automatic registration and discovery via Consul API
|
# Automatic registration and discovery via Consul API
|
||||||
consul-discovery = [ "garage_rpc/consul-discovery" ]
|
consul-discovery = ["garage_rpc/consul-discovery"]
|
||||||
# Automatic registration and discovery via Kubernetes API
|
# Automatic registration and discovery via Kubernetes API
|
||||||
kubernetes-discovery = [ "garage_rpc/kubernetes-discovery" ]
|
kubernetes-discovery = ["garage_rpc/kubernetes-discovery"]
|
||||||
# Prometheus exporter (/metrics endpoint).
|
# Prometheus exporter (/metrics endpoint).
|
||||||
metrics = [ "garage_api_admin/metrics", "opentelemetry-prometheus" ]
|
metrics = ["garage_api_admin/metrics", "opentelemetry-prometheus"]
|
||||||
# Exporter for the OpenTelemetry Collector.
|
# Exporter for the OpenTelemetry Collector.
|
||||||
telemetry-otlp = [ "opentelemetry-otlp" ]
|
telemetry-otlp = ["opentelemetry-otlp"]
|
||||||
# Logging to syslog
|
# Logging to syslog
|
||||||
syslog = [ "syslog-tracing" ]
|
syslog = ["syslog-tracing"]
|
||||||
# Logging to journald
|
# Logging to journald
|
||||||
journald = [ "tracing-journald" ]
|
journald = ["tracing-journald"]
|
||||||
|
|
||||||
# NOTE: bundled-libs and system-libs should be treat as mutually exclusive;
|
# NOTE: bundled-libs and system-libs should be treat as mutually exclusive;
|
||||||
# exactly one of them should be enabled.
|
# exactly one of them should be enabled.
|
||||||
|
|
||||||
# Use bundled libsqlite instead of linking against system-provided.
|
# Use bundled libsqlite instead of linking against system-provided.
|
||||||
bundled-libs = [ "garage_db/bundled-libs" ]
|
bundled-libs = ["garage_db/bundled-libs"]
|
||||||
# Link against system-provided libsodium and libzstd.
|
# Link against system-provided libsodium and libzstd.
|
||||||
system-libs = [ "garage_block/system-libs", "garage_rpc/system-libs", "sodiumoxide/use-pkg-config" ]
|
system-libs = [
|
||||||
|
"garage_block/system-libs",
|
||||||
|
"garage_rpc/system-libs",
|
||||||
|
"sodiumoxide/use-pkg-config",
|
||||||
|
]
|
||||||
|
|||||||
@@ -1,7 +1,10 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "k2v-client"
|
name = "k2v-client"
|
||||||
version = "0.0.4"
|
version = "0.0.4"
|
||||||
authors = ["Trinity Pointard <trinity.pointard@gmail.com>", "Alex Auvolat <alex@adnab.me>"]
|
authors = [
|
||||||
|
"Trinity Pointard <trinity.pointard@gmail.com>",
|
||||||
|
"Alex Auvolat <alex@adnab.me>",
|
||||||
|
]
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
license = "AGPL-3.0"
|
license = "AGPL-3.0"
|
||||||
description = "Client library for the Garage K2V protocol"
|
description = "Client library for the Garage K2V protocol"
|
||||||
|
|||||||
@@ -41,8 +41,8 @@ futures.workspace = true
|
|||||||
tokio.workspace = true
|
tokio.workspace = true
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = [ "lmdb", "sqlite" ]
|
default = ["lmdb", "sqlite"]
|
||||||
k2v = [ "garage_util/k2v" ]
|
k2v = ["garage_util/k2v"]
|
||||||
lmdb = [ "garage_db/lmdb" ]
|
lmdb = ["garage_db/lmdb"]
|
||||||
sqlite = [ "garage_db/sqlite" ]
|
sqlite = ["garage_db/sqlite"]
|
||||||
fjall = [ "garage_db/fjall" ]
|
fjall = ["garage_db/fjall"]
|
||||||
|
|||||||
+3
-3
@@ -48,6 +48,6 @@ tokio.workspace = true
|
|||||||
opentelemetry.workspace = true
|
opentelemetry.workspace = true
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
kubernetes-discovery = [ "kube", "k8s-openapi", "schemars" ]
|
kubernetes-discovery = ["kube", "k8s-openapi", "schemars"]
|
||||||
consul-discovery = [ "reqwest", "thiserror" ]
|
consul-discovery = ["reqwest", "thiserror"]
|
||||||
system-libs = [ "sodiumoxide/use-pkg-config" ]
|
system-libs = ["sodiumoxide/use-pkg-config"]
|
||||||
|
|||||||
@@ -0,0 +1,7 @@
|
|||||||
|
include = ["**/Cargo.toml", "taplo.toml"]
|
||||||
|
|
||||||
|
[formatting]
|
||||||
|
indent_string = " "
|
||||||
|
compact_inline_tables = false
|
||||||
|
compact_arrays = true
|
||||||
|
inline_table_expand = false
|
||||||
Reference in New Issue
Block a user