Add #![forbid(unsafe_code)] to all sub crates
This commit is contained in:
parent
e76dcb94da
commit
51d588e091
|
@ -32,6 +32,10 @@
|
||||||
* [Cargo package](https://crates.io/crates/async-graphql)
|
* [Cargo package](https://crates.io/crates/async-graphql)
|
||||||
* Minimum supported Rust version: 1.42 or later
|
* 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
|
## 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__
|
__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
|
//! Async-graphql integration with Actix-web
|
||||||
|
|
||||||
#![warn(missing_docs)]
|
#![warn(missing_docs)]
|
||||||
|
#![forbid(unsafe_code)]
|
||||||
|
|
||||||
mod subscription;
|
mod subscription;
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#![allow(clippy::cognitive_complexity)]
|
#![allow(clippy::cognitive_complexity)]
|
||||||
|
#![forbid(unsafe_code)]
|
||||||
|
|
||||||
extern crate proc_macro;
|
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 async_graphql::{IntoQueryBuilder, IntoQueryBuilderOpts, ParseRequestError, QueryBuilder};
|
||||||
use futures::io::AllowStdIo;
|
use futures::io::AllowStdIo;
|
||||||
use lambda_http::Request;
|
use lambda_http::Request;
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
#![forbid(unsafe_code)]
|
||||||
|
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
extern crate pest_derive;
|
extern crate pest_derive;
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
#![warn(missing_docs)]
|
#![warn(missing_docs)]
|
||||||
#![allow(clippy::type_complexity)]
|
#![allow(clippy::type_complexity)]
|
||||||
#![allow(clippy::needless_doctest_main)]
|
#![allow(clippy::needless_doctest_main)]
|
||||||
|
#![forbid(unsafe_code)]
|
||||||
|
|
||||||
use async_graphql::http::{multipart_stream, GQLRequest, GQLResponse, StreamBody};
|
use async_graphql::http::{multipart_stream, GQLRequest, GQLResponse, StreamBody};
|
||||||
use async_graphql::{
|
use async_graphql::{
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
#![warn(missing_docs)]
|
#![warn(missing_docs)]
|
||||||
#![allow(clippy::type_complexity)]
|
#![allow(clippy::type_complexity)]
|
||||||
#![allow(clippy::needless_doctest_main)]
|
#![allow(clippy::needless_doctest_main)]
|
||||||
|
#![forbid(unsafe_code)]
|
||||||
|
|
||||||
use async_graphql::http::StreamBody;
|
use async_graphql::http::StreamBody;
|
||||||
use async_graphql::{
|
use async_graphql::{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user