Cargo Features

[dependencies]
jrsonnet-stdlib = { version = "0.5.0-pre95", default-features = false, features = ["codegenerated-stdlib", "legacy-this-file", "exp-preserve-order", "exp-bigint", "exp-null-coaelse", "bincode"] }
default = codegenerated-stdlib

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

codegenerated-stdlib default

Speed-up initialization by generating code for parsed stdlib, instead of invoking parser for it

Enables structdump of jrsonnet-parser

legacy-this-file

Enables legacy std.thisFile support, at the cost of worse caching

exp-preserve-order

Add order preservation flag to some functions

Enables exp-preserve-order of jrsonnet-evaluator

exp-bigint = num-bigint

Bigint type

Enables exp-bigint of jrsonnet-evaluator

Affects strings::builtin_bigint

exp-null-coaelse

Enables exp-null-coaelse of jrsonnet-evaluator and jrsonnet-parser

jrsonnet-evaluator:

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

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.

bincode implicit feature

Enables bincode ^1.3

Used for stdlib AST serialization

num-bigint exp-bigint?