https://pantsbuild.org/ logo
#development
Title
# development
w

wide-midnight-78598

11/25/2022, 4:17 PM
Is the pants CLI (arg parsing, option handling, etc) done in Rust or Python or both?
e

enough-analyst-54434

11/25/2022, 4:21 PM
Both. Rust only implements a subset though and that was not touch since maybe May of 2021 IIRC.
There is a little used rust pantsd client that needs to handle parsing bootstrap options - that's the driver on the Rust side.
w

wide-midnight-78598

11/25/2022, 4:24 PM
👍 Great thanks - that's kinda what I thought, but wasn't sure about my understanding
h

happy-kitchen-89482

11/25/2022, 4:27 PM
The eventual plan is for it all to be in Rust...
w

wide-midnight-78598

11/25/2022, 4:28 PM
The eventual plan is for it all to be in Rust
Ah, okay, in that direction. And all extensibility via GoalRules and such?
e

enough-analyst-54434

11/25/2022, 4:32 PM
I think all that would be transparent. The Python APIs for registering options would just happen to be functions exported from the Rust code.