<#19832 Use Rust option parser as core of Python o...
# github-notifications
c
#19832 Use Rust option parser as core of Python option parsing Issue created by stuhood To remove redundancy between the Rust and Python code, we should use the Rust-side
options
crate to implement the backend of our Python option parsing. Currently the Rust implementation is only used by the native
pantsd
client (which consumes a small subset of the bootstrap options), and so it has a few limitations which prevent it from being used to parse all option registrations. Most notably, it does not support parsing Python's
dict
syntax (although it technically only needs to support Python
ast.literal_eval
, so it's a smaller problem than you might imagine). This branch passes about 50% of the
options.py
tests: main...stuhood:pants:stuhood/options-from-rust pantsbuild/pants