Remove jemalloc for test

This commit is contained in:
Antoine PLASKOWSKI 2021-10-21 02:02:54 +02:00 committed by Geoffroy Couprie
parent 0d373222b9
commit d15a2669a8
6 changed files with 6 additions and 19 deletions

View File

@ -42,10 +42,12 @@ default-features = false
[dev-dependencies] [dev-dependencies]
criterion = "0.3" criterion = "0.3"
jemallocator = "^0.3"
doc-comment = "0.3" doc-comment = "0.3"
proptest = "1.0.0" proptest = "1.0.0"
[target.'cfg(not(all(target_os = "windows", target_env = "msvc")))'.dev-dependencies]
jemallocator = "^0.3"
[build-dependencies] [build-dependencies]
version_check = "0.9" version_check = "0.9"

View File

@ -1,8 +1,5 @@
#![cfg(feature = "alloc")] #![cfg(feature = "alloc")]
#[global_allocator]
static ALLOC: jemallocator::Jemalloc = jemallocator::Jemalloc;
use nom::{ use nom::{
branch::alt, branch::alt,
bytes::complete::{escaped, tag, take_while}, bytes::complete::{escaped, tag, take_while},

View File

@ -1,11 +1,5 @@
#![cfg(feature = "alloc")] #![cfg(feature = "alloc")]
use jemallocator;
#[global_allocator]
static ALLOC: jemallocator::Jemalloc = jemallocator::Jemalloc;
use nom::{ use nom::{
branch::alt, branch::alt,
bytes::complete::{escaped, tag, take_while}, bytes::complete::{escaped, tag, take_while},

View File

@ -4,9 +4,6 @@
#![cfg(feature = "alloc")] #![cfg(feature = "alloc")]
#[global_allocator]
static ALLOC: jemallocator::Jemalloc = jemallocator::Jemalloc;
use nom::{ use nom::{
branch::alt, branch::alt,
bytes::complete::tag, bytes::complete::tag,

View File

@ -11,9 +11,6 @@
#![cfg(feature = "alloc")] #![cfg(feature = "alloc")]
#[global_allocator]
static ALLOC: jemallocator::Jemalloc = jemallocator::Jemalloc;
use nom::branch::alt; use nom::branch::alt;
use nom::bytes::streaming::{is_not, take_while_m_n}; use nom::bytes::streaming::{is_not, take_while_m_n};
use nom::character::streaming::{char, multispace1}; use nom::character::streaming::{char, multispace1};

View File

@ -445,16 +445,16 @@ pub use self::str::*;
#[macro_use] #[macro_use]
pub mod error; pub mod error;
pub mod combinator;
mod internal; mod internal;
mod traits; mod traits;
pub mod combinator;
#[macro_use] #[macro_use]
pub mod branch; pub mod branch;
pub mod sequence;
pub mod multi; pub mod multi;
pub mod sequence;
pub mod bytes;
pub mod bits; pub mod bits;
pub mod bytes;
pub mod character; pub mod character;