Skip to content

Commit

Permalink
Re-export IStr in jrsonnet-evaluator crate
Browse files Browse the repository at this point in the history
  • Loading branch information
messense committed Jun 14, 2021
1 parent e1eaabb commit aa75bed
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 7 deletions.
1 change: 0 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion bindings/jsonnet/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ edition = "2018"
publish = false

[dependencies]
jrsonnet-interner = { path = "../../crates/jrsonnet-interner", version = "0.3.8" }
jrsonnet-evaluator = { path = "../../crates/jrsonnet-evaluator", version = "0.3.8" }
jrsonnet-parser = { path = "../../crates/jrsonnet-parser", version = "0.3.8" }

Expand Down
3 changes: 1 addition & 2 deletions bindings/jsonnet/src/import.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@
use jrsonnet_evaluator::{
error::{Error::*, Result},
throw, EvaluationState, ImportResolver,
throw, EvaluationState, IStr, ImportResolver,
};
use jrsonnet_interner::IStr;
use std::{
any::Any,
cell::RefCell,
Expand Down
3 changes: 1 addition & 2 deletions bindings/jsonnet/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ pub mod val_modify;
pub mod vars_tlas;

use import::NativeImportResolver;
use jrsonnet_evaluator::{EvaluationState, ManifestFormat, Val};
use jrsonnet_interner::IStr;
use jrsonnet_evaluator::{EvaluationState, IStr, ManifestFormat, Val};
use std::{
alloc::Layout,
ffi::{CStr, CString},
Expand Down
4 changes: 3 additions & 1 deletion crates/jrsonnet-evaluator/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ use error::{Error::*, LocError, Result, StackTraceElement};
pub use evaluate::*;
pub use function::parse_function_call;
pub use import::*;
use jrsonnet_interner::IStr;
use jrsonnet_parser::*;
use native::NativeCallback;
pub use obj::*;
Expand All @@ -42,6 +41,9 @@ use std::{
use trace::{offset_to_location, CodeLocation, CompactFormat, TraceFormat};
pub use val::*;

// Re-exports
pub use jrsonnet_interner::IStr;

type BindableFn = dyn Fn(Option<ObjValue>, Option<ObjValue>) -> Result<LazyVal>;
#[derive(Clone)]
pub enum LazyBinding {
Expand Down

0 comments on commit aa75bed

Please sign in to comment.