Cargo Features

lib-ruby-parser has no features set by default.

[dependencies]
lib-ruby-parser = { version = "4.0.6+ruby-3.1.2", features = ["development", "codegen-y", "codegen-rust", "debug-all", "debug-buffer", "debug-lexer", "debug-parser", "bin-parse", "onig", "jemallocator"] }
development = codegen-rust, codegen-y
codegen-y development? = rust-bison-skeleton

Codegen parse.y

codegen-rust development?

Codegen Rust files

debug-all = debug-buffer, debug-lexer, debug-parser

Enables debug output in all structs

debug-buffer debug-all?

Enables debug output from the Buffer

debug-lexer debug-all?

Enables debug output from the Lexer

debug-parser debug-all?

Enables debug output from the Parser

bin-parse = glob, lexopt, pprof

Everything required for cargo run --bin parse

Required by the parse binary

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.

onig implicit feature
lexopt bin-parse?

Enables lexopt

Used for src/bin/*.rs executables

glob bin-parse?
rust-bison-skeleton build codegen-y?
jemallocator not win implicit feature

Enables jemallocator

jemallocator:

A Rust allocator backed by jemalloc

pprof not win bin-parse?

Enables pprof ^0.12