You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There's code that unconditionally uses rayon even though it is an optional dependency.
This makes me unable to build cozo-lib-python, as it fails with this error message:
error[E0599]: no method named `par_iter` found for reference `&BTreeMap<MagicSymbol, CompiledRuleSet>` in the current scope
--> cozo-core/src/query/eval.rs:200:26
|
199 | let execs = prog
| _________________________________-
200 | | .par_iter()
| |_________________________-^^^^^^^^
|
The text was updated successfully, but these errors were encountered:
One possible solution would be to use the rayon feature of cozo-core in the cozo-lib-python crate:
[dependencies]
- cozo = { version = "0.7.6", path = "../cozo-core", default-features = false }+ cozo = { version = "0.7.6", path = "../cozo-core", features = ["rayon"] }
(maybe it affects other crates too, I haven't checked)
The code that uses rayon is already conditional, but it is testing for not(wasm32) instead of rayon itself.
So, another possible solution would be to change these to check for rayon directly:
- #[cfg(not(target_arch = "wasm32"))]+ #[cfg(rayon)]
use rayon::prelude::*;
There's code that unconditionally uses
rayon
even though it is an optional dependency.This makes me unable to build
cozo-lib-python
, as it fails with this error message:The text was updated successfully, but these errors were encountered: