use system alocator instead of jmalloc
Rust 1.28 feature. saves 300kb in executable size
This commit is contained in:
parent
d6fd817ce0
commit
7a0572de80
2 changed files with 6 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "http-server"
|
name = "http-server"
|
||||||
version = "0.7.0"
|
version = "0.8.0"
|
||||||
authors = ["Damjan Georgievski <gdamjan@gmail.com>"]
|
authors = ["Damjan Georgievski <gdamjan@gmail.com>"]
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
|
|
|
@ -8,6 +8,11 @@ extern crate percent_encoding;
|
||||||
#[macro_use] extern crate clap;
|
#[macro_use] extern crate clap;
|
||||||
#[macro_use] extern crate log;
|
#[macro_use] extern crate log;
|
||||||
|
|
||||||
|
use std::alloc::System;
|
||||||
|
|
||||||
|
#[global_allocator]
|
||||||
|
static GLOBAL: System = System;
|
||||||
|
|
||||||
mod channel;
|
mod channel;
|
||||||
mod web;
|
mod web;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue