about summary refs log tree commit diff
path: root/Cargo.lock
diff options
context:
space:
mode:
authorPjotr Prins <pjotr.public01@thebird.nl>2026-11-15 01:22:23 +0000
committerPjotr Prins <pjotr.public01@thebird.nl>2026-11-15 01:22:23 +0000
commit4dbb553d5e4e48a785bbb5f4b97a84836eef296a (patch)
treed8a74d4a32d88e71c98b6460618d1e6a63017fc0 /Cargo.lock
parent2900aa07dfbb857382088ab4148f29dfd04f0123 (diff)
downloadgenenetwork4-4dbb553d5e4e48a785bbb5f4b97a84836eef296a.tar.gz
correlation: vendor the engine's git dependency
Cargo.toml pins gn-rust-correlation 12c2a37 from the genenetwork forge
(refs/heads/main there; GitHub still sits at 473ad82).  The lock grows by
exactly the four packages this brings in -- correlation_rust, GSL,
GSL-sys, assert_approx_eq -- and nothing else moves.

Following the xapian-rs precedent for a git dependency, since guix's
cargo build is offline and the registry replacement only knows crates.io:

- rust-package.scm gains the git origin as a bare `origin' (not a
  crate-source: unpack-rust-crates copies a *directory* input into
  guix-vendor/, so a checkout is exactly what it wants), plus crate
  sources for the three new registry crates;
- guix.scm lists them and adds a second source-replacement stanza beside
  xapian's, keyed `git+<url>?rev=<rev>` because cargo resolves a git source
  by the exact id in Cargo.lock;
- both git checkouts get the empty `.cargo-checksum.json` stub;
- gsl is a native input: the p-values come from GSL's t-distribution
  through rgsl, found with pkg-config at build time.

One fix in the vendoring phase itself: the gawk that back-fills package
checksums named vendor directories from the lock entry verbatim, which is
right for lowercase crates with no underscores and wrong for `GSL` and
`GSL-sys` (crate-source lowercases, via crate-name->package-name).  It
lowercases now, so the two agree.

Cargo cannot fetch this repo at all -- its HEAD is dangling, so cargo's
"fetch HEAD and every head" fails where guix's fetch-by-sha does not.
Generating the lock therefore needed CARGO_NET_OFFLINE with the crate
pre-cloned into ~/.cargo/git/db; nothing about that affects the build,
which vendors the checkout.
Diffstat (limited to 'Cargo.lock')
-rw-r--r--Cargo.lock38
1 files changed, 38 insertions, 0 deletions
diff --git a/Cargo.lock b/Cargo.lock
index e5ccd59..f895a6c 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -3,6 +3,26 @@
 version = 4
 
 [[package]]
+name = "GSL"
+version = "6.0.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c9becaf6d7d1ba36a457288e661fa6a0472e8328629276f45369eafcd48ef1ce"
+dependencies = [
+ "GSL-sys",
+ "paste",
+]
+
+[[package]]
+name = "GSL-sys"
+version = "3.0.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4577670dcc0720995dc39f04c438595eaae8ccc27f4aafd3e572dd408d01bd9d"
+dependencies = [
+ "libc",
+ "pkg-config",
+]
+
+[[package]]
 name = "addr2line"
 version = "0.25.1"
 source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -235,6 +255,12 @@ dependencies = [
 ]
 
 [[package]]
+name = "assert_approx_eq"
+version = "1.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3c07dab4369547dbe5114677b33fbbf724971019f3818172d59a97a61c774ffd"
+
+[[package]]
 name = "atoi"
 version = "2.0.0"
 source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -658,6 +684,17 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
 checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b"
 
 [[package]]
+name = "correlation_rust"
+version = "0.1.0"
+source = "git+https://git.genenetwork.org/correlation_rust?rev=12c2a37c3ef3a09f1ab0c5ea69b31b433b15f9f6#12c2a37c3ef3a09f1ab0c5ea69b31b433b15f9f6"
+dependencies = [
+ "GSL",
+ "assert_approx_eq",
+ "serde",
+ "serde_json",
+]
+
+[[package]]
 name = "cpufeatures"
 version = "0.2.17"
 source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -1036,6 +1073,7 @@ name = "genenetwork4"
 version = "0.1.0"
 dependencies = [
  "axum",
+ "correlation_rust",
  "duckdb",
  "gnauth-macros",
  "http-body-util",