Cargo Features

[dependencies]
jrsonnet-evaluator = { version = "0.5.0-pre95", default-features = false, features = ["explaining-traces", "anyhow-error", "async-import", "exp-preserve-order", "exp-destruct", "exp-object-iteration", "exp-bigint", "exp-null-coaelse", "nightly", "bincode"] }
default = explaining-traces

The explaining-traces feature is set by default whenever jrsonnet-evaluator is added without default-features = false somewhere in the dependency tree.

explaining-traces default = annotate-snippets

Rustc-like trace visualization

Affects trace::ExplainingFormat

anyhow-error = anyhow

Allows library authors to throw custom errors

async-import = async-trait

Adds ability to build import closure in async

Affects jrsonnet-evaluator::async_import

exp-preserve-order

Allows to preserve field order in objects

exp-destruct

Implements field destructuring

Enables exp-destruct of jrsonnet-parser

exp-object-iteration

Iteration over objects yields [key, value] elements

exp-bigint = num-bigint

Bigint type

Enables exp-bigint of jrsonnet-types

exp-null-coaelse

obj?.field, obj?.['field']

Enables exp-null-coaelse of jrsonnet-parser

nightly

Improves performance, and implements some useful things using nightly-only features

Enables nightly of hashbrown ^0.13.2

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

anyhow anyhow-error?
bincode implicit feature

Enables bincode

Serialized stdlib

annotate-snippets explaining-traces

Enables annotate-snippets ^0.9.1

Explaining traces

async-trait async-import?

Enables async-trait

Async imports

num-bigint exp-bigint?

Enables num-bigint

Bigint