Skip to content

Commit e154d36

Browse files
committed
Fixes
1 parent 095f407 commit e154d36

File tree

3 files changed

+18
-3
lines changed

3 files changed

+18
-3
lines changed

juniper/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ All user visible changes to `juniper` crate will be documented in this file. Thi
3131
- `__InputValue.isDeprecated` and `__InputValue.deprecationReason` fields.
3232
- `schema::meta::Argument::deprecation_status` field.
3333
- Support for variable-length escaped Unicode characters (e.g. `\u{110000}`) in strings. ([#1349], [graphql/graphql-spec#849], [graphql/graphql-spec#687])
34-
- Support full Unicode range. ([#1349], [graphql/graphql-spec#849], [graphql/graphql-spec#687])
34+
- Full Unicode range support. ([#1349], [graphql/graphql-spec#849], [graphql/graphql-spec#687])
3535
- Support for [block strings][0180-1]. ([#1349])
3636

3737
### Changed

juniper/src/lib.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,15 @@ extern crate self as juniper;
1313
mod for_benches_only {
1414
use bencher as _;
1515
}
16+
#[cfg(test)]
17+
mod for_feature_gated_tests_only {
18+
#[cfg(not(feature = "chrono"))]
19+
use chrono as _;
20+
#[cfg(not(feature = "jiff"))]
21+
use jiff as _;
22+
#[cfg(not(feature = "anyhow"))]
23+
use serial_test as _;
24+
}
1625

1726
// These are required by the code generated via the `juniper_codegen` macros.
1827
#[doc(hidden)]

juniper/src/tests/fixtures/starwars/schema.rs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
1-
#![cfg_attr(test, expect(dead_code, reason = "GraphQL schema testing"))]
2-
#![cfg_attr(not(test), expect(missing_docs, reason = "GraphQL schema testing"))]
1+
#![cfg_attr(
2+
not(feature = "expose-test-schema"),
3+
expect(dead_code, reason = "GraphQL schema testing")
4+
)]
5+
#![cfg_attr(
6+
feature = "expose-test-schema",
7+
expect(missing_docs, reason = "GraphQL schema testing")
8+
)]
39

410
use std::{collections::HashMap, pin::Pin};
511

0 commit comments

Comments
 (0)