Juniper: Extract parser into its own crate

Created on 23 Feb 2017  路  7Comments  路  Source: graphql-rust/juniper

Hey there! I am interested in using the parser from this library in one of my own projects. Would it be possible to extract it into its own crate? Great work on this project, and hope to hear from you soon.

Ian

Most helpful comment

This would be a nice improvement - not just for the use case of using the parser or type system outside of this project - it would probably cut down on compilation time for the test suite when working on isolated parts.

I imagine looking at the setup used by e.g. gluon would be useful; we probably would want the entire source code to still live in this repository and all released in lockstep with each other.

I'll see what I can do. Hopefully something that can be done before the 1.0 release.

All 7 comments

This would be a nice improvement - not just for the use case of using the parser or type system outside of this project - it would probably cut down on compilation time for the test suite when working on isolated parts.

I imagine looking at the setup used by e.g. gluon would be useful; we probably would want the entire source code to still live in this repository and all released in lockstep with each other.

I'll see what I can do. Hopefully something that can be done before the 1.0 release.

Now that the repo is restructured, a good next step would be to extract the parser into it's own crate.

Just had a look at it. It seems the parser depends on the ast. So I guess that has to be moved into the parser.

See also graphql-parser which uses pest.

By the way, is there any reasons why you didn't use a parser library such as combine (the one which I recommend) ? Is there any complexities with the grammar?

Everybody watching this issue might be interested in #138

Tracked in #138

Was this page helpful?
0 / 5 - 0 ratings

Related issues

projektir picture projektir  路  4Comments

ysimonson picture ysimonson  路  5Comments

teymour-aldridge picture teymour-aldridge  路  5Comments

hrbigelow picture hrbigelow  路  5Comments

norcalli picture norcalli  路  6Comments