Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ jobs:
- { feature: chrono-tz, crate: juniper }
- { feature: expose-test-schema, crate: juniper }
- { feature: jiff, crate: juniper }
- { feature: ruint, crate: juniper }
- { feature: rust_decimal, crate: juniper }
- { feature: schema-language, crate: juniper }
- { feature: time, crate: juniper }
Expand Down
13 changes: 13 additions & 0 deletions book/src/types/scalars.md
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,12 @@ mod date_scalar {
| [`chrono::NaiveDateTime`] | [`LocalDateTime`] | [`chrono`] |
| [`chrono::DateTime`] | [`DateTime`] | [`chrono`] |
| [`chrono_tz::Tz`] | [`TimeZone`] | [`chrono-tz`] |
| [`ruint::aliases::U8`] | `U8` | [`ruint`] |
| [`ruint::aliases::U16`] | `U16` | [`ruint`] |
| [`ruint::aliases::U32`] | `U32` | [`ruint`] |
| [`ruint::aliases::U64`] | `U64` | [`ruint`] |
| [`ruint::aliases::U128`] | `U128` | [`ruint`] |
| [`ruint::aliases::U256`] | `U256` | [`ruint`] |
| [`rust_decimal::Decimal`] | `Decimal` | [`rust_decimal`] |
| [`jiff::civil::Date`] | [`LocalDate`] | [`jiff`] |
| [`jiff::civil::Time`] | [`LocalTime`] | [`jiff`] |
Expand Down Expand Up @@ -489,6 +495,13 @@ mod date_scalar {
[`LocalDateTime`]: https://graphql-scalars.dev/docs/scalars/local-date-time
[`LocalTime`]: https://graphql-scalars.dev/docs/scalars/local-time
[`ObjectID`]: https://the-guild.dev/graphql/scalars/docs/scalars/object-id
[`ruint`]: https://docs.rs/ruint
[`ruint::aliases::U8`]: https://docs.rs/ruint/latest/ruint/aliases/type.U8.html
[`ruint::aliases::U16`]: https://docs.rs/ruint/latest/ruint/aliases/type.U16.html
[`ruint::aliases::U32`]: https://docs.rs/ruint/latest/ruint/aliases/type.U32.html
[`ruint::aliases::U64`]: https://docs.rs/ruint/latest/ruint/aliases/type.U64.html
[`ruint::aliases::U128`]: https://docs.rs/ruint/latest/ruint/aliases/type.U128.html
[`ruint::aliases::U256`]: https://docs.rs/ruint/latest/ruint/aliases/type.U256.html
[`rust_decimal`]: https://docs.rs/rust_decimal
[`rust_decimal::Decimal`]: https://docs.rs/rust_decimal/latest/rust_decimal/struct.Decimal.html
[`ScalarValue`]: https://docs.rs/juniper/0.17.0/juniper/trait.ScalarValue.html
Expand Down
10 changes: 10 additions & 0 deletions juniper/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,14 @@ All user visible changes to `juniper` crate will be documented in this file. Thi
- Support parsing descriptions on operations, fragments and variable definitions. ([#1349], [graphql/graphql-spec#1170])
- Support for [block strings][0180-1]. ([#1349])
- Support of `#[graphql(rename_all = "snake_case")]` attribute in macros. ([#1354])
- [`ruint` crate] integration behind `ruint` [Cargo feature]: ([#1355], [#1350])
- `ruint::aliases::U8` as `U8` scalar.
- `ruint::aliases::U16` as `U16` scalar.
- `ruint::aliases::U32` as `U32` scalar.
- `ruint::aliases::U64` as `U64` scalar.
- `ruint::aliases::U128` as `U128` scalar.
- `ruint::aliases::U256` as `U256` scalar.
- `integrations::ruint::unit_scalar` module for declaring custom-sized `ruint::Unit` scalars.

### Changed

Expand All @@ -60,8 +68,10 @@ All user visible changes to `juniper` crate will be documented in this file. Thi
[#1347]: /../../issues/1347
[#1348]: /../../pull/1348
[#1349]: /../../pull/1349
[#1350]: /../../issues/1350
[#1353]: /../../pull/1353
[#1354]: /../../pull/1354
[#1355]: /../../pull/1355
[graphql/graphql-spec#525]: https://github.com/graphql/graphql-spec/pull/525
[graphql/graphql-spec#687]: https://github.com/graphql/graphql-spec/issues/687
[graphql/graphql-spec#805]: https://github.com/graphql/graphql-spec/pull/805
Expand Down
2 changes: 2 additions & 0 deletions juniper/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ chrono-tz = ["dep:chrono-tz", "dep:regex"]
expose-test-schema = ["dep:anyhow", "dep:serde_json"]
jiff = ["dep:jiff"]
js = ["chrono?/wasmbind", "time?/wasm-bindgen", "uuid?/js"]
ruint = ["dep:ruint"]
rust_decimal = ["dep:rust_decimal"]
schema-language = ["dep:graphql-parser", "dep:void"]
time = ["dep:time"]
Expand All @@ -60,6 +61,7 @@ itertools = "0.14"
jiff = { version = "0.2", features = ["std"], default-features = false, optional = true }
juniper_codegen = { version = "0.17.0", path = "../juniper_codegen" }
ref-cast = "1.0"
ruint = { version = "1.10", optional = true }
rust_decimal = { version = "1.20", default-features = false, optional = true }
ryu = { version = "1.0", optional = true }
serde = { version = "1.0.122", features = ["derive"] }
Expand Down
2 changes: 2 additions & 0 deletions juniper/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ As an exception to other [GraphQL] libraries for other languages, [Juniper] buil
- [`bson`]
- [`chrono`], [`chrono-tz`]
- [`jiff`]
- [`ruint`]
- [`rust_decimal`]
- [`time`]
- [`url`]
Expand Down Expand Up @@ -94,6 +95,7 @@ This project is licensed under [BSD 2-Clause License](https://github.com/graphql
[`juniper_warp`]: https://docs.rs/juniper_warp
[`hyper`]: https://docs.rs/hyper
[`rocket`]: https://docs.rs/rocket
[`ruint`]: https://docs.rs/ruint
[`rust_decimal`]: https://docs.rs/rust_decimal
[`time`]: https://docs.rs/time
[`url`]: https://docs.rs/url
Expand Down
2 changes: 2 additions & 0 deletions juniper/src/integrations/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ pub mod chrono;
pub mod chrono_tz;
#[cfg(feature = "jiff")]
pub mod jiff;
#[cfg(feature = "ruint")]
pub mod ruint;
#[cfg(feature = "rust_decimal")]
pub mod rust_decimal;
#[doc(hidden)]
Expand Down
Loading