fileset, revset: hide generated types, document parser types and functions - #10065
fileset, revset: hide generated types, document parser types and functions#10065yuja wants to merge 3 commits into
Conversation
|
I wasn't sure if we were going to move these to core. These modules should not be useful on a typical server, so they seem to me like they could be a in higher-level crate. But, as I've said many times, I'm still very confused about what the core crate is. |
They should move to core because we cannot move the actual relevant stuff which are the traits over. I also have commits doing this.
I think I've tried to make it clear that this isn't about the server use-case (#6284 (comment)). Its about enabling non-server, non-CLI use-cases which just want the traits like Mahou or another creative application of them.
It also doesn't seem that any further explanation from my side is going to help with this. 🙁 |
|
I think the first 2 commits are uncontroversial, in case you want to start by landing just those. |
martinvonz
left a comment
There was a problem hiding this comment.
Marking as "request changes" since I'm not sure about the split we want.
I agree about
I understand that the server use case is not your priority, but it's the one I'm most familiar with, and I know at least a few companies are interested in that use case. So perhaps a possibility is to have a |
I kind of agree.
FWIW, depending on your definition of "core", it might be better to move |
I had Claude implement try this out. Here's what it looks like: bc7b049. Claude pointed out that we still have dependencies on
Yes, good point. I think we should do that now that you mention it. But let's wait a little and see if we get any other opinions on where the line should be drawn. |
Yeah, I rejected the idea for this reason. It seems better, at least, to have minimal formatting (and paired parsing) functions in the core:
It would be flaky if we had to be careful not to use the default |
These functions operate at the syntactic level.
This matters when the parser modules become public.
020a06c to
adeeb14
Compare
|
Removed patches to move parsers into core. Added a few more doc comments. |
Checklist
If applicable:
CHANGELOG.mdREADME.md,docs/,demos/)cli/src/config-schema.json)how it works, how it's organized), including any code drafted by an LLM.
an eye towards deleting anything that is irrelevant, clarifying anything
that is confusing, and adding details that are relevant. This includes,
for example, commit descriptions, PR descriptions, and code comments.