about summary refs log tree commit diff
path: root/tvix/Cargo.nix
diff options
context:
space:
mode:
authorIlan Joselevich <personal@ilanjoselevich.com>2024-10-03T18·02+0200
committerclbot <clbot@tvl.fyi>2024-10-04T16·31+0000
commit7fedfe1cde1d1b021c50f3cbd4f620027c85a7ce (patch)
tree4ad0929a4ebd567f0790d053d0624f26164fa342 /tvix/Cargo.nix
parent0ef1b9bc6a9ad8659e30d2142675eb0824e3c3fe (diff)
feat(tvix/[ca]store): Add logging support to redb r/8756
We wanted to enable this earlier but the log level of many of the
messages in redb were too high, they've now been downgraded, so we can
enable logs from redb.

Context on the fix and release:
 - https://github.com/cberner/redb/pull/828
 - https://github.com/cberner/redb/releases/tag/v2.1.2

Change-Id: I8635e8a0bcb01a7d0b580387ac9134ccdd0205f3
Reviewed-on: https://cl.tvl.fyi/c/depot/+/12568
Autosubmit: Ilan Joselevich <personal@ilanjoselevich.com>
Tested-by: BuildkiteCI
Reviewed-by: flokli <flokli@flokli.de>
Diffstat (limited to 'tvix/Cargo.nix')
-rw-r--r--tvix/Cargo.nix8
1 files changed, 8 insertions, 0 deletions
diff --git a/tvix/Cargo.nix b/tvix/Cargo.nix
index 03ed46549145..3bce8c74afe5 100644
--- a/tvix/Cargo.nix
+++ b/tvix/Cargo.nix
@@ -10063,6 +10063,11 @@ rec {
             packageId = "libc";
             target = { target, features }: (target."unix" or false);
           }
+          {
+            name = "log";
+            packageId = "log";
+            optional = true;
+          }
         ];
         devDependencies = [
           {
@@ -10075,6 +10080,7 @@ rec {
           "logging" = [ "dep:log" ];
           "python" = [ "dep:pyo3" "dep:pyo3-build-config" ];
         };
+        resolvedDefaultFeatures = [ "logging" ];
       };
       "redox_syscall 0.3.5" = rec {
         crateName = "redox_syscall";
@@ -15219,6 +15225,7 @@ rec {
           {
             name = "redb";
             packageId = "redb";
+            features = [ "logging" ];
           }
           {
             name = "serde";
@@ -16010,6 +16017,7 @@ rec {
           {
             name = "redb";
             packageId = "redb";
+            features = [ "logging" ];
           }
           {
             name = "reqwest";