difftreelog
build use now-stable async traits
in: master
5 files changed
Cargo.lockdiffbeforeafterboth111 "smallvec",111 "smallvec",112]112]113114[[package]]115name = "async-trait"116version = "0.1.74"117source = "registry+https://github.com/rust-lang/crates.io-index"118checksum = "a66537f1bb974b254c98ed142ff995236e81b9d0fe4db0575f46612cb15eb0f9"119dependencies = [120 "proc-macro2",121 "quote",122 "syn 2.0.38",123]124113125[[package]]114[[package]]126name = "autocfg"115name = "autocfg"598dependencies = [587dependencies = [599 "annotate-snippets",588 "annotate-snippets",600 "anyhow",589 "anyhow",601 "async-trait",602 "bincode",590 "bincode",603 "derivative",591 "derivative",604 "hashbrown 0.14.2",592 "hashbrown 0.14.2",Cargo.tomldiffbeforeafterboth35rustc-hash = "1.1"35rustc-hash = "1.1"36bincode = "1.3"36bincode = "1.3"37annotate-snippets = "0.9.1"37annotate-snippets = "0.9.1"38async-trait = "0.1.60"39num-bigint = "0.4.3"38num-bigint = "0.4.3"40derivative = "2.2.0"39derivative = "2.2.0"41strsim = "0.10.0"40strsim = "0.10.0"crates/jrsonnet-evaluator/Cargo.tomldiffbeforeafterboth14# Allows library authors to throw custom errors14# Allows library authors to throw custom errors15anyhow-error = ["anyhow"]15anyhow-error = ["anyhow"]16# Adds ability to build import closure in async16# Adds ability to build import closure in async17async-import = ["async-trait"]17async-import = []181819# Allows to preserve field order in objects19# Allows to preserve field order in objects20exp-preserve-order = []20exp-preserve-order = []54bincode = { workspace = true, optional = true }54bincode = { workspace = true, optional = true }55# Explaining traces55# Explaining traces56annotate-snippets = { workspace = true, features = ["color"], optional = true }56annotate-snippets = { workspace = true, features = ["color"], optional = true }57# Async imports58async-trait = { workspace = true, optional = true }59# Bigint57# Bigint60num-bigint = { workspace = true, features = ["serde"], optional = true }58num-bigint = { workspace = true, features = ["serde"], optional = true }61derivative.workspace = true59derivative.workspace = truecrates/jrsonnet-evaluator/src/async_import.rsdiffbeforeafterboth1use std::{cell::RefCell, path::Path};1use std::{cell::RefCell, path::Path};223use async_trait::async_trait;4use jrsonnet_gcmodule::Trace;3use jrsonnet_gcmodule::Trace;5use jrsonnet_interner::IStr;4use jrsonnet_interner::IStr;6use jrsonnet_parser::{5use jrsonnet_parser::{218 }217 }219}218}220219221#[async_trait(?Send)]220#[allow(async_fn_in_trait)] // we don't care about `Send` bound222pub trait AsyncImportResolver {221pub trait AsyncImportResolver {223 type Error;222 type Error;224 /// Resolves file path, e.g. `(/home/user/manifests, b.libjsonnet)` can correspond223 /// Resolves file path, e.g. `(/home/user/manifests, b.libjsonnet)` can correspondrust-toolchain.tomldiffbeforeafterbothno changes