Stream: t-compiler

Topic: Sharing the lexer between rustc and rust-analyzer

matklad (Apr 15 2019 at 08:59, on Zulip):

Hey, what do folks here think about extracting rustc lexer as an independent library with a nice-ish interface? There's little direct value in this (lexer is simple), but it seems like a low-hanging fruit and an easy first step of librarifiication.

I've posted a PR with a POC interface here: Would love to here feedback on it before making this more production ready.

oli (Apr 15 2019 at 10:39, on Zulip):

sgtm. we'll need to think about the publishing story though.

matklad (Apr 15 2019 at 11:15, on Zulip):

Given that this should be relatively stable after initial development, and that a single external user initially would be rls2.0, I'd be happy with me just manually publishing the crate. We can scale this up to automatic publishing if needed

nikomatsakis (Apr 22 2019 at 21:20, on Zulip):

I've not read the details but I'm :+1: on the idea!

nikomatsakis (Apr 22 2019 at 21:20, on Zulip):

Maybe this would make a good thing to discuss at a design meeting?

nikomatsakis (Apr 22 2019 at 21:20, on Zulip):

Let me start a list of possible design meeting topics

nikomatsakis (Apr 22 2019 at 21:23, on Zulip):

I created a HackMd document for now

Last update: May 24 2020 at 23:50UTC