Cargo Features
[dependencies]
rustpython-vm = { version = "0.4.0", default-features = false, features = ["importlib", "encodings", "vm-tracing-logging", "flame-it", "freeze-stdlib", "jit", "threading", "compiler", "ast", "codegen", "parser", "serde"] }
- default = compiler
-
The
compiler
feature is set by default wheneverrustpython-vm
is added without
somewhere in the dependency tree.default-features = false - importlib encodings?
- encodings freeze-stdlib? = importlib
- vm-tracing-logging
- flame-it = flame, flamer
-
Affects
setting::Settings.profile_output
,setting::Settings.profile_format
… - freeze-stdlib = encodings
- jit = rustpython-jit
-
Affects
exceptions::ExceptionZoo.jit_error
… - threading
-
Enables threading of rustpython-common
Affects
stdlib::thread
,thread::ThreadedVirtualMachine
… - compiler default = codegen, parser, rustpython-compiler
- ast codegen? parser? = rustpython-ast
- codegen compiler = ast, rustpython-codegen
- parser compiler = ast, rustpython-parser
- serde
-
Enables serde
Affects
exceptions::SerializeException
,exceptions::SerializeExceptionOwned
,rustpython-vm::py_serde
…
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.
- rustpython-compiler compiler
-
Affects
import::import_file
,import::import_source
,rustpython-vm::eval
… - rustpython-codegen codegen?
- rustpython-jit jit?
- rustpython-ast ast?
- rustpython-parser parser?
- flame flame-it?
- flamer flame-it?
-
Enables flamer ^0.4