juniper/book
Audun Halland c54137f7b4
Rework look-ahead machinery as lazy-evaluated (#1212)
- make `LookAheadValue::List` to contain new iterable `LookAheadList` type
- make `LookAheadValue::Object` to contain new iterable `LookAheadObject` type
- remove `LookAheadMethods` trait and redundant `ConcreteLookAheadSelection` struct making all APIs accessible as inherent methods on `LookAheadSelection` and `LookAheadChildren` decoupled types
- move `LookAheadMethods::child_names()` to `LookAheadChildren::names()`
- move `LookAheadMethods::has_children()` to `LookAheadChildren::is_empty()`
- move `LookAheadMethods::select_child()` to `LookAheadChildren::select()`
- move `LookAheadSelection::for_explicit_type()` to `LookAheadSelection::children_for_explicit_type()`
- make `LookAheadSelection::arguments()` returning iterator over `LookAheadArgument`
- make `LookAheadSelection::children()` returning `LookAheadChildren`

Co-authored-by: Kai Ren <tyranron@gmail.com>
2024-01-16 19:17:07 +00:00
..
src Rework look-ahead machinery as lazy-evaluated (#1212) 2024-01-16 19:17:07 +00:00
.gitignore Rework CI and project toolchain (#1043) 2022-04-08 17:44:50 +03:00
book.toml Upgrade to 2021 Rust edition 2022-07-13 15:20:10 +02:00
README.md Fix mdBook tests on Windows (rust-lang/rust#99466) 2022-11-02 16:32:50 +01:00

Juniper Book

Book containing the juniper user guide.

Contributing

Requirements

The Book is built with mdBook.

You may install it with:

cargo install mdbook

Local test server

To launch a local test server that continually re-builds the Book and auto-reloads the page, run:

mdbook serve

# or from project root dir:
make book.serve

Building

You may build the Book to rendered HTML with this command:

mdbook build

# or from project root dir:
make book

The output will be in the _rendered/ directory.

Testing

To run the tests validating all code examples in the book, run (from project root dir):

cargo build
mdbook test -L target/debug/deps

# or via shortcut:
make test.book