Skip to content
Merged
Show file tree
Hide file tree
Changes from 8 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
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.0", 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
Loading