chore(snix): format TOML files

Change-Id: I4c5bf0a378c69a2a22097000583b1abcee089190
Reviewed-on: https://cl.snix.dev/c/snix/+/30602
Tested-by: besadii
Autosubmit: Florian Klink <flokli@flokli.de>
Reviewed-by: Yureka <snix@yuka.dev>
This commit is contained in:
Florian Klink 2025-07-13 13:43:57 +03:00 committed by clbot
parent fa2ea97ef3
commit 90eabc9ae0
26 changed files with 413 additions and 334 deletions

View file

@ -16,8 +16,12 @@ bytes = "1.6.1"
futures = "0.3.29" futures = "0.3.29"
tokio = { version = "1.37.0", features = ["full"] } tokio = { version = "1.37.0", features = ["full"] }
rusoto_core = { version = "0.48.0", default-features = false, features = ["hyper-rustls"] } rusoto_core = { version = "0.48.0", default-features = false, features = [
rusoto_s3 = { version = "0.48.0", default-features = false, features = ["rustls"] } "hyper-rustls",
] }
rusoto_s3 = { version = "0.48.0", default-features = false, features = [
"rustls",
] }
nix-compat = { version = "0.1.0", path = "../../snix/nix-compat" } nix-compat = { version = "0.1.0", path = "../../snix/nix-compat" }
sled = "0.34.7" sled = "0.34.7"
@ -31,7 +35,12 @@ bzip2 = "0.4.4"
xz2 = "0.1.7" xz2 = "0.1.7"
zstd = "0.13.0" zstd = "0.13.0"
prost = "0.12.2" prost = "0.12.2"
polars = { version = "0.35.4", default-features = false, features = ["parquet", "lazy", "sql", "dtype-struct"] } polars = { version = "0.35.4", default-features = false, features = [
"parquet",
"lazy",
"sql",
"dtype-struct",
] }
indicatif = "0.17.7" indicatif = "0.17.7"
clap = { version = "4.4.18", features = ["derive"] } clap = { version = "4.4.18", features = ["derive"] }

View file

@ -21,8 +21,4 @@ hashbrown = { version = "0.14.5", features = ["raw"] }
[dependencies.polars] [dependencies.polars]
version = "0.36.2" version = "0.36.2"
default-features = false default-features = false
features = [ features = ["parquet", "polars-io", "dtype-categorical"]
"parquet",
"polars-io",
"dtype-categorical"
]

View file

@ -8,7 +8,9 @@ edition = "2024"
members = ["."] members = ["."]
[dependencies] [dependencies]
aws_lambda_events = { version = "0.11.1", default-features = false, features = ["lambda_function_urls"] } aws_lambda_events = { version = "0.11.1", default-features = false, features = [
"lambda_function_urls",
] }
bytes = "1.5.0" bytes = "1.5.0"
data-encoding = "2.6.0" data-encoding = "2.6.0"
futures = { version = "0.3.30", default-features = false, features = ["std"] } futures = { version = "0.3.30", default-features = false, features = ["std"] }
@ -16,8 +18,12 @@ httparse = "1.8.0"
hyper = { version = "0.14.27", default-features = false } hyper = { version = "0.14.27", default-features = false }
lambda_runtime = "0.8.2" lambda_runtime = "0.8.2"
magic-buffer = "0.1.1" magic-buffer = "0.1.1"
rusoto_core = { version = "0.48.0", features = ["rustls"], default-features = false } rusoto_core = { version = "0.48.0", features = [
rusoto_s3 = { version = "0.48.0", features = ["rustls"], default-features = false } "rustls",
], default-features = false }
rusoto_s3 = { version = "0.48.0", features = [
"rustls",
], default-features = false }
serde_json = "1.0.108" serde_json = "1.0.108"
serde = { version = "1.0.190", features = ["derive"] } serde = { version = "1.0.190", features = ["derive"] }
tokio = { version = "1.33.0", features = ["full"] } tokio = { version = "1.33.0", features = ["full"] }

View file

@ -112,7 +112,8 @@ reqwest = { version = "0.12.7", default-features = false }
reqwest-middleware = { version = "0.4.1", default-features = false } reqwest-middleware = { version = "0.4.1", default-features = false }
reqwest-tracing = { version = "0.5.6", default-features = false } reqwest-tracing = { version = "0.5.6", default-features = false }
rnix = "0.11.0" rnix = "0.11.0"
rowan = "0.15" # keep in sync with rnix # keep in sync with rnix
rowan = "0.15"
rstest = "0.19.0" rstest = "0.19.0"
rstest_reuse = "0.6.0" rstest_reuse = "0.6.0"
rustc-hash = "2.0.0" rustc-hash = "2.0.0"

View file

@ -13,7 +13,12 @@ mime_guess = "2.0.5"
mime = "0.3.17" mime = "0.3.17"
path-clean.workspace = true path-clean.workspace = true
tokio = { workspace = true, features = ["tracing"] } tokio = { workspace = true, features = ["tracing"] }
tokio-listener = { workspace = true, features = ["axum07", "clap", "multi-listener", "sd_listen"] } tokio-listener = { workspace = true, features = [
"axum07",
"clap",
"multi-listener",
"sd_listen",
] }
tracing.workspace = true tracing.workspace = true
tracing-subscriber.workspace = true tracing-subscriber.workspace = true
tokio-util.workspace = true tokio-util.workspace = true

View file

@ -23,7 +23,14 @@ thiserror.workspace = true
tokio-stream = { workspace = true, features = ["fs", "net"] } tokio-stream = { workspace = true, features = ["fs", "net"] }
tokio-util = { workspace = true, features = ["io", "io-util", "codec"] } tokio-util = { workspace = true, features = ["io", "io-util", "codec"] }
tokio-tar.workspace = true tokio-tar.workspace = true
tokio = { workspace = true, features = ["fs", "macros", "net", "rt", "rt-multi-thread", "signal"] } tokio = { workspace = true, features = [
"fs",
"macros",
"net",
"rt",
"rt-multi-thread",
"signal",
] }
toml = { version = "0.8.19", optional = true } toml = { version = "0.8.19", optional = true }
tonic.workspace = true tonic.workspace = true
tower.workspace = true tower.workspace = true

View file

@ -4,5 +4,5 @@ ignore-interior-mutability = [
# make sure to specify the originating type name, not re-exports! # make sure to specify the originating type name, not re-exports!
"bytes::Bytes", "bytes::Bytes",
"snix_castore::digests::B3Digest", "snix_castore::digests::B3Digest",
"snix_castore::path::component::PathComponent" "snix_castore::path::component::PathComponent",
] ]

View file

@ -18,7 +18,11 @@ itertools.workspace = true
lexical-core = { workspace = true, features = ["format", "parse-floats"] } lexical-core = { workspace = true, features = ["format", "parse-floats"] }
os_str_bytes = { workspace = true, features = ["conversions"] } os_str_bytes = { workspace = true, features = ["conversions"] }
path-clean.workspace = true path-clean.workspace = true
proptest = { workspace = true, features = ["std", "alloc", "tempfile"], optional = true } proptest = { workspace = true, features = [
"std",
"alloc",
"tempfile",
], optional = true }
regex.workspace = true regex.workspace = true
rnix.workspace = true rnix.workspace = true
rowan.workspace = true # pinned by rnix rowan.workspace = true # pinned by rnix

View file

@ -5,7 +5,14 @@ authors = [ "Griffin Smith <root@gws.fyi>" ]
edition = "2021" edition = "2021"
[dependencies] [dependencies]
syn = { version = "1.0.109", features = ["full", "parsing", "printing", "visit", "visit-mut", "extra-traits"] } syn = { version = "1.0.109", features = [
"full",
"parsing",
"printing",
"visit",
"visit-mut",
"extra-traits",
] }
quote.workspace = true quote.workspace = true
proc-macro2.workspace = true proc-macro2.workspace = true

View file

@ -19,10 +19,17 @@ nix-compat = { path = "../nix-compat", features = ["async"] }
opentelemetry.workspace = true opentelemetry.workspace = true
thiserror.workspace = true thiserror.workspace = true
tokio.workspace = true tokio.workspace = true
tokio-listener = { workspace = true, features = ["axum07", "clap", "multi-listener", "sd_listen"] } tokio-listener = { workspace = true, features = [
"axum07",
"clap",
"multi-listener",
"sd_listen",
] }
tokio-util = { workspace = true, features = ["io", "io-util", "compat"] } tokio-util = { workspace = true, features = ["io", "io-util", "compat"] }
tonic = { workspace = true, features = ["tls", "tls-roots"] } tonic = { workspace = true, features = ["tls", "tls-roots"] }
tower-otel-http-metrics = { workspace = true, features = ["axum"], optional = true } tower-otel-http-metrics = { workspace = true, features = [
"axum",
], optional = true }
snix-castore = { path = "../castore" } snix-castore = { path = "../castore" }
snix-store = { path = "../store" } snix-store = { path = "../store" }
snix-tracing = { path = "../tracing", features = ["tonic", "axum"] } snix-tracing = { path = "../tracing", features = ["tonic", "axum"] }

View file

@ -12,7 +12,14 @@ nix-compat = { path = "../nix-compat" }
snix-castore = { path = "../castore" } snix-castore = { path = "../castore" }
snix-store = { path = "../store" } snix-store = { path = "../store" }
snix-tracing = { path = "../tracing" } snix-tracing = { path = "../tracing" }
tokio = { workspace = true, features = ["fs", "macros", "net", "rt", "rt-multi-thread", "signal"] } tokio = { workspace = true, features = [
"fs",
"macros",
"net",
"rt",
"rt-multi-thread",
"signal",
] }
tokio-listener.workspace = true tokio-listener.workspace = true
tracing.workspace = true tracing.workspace = true

View file

@ -5,7 +5,13 @@ edition = "2024"
[dependencies] [dependencies]
anyhow.workspace = true anyhow.workspace = true
async-compression = { workspace = true, features = ["tokio", "bzip2", "gzip", "xz", "zstd"] } async-compression = { workspace = true, features = [
"tokio",
"bzip2",
"gzip",
"xz",
"zstd",
] }
async-stream.workspace = true async-stream.workspace = true
blake3 = { workspace = true, features = ["rayon", "std"] } blake3 = { workspace = true, features = ["rayon", "std"] }
bstr.workspace = true bstr.workspace = true
@ -27,8 +33,20 @@ sha1.workspace = true
sha2.workspace = true sha2.workspace = true
md-5.workspace = true md-5.workspace = true
thiserror.workspace = true thiserror.workspace = true
tokio = { workspace = true, features = ["fs", "macros", "net", "rt", "rt-multi-thread", "signal"] } tokio = { workspace = true, features = [
tokio-listener = { workspace = true, features = ["clap", "multi-listener", "sd_listen", "tonic012"] } "fs",
"macros",
"net",
"rt",
"rt-multi-thread",
"signal",
] }
tokio-listener = { workspace = true, features = [
"clap",
"multi-listener",
"sd_listen",
"tonic012",
] }
tokio-stream = { workspace = true, features = ["fs"] } tokio-stream = { workspace = true, features = ["fs"] }
tokio-util = { workspace = true, features = ["io", "io-util", "compat"] } tokio-util = { workspace = true, features = ["io", "io-util", "compat"] }
tonic = { workspace = true, features = ["tls", "tls-roots"] } tonic = { workspace = true, features = ["tls", "tls-roots"] }
@ -67,10 +85,7 @@ hex-literal.workspace = true
[features] [features]
default = ["cloud", "fuse", "otlp", "tonic-reflection"] default = ["cloud", "fuse", "otlp", "tonic-reflection"]
cloud = [ cloud = ["dep:bigtable_rs", "snix-castore/cloud"]
"dep:bigtable_rs",
"snix-castore/cloud"
]
fuse = ["snix-castore/fuse"] fuse = ["snix-castore/fuse"]
otlp = ["snix-tracing/otlp"] otlp = ["snix-tracing/otlp"]
tonic-reflection = ["dep:tonic-reflection", "snix-castore/tonic-reflection"] tonic-reflection = ["dep:tonic-reflection", "snix-castore/tonic-reflection"]

View file

@ -4,7 +4,10 @@ version = "0.1.0"
edition = "2024" edition = "2024"
[dependencies] [dependencies]
tracing = { workspace = true, features = ["max_level_trace", "release_max_level_debug"] } tracing = { workspace = true, features = [
"max_level_trace",
"release_max_level_debug",
] }
tracing-subscriber = { workspace = true, features = ["env-filter"] } tracing-subscriber = { workspace = true, features = ["env-filter"] }
indicatif.workspace = true indicatif.workspace = true
tracing-indicatif.workspace = true tracing-indicatif.workspace = true
@ -13,9 +16,15 @@ thiserror.workspace = true
tracing-opentelemetry = { workspace = true, optional = true } tracing-opentelemetry = { workspace = true, optional = true }
opentelemetry = { workspace = true, optional = true } opentelemetry = { workspace = true, optional = true }
opentelemetry-otlp = { workspace = true, features = ["grpc-tonic"], optional = true } opentelemetry-otlp = { workspace = true, features = [
opentelemetry_sdk = { workspace = true, features = ["rt-tokio"], optional = true } "grpc-tonic",
tracing-tracy = { workspace = true, features = ["flush-on-exit"], optional = true } ], optional = true }
opentelemetry_sdk = { workspace = true, features = [
"rt-tokio",
], optional = true }
tracing-tracy = { workspace = true, features = [
"flush-on-exit",
], optional = true }
opentelemetry-http = { workspace = true, optional = true } opentelemetry-http = { workspace = true, optional = true }
opentelemetry-semantic-conventions = { workspace = true, optional = true } opentelemetry-semantic-conventions = { workspace = true, optional = true }
@ -37,19 +46,7 @@ otlp = [
"dep:opentelemetry-semantic-conventions", "dep:opentelemetry-semantic-conventions",
"reqwest-tracing?/opentelemetry_0_28", "reqwest-tracing?/opentelemetry_0_28",
] ]
tracy = [ tracy = ["dep:tracing-tracy"]
"dep:tracing-tracy" tonic = ["dep:tonic", "dep:http"]
] reqwest = ["dep:reqwest-tracing"]
tonic = [ axum = ["dep:axum"]
"dep:tonic",
"dep:http",
]
reqwest = [
"dep:reqwest-tracing",
]
axum = [
"dep:axum",
]
[lints]
workspace = true

View file

@ -20,6 +20,11 @@ let
command = "${pkgs.rustfmt}/bin/rustfmt" command = "${pkgs.rustfmt}/bin/rustfmt"
includes = [ "*.rs" ] includes = [ "*.rs" ]
[formatter.toml]
command = "${pkgs.taplo}/bin/taplo"
options = [ "format" ]
includes = [ "*.toml" ]
[formatter.editorconfig] [formatter.editorconfig]
command = "${pkgs.editorconfig-checker}/bin/editorconfig-checker" command = "${pkgs.editorconfig-checker}/bin/editorconfig-checker"
includes = [ includes = [

View file

@ -26,9 +26,12 @@ mainSections = ["docs"]
# FlexSearch # FlexSearch
flexSearch = true # true (default) or false flexSearch = true # true (default) or false
searchExclKinds = [] # list of page kinds to exclude from search indexing (e.g. ["home", "taxonomy", "term"] ) searchExclKinds = [
searchExclTypes = [] # list of content types to exclude from search indexing (e.g. ["blog", "docs", "legal", "contributors", "categories"]) ] # list of page kinds to exclude from search indexing (e.g. ["home", "taxonomy", "term"] )
showSearch = [] # [] (all pages, default) or homepage (optionally) and list of sections (e.g. ["homepage", "blog", "guides"]) searchExclTypes = [
] # list of content types to exclude from search indexing (e.g. ["blog", "docs", "legal", "contributors", "categories"])
showSearch = [
] # [] (all pages, default) or homepage (optionally) and list of sections (e.g. ["homepage", "blog", "guides"])
indexSummary = false # true or false (default); whether to index only the `.Summary` instead of the full `.Content`; limits the respective JSON field size and thus increases loading time indexSummary = false # true or false (default); whether to index only the `.Summary` instead of the full `.Content`; limits the respective JSON field size and thus increases loading time
## Search results ## Search results
@ -44,7 +47,9 @@ mainSections = ["docs"]
bootstrapJavascript = false # false (default) or true bootstrapJavascript = false # false (default) or true
# Nav # Nav
sectionNav = ["docs"] # ["docs"] (default) or list of sections (e.g. ["docs", "guides"]) sectionNav = [
"docs",
] # ["docs"] (default) or list of sections (e.g. ["docs", "guides"])
toTopButton = false # false (default) or true toTopButton = false # false (default) or true
breadcrumbTrail = false # false (default) or true breadcrumbTrail = false # false (default) or true
headlineHash = true # true (default) or false headlineHash = true # true (default) or false
@ -106,7 +111,14 @@ mainSections = ["docs"]
decoding = "async" # sync, async, or auto (default) decoding = "async" # sync, async, or auto (default)
fetchpriority = "auto" # high, low, or auto (default) fetchpriority = "auto" # high, low, or auto (default)
loading = "lazy" # eager or lazy (default) loading = "lazy" # eager or lazy (default)
widths = [480, 576, 768, 1025, 1200, 1440] # [640, 768, 1024, 1366, 1600, 1920] for example widths = [
480,
576,
768,
1025,
1200,
1440,
] # [640, 768, 1024, 1366, 1600, 1920] for example
sizes = "auto" # 100vw (default), 75vw, or auto for example sizes = "auto" # 100vw (default), 75vw, or auto for example
process = "" # "fill 1600x900" or "fill 2100x900" for example process = "" # "fill 1600x900" or "fill 2100x900" for example
lqip = "16x webp q20" # "16x webp q20" or "21x webp q20" for example lqip = "16x webp q20" # "16x webp q20" or "21x webp q20" for example
@ -130,7 +142,8 @@ mainSections = ["docs"]
type = "Organization" # Organization (default) or Person type = "Organization" # Organization (default) or Person
logo = "favicon-512x512.png" # Logo of Organization — favicon-512x512.png (default) logo = "favicon-512x512.png" # Logo of Organization — favicon-512x512.png (default)
name = "Thulite" # Name of Organization or Person name = "Thulite" # Name of Organization or Person
sameAs = [] # E.g. ["https://github.com/thuliteio/thulite", "https://fosstodon.org/@thulite"] sameAs = [
] # E.g. ["https://github.com/thuliteio/thulite", "https://fosstodon.org/@thulite"]
images = ["cover.png"] # ["cover.png"] (default) images = ["cover.png"] # ["cover.png"] (default)
article = [] # Article sections article = [] # Article sections
newsArticle = [] # NewsArticle sections newsArticle = [] # NewsArticle sections