Add #![forbid(unsafe_code)] to all sub crates
This commit is contained in:
parent
d407b2ca98
commit
74ae041426
|
@ -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__
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
//! Async-graphql integration with Actix-web
|
||||
|
||||
#![warn(missing_docs)]
|
||||
#![forbid(unsafe_code)]
|
||||
|
||||
mod subscription;
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
#![allow(clippy::cognitive_complexity)]
|
||||
#![forbid(unsafe_code)]
|
||||
|
||||
extern crate proc_macro;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
#![forbid(unsafe_code)]
|
||||
|
||||
#[macro_use]
|
||||
extern crate pest_derive;
|
||||
#[macro_use]
|
||||
|
|
|
@ -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::{
|
||||
|
|
|
@ -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::{
|
||||
|
|
Loading…
Reference in New Issue