Cargo Features
[dependencies]
fidget = { version = "0.3.4", default-features = false, features = ["jit", "rhai", "eval-tests"] }
- default = jit, rhai
-
These default features are set whenever
fidget
is added without
somewhere in the dependency tree.default-features = false - jit default
-
Enables fast evaluation via a JIT compiler. This is exposed in the
fidget::jit
module, and is supported on macOS, Linux, and Windows (i.e. all supported platforms except WebAssembly). There's no way to disable the feature on specific platforms (Cargo issue); users will have to disable it manually viadefault-features = false
.Enables dynasmrt ^2.0 and libc
dynasmrt:
JIT
- rhai default
-
Enable Rhai bindings, in the
fidget::rhai
moduleEnables rhai
- eval-tests
-
Enable
eval-tests
if you're writing your own evaluators and want to unit-test them. When enabled, the crate exports a set of macros to test each evaluator type, e.g.float_slice_tests!(...)
.