open-standards/eoc/eoc-rs/crates/eoc-route-learned/Cargo.toml
Transaction Science 3bf20ef5cb eoc-route-learned: unbreak the build — rand_distr 0.4 pulled rand 0.8
The crate declared rand 0.10 but rand_distr 0.4, which transitively
depends on rand 0.8. StdRng from 0.10 therefore did not satisfy
rand_distr's Rng bound and the lib failed to compile — five E0277s
across classifier.rs, matrix_factorization.rs and bandit.rs.

Nothing in the tree depends on eoc-route-learned, so the rot went
unnoticed: the router trainer has not compiled in some time.

Bump rand_distr to 0.6, which tracks rand 0.10. Normal and Beta are
the only distributions used and both carry over unchanged. Tests pass.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
2026-07-20 12:46:50 -04:00

29 lines
1 KiB
TOML

[package]
name = "eoc-route-learned"
version.workspace = true
edition.workspace = true
rust-version.workspace = true
license.workspace = true
repository.workspace = true
authors.workspace = true
description = "EOC learned router — matrix-factorisation, classifier and bandit primitives that predict the best cascade stage from a query embedding."
[dependencies]
eoc-core.workspace = true
eoc-cascade.workspace = true
eoc-cache.workspace = true
serde.workspace = true
serde_json = "1"
async-trait.workspace = true
thiserror.workspace = true
rand = { version = "0.10", default-features = false, features = ["std", "std_rng"] }
rand_distr = { version = "0.6", default-features = false }
nalgebra = { version = "0.33", default-features = false, features = ["std", "serde-serialize"] }
tracing = "0.1"
[dev-dependencies]
tokio = { version = "1", default-features = false, features = ["macros", "rt-multi-thread", "test-util"] }
eoc-cache.workspace = true
eoc-kv.workspace = true
eoc-graph.workspace = true
eoc-neural.workspace = true