mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Make use of unstable alloc_jemalloc crate optional
This commit is contained in:
parent
d9a311963f
commit
d6d772eba0
4 changed files with 18 additions and 11 deletions
|
@ -2,16 +2,17 @@
|
|||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
#![cfg_attr(not(target_os = "windows"), feature(alloc_jemalloc))]
|
||||
#![cfg_attr(all(feature = "unstable", not(target_os = "windows")), feature(alloc_jemalloc))]
|
||||
|
||||
#![deny(unsafe_code)]
|
||||
|
||||
#[allow(unused_extern_crates)]
|
||||
#[cfg(not(target_os = "windows"))]
|
||||
#[cfg(all(feature = "unstable", not(target_os = "windows")))]
|
||||
extern crate alloc_jemalloc;
|
||||
extern crate heartbeats_simple;
|
||||
extern crate influent;
|
||||
extern crate ipc_channel;
|
||||
#[allow(unused_extern_crates)]
|
||||
#[cfg(not(target_os = "windows"))]
|
||||
extern crate libc;
|
||||
#[macro_use]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue