Add #![forbid(unsafe_code)] to all sub crates

This commit is contained in:
Sunli 2020-05-29 17:33:19 +08:00
parent e76dcb94da
commit 51d588e091
7 changed files with 14 additions and 0 deletions

View File

@ -32,6 +32,10 @@
* [Cargo package](https://crates.io/crates/async-graphql)
* Minimum supported Rust version: 1.42 or later
## Safety
This crate uses #![forbid(unsafe_code)] to ensure everything is implemented in 100% Safe Rust.
## Stability: Unstable & Experimental
__This project doesn't currently follow SemVer, and there can be breaking changes on any version numbers. We will begin following SemVer once the project reaches v2.0.0__

View File

@ -1,6 +1,7 @@
//! Async-graphql integration with Actix-web
#![warn(missing_docs)]
#![forbid(unsafe_code)]
mod subscription;

View File

@ -1,4 +1,5 @@
#![allow(clippy::cognitive_complexity)]
#![forbid(unsafe_code)]
extern crate proc_macro;

View File

@ -1,3 +1,7 @@
//! Async-graphql integration with AWS lambda
//!
#![forbid(unsafe_code)]
use async_graphql::{IntoQueryBuilder, IntoQueryBuilderOpts, ParseRequestError, QueryBuilder};
use futures::io::AllowStdIo;
use lambda_http::Request;

View File

@ -1,3 +1,5 @@
#![forbid(unsafe_code)]
#[macro_use]
extern crate pest_derive;
#[macro_use]

View File

@ -3,6 +3,7 @@
#![warn(missing_docs)]
#![allow(clippy::type_complexity)]
#![allow(clippy::needless_doctest_main)]
#![forbid(unsafe_code)]
use async_graphql::http::{multipart_stream, GQLRequest, GQLResponse, StreamBody};
use async_graphql::{

View File

@ -3,6 +3,7 @@
#![warn(missing_docs)]
#![allow(clippy::type_complexity)]
#![allow(clippy::needless_doctest_main)]
#![forbid(unsafe_code)]
use async_graphql::http::StreamBody;
use async_graphql::{