Skip to content

Commit d485fa7

Browse files
authored
Merge pull request #111 from silicon-heaven/dependabot/cargo/jaq-all-v3.0.0
build(deps): bump jaq-all from v3.0.0-beta to v3.0.0
2 parents 7d146c6 + da5c8f2 commit d485fa7

3 files changed

Lines changed: 10 additions & 10 deletions

File tree

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ name = "shvproto"
55
description = "Rust implementation of the SHV protocol"
66
license = "MIT"
77
repository = "https://github.com/silicon-heaven/libshvproto-rs"
8-
version = "6.1.6"
8+
version = "6.1.7"
99
edition = "2024"
1010

1111
[dependencies]
@@ -16,7 +16,7 @@ hex = "0.4"
1616
clap = { version = "4.5", features = ["derive"] }
1717
simple_logger = { version = "5.0", features = ["stderr"], optional = true }
1818
serde = { version = "1.0.219", features = ["derive"], optional = true }
19-
jaq-all = { git = "https://github.com/01mf02/jaq", tag = "v3.0.0-beta", version = "0.1.0-beta", optional = true }
19+
jaq-all = { git = "https://github.com/01mf02/jaq", tag = "v3.0.0", version = "0.1.0-beta", optional = true }
2020
# FIXME: remove this after jaq support is complete
2121
fn_name = "0.1.0"
2222

src/bin/cp2cp.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ fn main() {
200200

201201
#[cfg(feature = "cq")]
202202
let output_values = if let Some(filter) = opts.cq_filter {
203-
let filter = match jaq_all::compile_with(&filter, jaq_std::defs(), jaq_std::funs(), &[]) {
203+
let filter = match jaq_all::compile_with(&filter, jaq_all::jaq_core::defs().chain(jaq_std::defs()), jaq_all::jaq_core::funs().chain(jaq_std::funs()), &[]) {
204204
Ok(filter) => filter,
205205
Err(error) => {
206206
eprintln!("Failed to parse cq filter: {error:?}");

src/jaq.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use jaq_all::jaq_core::{Error, ops};
55
use crate::{RpcValue, Value};
66

77
pub type ValR = jaq_all::jaq_core::ValR<RpcValue>;
8-
pub type ValX = jaq_all::jaq_core::ValX<RpcValue>;
8+
pub type ValX<'a> = jaq_all::jaq_core::ValX<'a, RpcValue>;
99
impl Neg for RpcValue {
1010
type Output = ValR;
1111
fn neg(self) -> Self::Output {
@@ -245,29 +245,29 @@ impl jaq_all::jaq_core::ValT for RpcValue {
245245
todo!("{}", fn_name::uninstantiated!());
246246
}
247247

248-
fn map_values<I: Iterator<Item = ValX>>(
248+
fn map_values<'a, I: Iterator<Item = ValX<'a>>>(
249249
self,
250250
_opt: jaq_all::jaq_core::path::Opt,
251251
_f: impl Fn(Self) -> I,
252-
) -> ValX {
252+
) -> ValX<'a> {
253253
todo!("{}", fn_name::uninstantiated!());
254254
}
255255

256-
fn map_index<I: Iterator<Item = ValX>>(
256+
fn map_index<'a, I: Iterator<Item = ValX<'a>>>(
257257
self,
258258
_index: &Self,
259259
_opt: jaq_all::jaq_core::path::Opt,
260260
_f: impl Fn(Self) -> I,
261-
) -> ValX {
261+
) -> ValX<'a> {
262262
todo!("{}", fn_name::uninstantiated!());
263263
}
264264

265-
fn map_range<I: Iterator<Item = ValX>>(
265+
fn map_range<'a, I: Iterator<Item = ValX<'a>>>(
266266
self,
267267
_range: jaq_all::jaq_core::val::Range<&Self>,
268268
_opt: jaq_all::jaq_core::path::Opt,
269269
_f: impl Fn(Self) -> I,
270-
) -> ValX {
270+
) -> ValX<'a> {
271271
todo!("{}", fn_name::uninstantiated!());
272272
}
273273

0 commit comments

Comments
 (0)