Skip to content

Commit

Permalink
Remove iron integration (#1210)
Browse files Browse the repository at this point in the history
  • Loading branch information
tyranron authored Nov 10, 2023
1 parent e75cf26 commit d7103e2
Show file tree
Hide file tree
Showing 20 changed files with 6 additions and 754 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,6 @@ jobs:
- juniper_actix
- juniper_axum
- juniper_hyper
#- juniper_iron
- juniper_rocket
- juniper_warp
os:
Expand Down Expand Up @@ -205,7 +204,6 @@ jobs:
- juniper_actix
- juniper_axum
- juniper_hyper
- juniper_iron
- juniper_rocket
- juniper_warp
os:
Expand Down Expand Up @@ -332,7 +330,6 @@ jobs:
- juniper_actix
- juniper_axum
- juniper_hyper
- juniper_iron
- juniper_rocket
- juniper_warp
runs-on: ubuntu-latest
Expand Down
1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ members = [
"juniper_codegen",
"juniper",
"juniper_hyper",
"juniper_iron",
"juniper_rocket",
"juniper_subscriptions",
"juniper_graphql_ws",
Expand Down
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ GraphQL schemas as convenient as Rust will allow.

Juniper does not include a web server - instead it provides building blocks to
make integration with existing servers straightforward. It optionally provides a
pre-built integration for the [Actix][actix], [Hyper][hyper], [Iron][iron], [Rocket], and [Warp][warp] frameworks, including
pre-built integration for the [Actix][actix], [Hyper][hyper], [Rocket], and [Warp][warp] frameworks, including
embedded [Graphiql][graphiql] and [GraphQL Playground][playground] for easy debugging.

- [Cargo crate](https://crates.io/crates/juniper)
Expand All @@ -42,7 +42,7 @@ For specific information about macros, types and the Juniper api, the
You can also check out the [Star Wars schema][test_schema_rs] to see a complex
example including polymorphism with traits and interfaces.
For an example of web framework integration,
see the [actix][actix_examples], [hyper][hyper_examples], [rocket][rocket_examples], [iron][iron_examples], and [warp][warp_examples] examples folders.
see the [actix][actix_examples], [axum][axum_examples], [hyper][hyper_examples], [rocket][rocket_examples], and [warp][warp_examples] examples folders.

## Features

Expand Down Expand Up @@ -82,7 +82,6 @@ your Schemas automatically.
- [axum][axum]
- [hyper][hyper]
- [rocket][rocket]
- [iron][iron]
- [warp][warp]

## Guides & Examples
Expand All @@ -98,16 +97,15 @@ Juniper has not reached 1.0 yet, thus some API instability should be expected.
[graphql]: http://graphql.org
[graphiql]: https://github.com/graphql/graphiql
[playground]: https://github.com/prisma/graphql-playground
[iron]: https://github.com/iron/iron
[graphql_spec]: https://spec.graphql.org/October2021
[schema_language]: https://graphql.org/learn/schema/#type-language
[schema_approach]: https://blog.logrocket.com/code-first-vs-schema-first-development-graphql/
[test_schema_rs]: https://github.com/graphql-rust/juniper/blob/master/juniper/src/tests/fixtures/starwars/schema.rs
[tokio]: https://github.com/tokio-rs/tokio
[actix_examples]: https://github.com/graphql-rust/juniper/tree/master/juniper_actix/examples
[axum_examples]: https://github.com/graphql-rust/juniper/tree/master/juniper_axum/examples
[hyper_examples]: https://github.com/graphql-rust/juniper/tree/master/juniper_hyper/examples
[rocket_examples]: https://github.com/graphql-rust/juniper/tree/master/juniper_rocket/examples
[iron_examples]: https://github.com/graphql-rust/juniper/tree/master/juniper_iron/examples
[hyper]: https://hyper.rs
[rocket]: https://rocket.rs
[book]: https://graphql-rust.github.io
Expand Down
5 changes: 1 addition & 4 deletions book/src/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ GraphQL schemas as convenient as possible as Rust will allow.

Juniper does not include a web server - instead it provides building blocks to
make integration with existing servers straightforward. It optionally provides a
pre-built integration for the [Hyper][hyper], [Iron][iron], [Rocket], and [Warp][warp] frameworks, including
pre-built integration for the [Hyper][hyper], [Rocket], and [Warp][warp] frameworks, including
embedded [Graphiql][graphiql] for easy debugging.

- [Cargo crate](https://crates.io/crates/juniper)
Expand Down Expand Up @@ -47,7 +47,6 @@ your Schemas automatically.

- [hyper][hyper]
- [rocket][rocket]
- [iron][iron]
- [warp][warp]

## API Stability
Expand All @@ -56,13 +55,11 @@ Juniper has not reached 1.0 yet, thus some API instability should be expected.

[graphql]: http://graphql.org
[graphiql]: https://github.com/graphql/graphiql
[iron]: https://github.com/iron/iron
[graphql_spec]: https://spec.graphql.org/October2021
[test_schema_rs]: https://github.com/graphql-rust/juniper/blob/master/juniper/src/tests/schema.rs
[tokio]: https://github.com/tokio-rs/tokio
[hyper_examples]: https://github.com/graphql-rust/juniper/tree/master/juniper_hyper/examples
[rocket_examples]: https://github.com/graphql-rust/juniper/tree/master/juniper_rocket/examples
[iron_examples]: https://github.com/graphql-rust/juniper/tree/master/juniper_iron/examples
[hyper]: https://hyper.rs
[rocket]: https://rocket.rs
[book]: https://graphql-rust.github.io
Expand Down
1 change: 0 additions & 1 deletion book/src/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
- [Official Server Integrations](servers/official.md) - [Hyper](servers/hyper.md)
- [Warp](servers/warp.md)
- [Rocket](servers/rocket.md)
- [Iron](servers/iron.md)
- [Hyper](servers/hyper.md)
- [Third Party Integrations](servers/third-party.md)

Expand Down
1 change: 0 additions & 1 deletion book/src/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,5 @@ fn main() {
[hyper]: servers/hyper.md
[warp]: servers/warp.md
[rocket]: servers/rocket.md
[iron]: servers/iron.md
[tutorial]: ./tutorial.html
[graphql_object]: https://docs.rs/juniper/latest/juniper/macro.graphql_object.html
1 change: 0 additions & 1 deletion book/src/servers/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ third-party integration crates that will get you there.
- [Official Server Integrations](official.md)
- [Warp](warp.md)
- [Rocket](rocket.md)
- [Iron](iron.md)
- [Hyper](hyper.md)
- [Third Party Integrations](third-party.md)
- [Actix-Web](https://github.com/actix/examples/tree/master/graphql/juniper)
Expand Down
122 changes: 0 additions & 122 deletions book/src/servers/iron.md

This file was deleted.

1 change: 0 additions & 1 deletion book/src/servers/official.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,4 @@ libraries.

- [Warp](warp.md)
- [Rocket](rocket.md)
- [Iron](iron.md)
- [Hyper](hyper.md)
3 changes: 1 addition & 2 deletions book/src/types/objects/using_contexts.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ The context type is a feature in Juniper that lets field resolvers access global
data, most commonly database connections or authentication information. The
context is usually created from a _context factory_. How this is defined is
specific to the framework integration you're using, so check out the
documentation for either the [Iron](../../servers/iron.md) or [Rocket](../../servers/rocket.md)
integration.
documentation for [Rocket](../../servers/rocket.md) integration.

In this chapter, we'll show you how to define a context type and use it in field
resolvers. Let's say that we have a simple user database in a `HashMap`:
Expand Down
3 changes: 0 additions & 3 deletions juniper/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ As an exception to other [GraphQL] libraries for other languages, [Juniper] buil
- [`actix-web`] ([`juniper_actix`] crate)
- [`axum`] ([`juniper_axum`] crate)
- [`hyper`] ([`juniper_hyper`] crate)
- [`iron`] ([`juniper_iron`] crate)
- [`rocket`] ([`juniper_rocket`] crate)
- [`warp`] ([`juniper_warp`] crate)

Expand Down Expand Up @@ -90,11 +89,9 @@ This project is licensed under [BSD 2-Clause License](https://github.com/graphql
[`juniper_actix`]: https://docs.rs/juniper_actix
[`juniper_axum`]: https://docs.rs/juniper_axum
[`juniper_hyper`]: https://docs.rs/juniper_hyper
[`juniper_iron`]: https://docs.rs/juniper_iron
[`juniper_rocket`]: https://docs.rs/juniper_rocket
[`juniper_warp`]: https://docs.rs/juniper_warp
[`hyper`]: https://docs.rs/hyper
[`iron`]: https://docs.rs/iron
[`rocket`]: https://docs.rs/rocket
[`rust_decimal`]: https://docs.rs/rust_decimal
[`time`]: https://docs.rs/time
Expand Down
11 changes: 0 additions & 11 deletions juniper/release.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,6 @@ exactly = 1
search = "juniper = \"[^\"]+\""
replace = "juniper = \"{{version}}\""
[[pre-release-replacements]]
file = "../book/src/servers/iron.md"
exactly = 1
search = "juniper = \"[^\"]+\""
replace = "juniper = \"{{version}}\""
[[pre-release-replacements]]
file = "../book/src/servers/rocket.md"
exactly = 1
search = "juniper = \"[^\"]+\""
Expand Down Expand Up @@ -58,12 +53,6 @@ exactly = 2
search = "juniper = \\{ version = \"[^\"]+\""
replace = "juniper = { version = \"{{version}}\""

[[pre-release-replacements]]
file = "../juniper_iron/Cargo.toml"
exactly = 2
search = "juniper = \\{ version = \"[^\"]+\""
replace = "juniper = { version = \"{{version}}\""

[[pre-release-replacements]]
file = "../juniper_rocket/Cargo.toml"
exactly = 2
Expand Down
2 changes: 1 addition & 1 deletion juniper/src/executor/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -626,7 +626,7 @@ where
/// Access the current context
///
/// You usually provide the context when calling the top-level `execute`
/// function, or using the context factory in the Iron integration.
/// function, or using the context factory.
pub fn context(&self) -> &'r CtxT {
self.context
}
Expand Down
26 changes: 0 additions & 26 deletions juniper_iron/CHANGELOG.md

This file was deleted.

34 changes: 0 additions & 34 deletions juniper_iron/Cargo.toml

This file was deleted.

Loading

0 comments on commit d7103e2

Please sign in to comment.