Remove old 2018 edition compatability tests.

Those are not needed anymore since the refactor to 2018 edition.
This commit is contained in:
Christoph Herzog 2019-05-02 19:59:03 +02:00 committed by theduke
parent acf4207ff1
commit 51bde5d94f
4 changed files with 0 additions and 68 deletions

View file

@ -4,7 +4,6 @@ members = [
"juniper_codegen",
"juniper",
"integration_tests/juniper_tests",
"integration_tests/juniper_2018_edition_tests",
"juniper_hyper",
"juniper_iron",
"juniper_rocket",

View file

@ -1,9 +0,0 @@
[package]
name = "juniper_2018_edition_tests"
version = "0.1.0"
authors = ["Christoph Herzog <chris@theduke.at>"]
edition = "2018"
publish = false
[dependencies]
juniper = { version = "0.11", path = "../../juniper" }

View file

@ -1,24 +0,0 @@
[tasks.build-verbose]
condition = { rust_version = { min = "1.31.0" } }
[tasks.build-verbose.windows]
condition = { rust_version = { min = "1.31.0" } }
[tasks.test-verbose]
condition = { rust_version = { min = "1.31.0" } }
[tasks.test-verbose.windows]
condition = { rust_version = { min = "1.31.0" } }
[tasks.ci-coverage-flow]
disabled = true
[tasks.release]
disabled = true
[tasks.release-patch]
disabled = true
[tasks.release-dry-run]
disabled = true

View file

@ -1,34 +0,0 @@
/// A VERY minimal test case that ensures that
/// macros and custom derives work in 2018 edition crates.
/// This can be removed once juniper is refactored to the 2018 edition.
#[derive(juniper::GraphQLEnum, PartialEq, Eq, Clone, Copy, Debug)]
enum TaskStatus {
Todo,
Done,
Closed,
}
#[derive(juniper::GraphQLObject, Clone, Debug)]
struct Task {
pub id: i32,
pub status: TaskStatus,
pub title: String,
pub description: Option<String>,
}
#[derive(juniper::GraphQLInputObject, Clone, Debug)]
struct TaskCreate {
pub title: String,
pub description: Option<String>,
}
struct Query;
juniper::graphql_object!(Query: () |&self| {
field task(id: i32) -> Task {
unimplemented!()
}
});
fn main() {}